Installshield文件夹权限不起作用 [英] Installshield Folder Permissions not working

查看:348
本文介绍了Installshield文件夹权限不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用InstallShield 2012 Professional安装ASP.NET网站以及在网络服务帐户的安全上下文中运行的自定义应用程序池.当我测试网站时,遇到权限问题(文件权限),并且网站失败,并显示消息错误:访问被拒绝.".

Using InstallShield 2012 Professional to install a ASP.NET website, and a custom app pool running in securitry context of a network service account. When I test the website, I encounter a permissions issue (file permissions), and the website fails with the message "Error: Access is Denied.".

使用InstallShield,我设置了每个文件的权限,以对用户已认证的用户"进行读取访问.我通过导航到应用程序数据"->文件和文件夹"

Using InstallShield, I set permissions to each file for read access to the user "Authenticated Users". I set the permissions within the InstallShield ISM file by navigating to "Application Data" -> "Files and Folders"

  • 在目标计算机的文件夹"中选择每个文件夹
  • 右键单击目标计算机的文件夹"中的每个文件夹
  • 选择上下文菜单属性"
  • 点击权限"按钮
  • 在名称:"部分为用户经过身份验证的用户"添加条目,并且域为空(选择读取并执行",列出文件夹内容",读取")

...然后针对每个文件夹,然后针对每个文件一次又一次地执行此操作.

... then perform this action over and over again for each folder, then for each file.

测试后,我发现我有问题.如果我导航到服务器上安装的实际文件并进行查看,它们看起来正确,但不能正常运行.实际上,我(作为经过身份验证的用户)没有权限浏览文件夹结构,但是由于我是管理员,因此可以调整权限并进入.如果我手动重置这些文件(及相关文件夹)中的每个文件的权限网站正常运行.这意味着应用程序池设置,文件副本和网络服务帐户均正常运行,并且该问题与IIS试图访问的文件的权限严格相关.

Once I test, I find I have the problem. If I navigate to the actual files installed on the server and review, they appear correct, but do not function correctly. Infact, I - as a Authenticated User - do not have permissions to navigate the folder structure, but because I am an admin I can tweak the permissions and get in. If I manually reset these permissions on each of these files (and related folders) the website functions correctly. This means the app pool setup, the file copy, and the network service account are all functioning correctly, and the problem is strictly related to the permissions on the files IIS is trying to access.

有人遇到过这个问题,并且可以克服吗?如果是这样,怎么办? (我希望避免使用InstallScript设置权限.)

Has anyone had this problem, and overcome it? If so, how? (I would prefer to avoid using InstallScript to set permissions.)

推荐答案

注意:.

当考虑常规信息"区域中的设置时,尤其是锁定权限"属性时-InstallShield中文件级权限设置的行为将有所不同.当选择传统的Windows安装程序处理",我从来没有成功加入明确的权限.我注意到这样做时,该文件夹上所有继承的权限都将消失.此外,虽然权限是在Windows中设置的,但它们的行为就像未设置一样.手动操作测试将显示它们设置不正确.

when considering settings in the "General Information" area, specifically the "Locked-Down Permissions" property - the behavior of file level permissions settings in InstallShield will differ. When selecting "Traditional Windows Installer handling", I was never successful adding explicit permissions. I noticed when doing so, all inherited permissions on the folder would dissappear. Additionally, while it appears the permissions are set in Windows, they behave like they are not set. Manual manipulation tests would show they were not correctly set.

将锁定权限"属性设置为自定义InstallShield处理"时,我能够添加权限,并且所有继承的权限保持不变.这样,我可以将所需的权限应用于应用程序数据"->文件和文件夹"区域中的根安装目录,并且由于我选择了自定义InstallShield处理",因此可以选中应用"复选框.这些对子对象的权限",位于文件夹属性的权限区域的高级区域.

When setting the "Locked-Down Permissions" property to "Custom InstallShield handling", I was able to add a permission and all inherited permissions remained intact. With this, I was able to apply the desired permissions to the root installation directory in the "Application Data"->"Files and Folders" area, and because I elected "Custom InstallShield handling" I am able to select the check box "Apply these permissions to child objects" in the advanced area of the permissions area of a folder property.

完成并解决我的问题的步骤:

在InstallShield(ISM文件)中...

In InstallShield (ISM file)...

  • 导航到常规信息"(左侧窗格)
  • 将锁定权限设置为自定义InstallShield处理"
  • 导航到应用程序数据"
  • 右键单击要在其中安装程序的根文件夹
  • 点击属性"
  • 点击权限"按钮
  • 在标有名称"的白框区域中右键单击屏幕的上半部分
  • 选择上下文菜单项新建"
  • 删除域用户,将此字段留空
  • 添加了用户授权用户"
  • 选中下部区域中的复选框(读取并执行",列出文件夹内容",读取")
  • 点击高级"按钮
  • 选中复选框将这些权限应用于子对象"
  • 点击按钮确定"
  • 点击按钮确定"
  • 点击按钮确定"
  • Navigate to "General Information" (Lefthand pane)
  • Set Locked-Down Permissions to "Custom InstallShield handling"
  • Navigate to "Application Data"
  • Right-click the root folder where program is to be installed
  • Click "Properties"
  • Click button "Permissions"
  • Right-click top half of screen in white box area labeled "Name(s)"
  • Select context menu item "New"
  • Remove domain user leaving this field blank
  • Added user "Authenticated User"
  • Select check boxes in lower area ("Read & execute", "List Folder Contents", "Read")
  • Click button "Advanced"
  • Check checkbox "Apply these permissions to child objects"
  • Click button "OK"
  • Click button "OK"
  • Click button "OK"

重新编译安装程序并安装.现在可以使用.

Recompile installation program and install. Now works.

这篇关于Installshield文件夹权限不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆