安装屏蔽LE具有不推荐使用的功能。已禁用设置文件权限。有没有办法设置文件权限。我尝试运行安装后exe,它使用icacls来设置权限,但需要管理员权限才能设置权限。有没有办法授予安装程序管理员权限。或者,有没有更好的方法来做到这一点。
发布于 2013-05-03 23:23:26
手动编辑.isl文件
如下所示查找并输入:
<table name="File">
<col key="yes" def="s72">File</col>
<col def="s72">Component_</col>
<col def="s255">FileName</col>
<col def="i4">FileSize</col>
<col def="S72">Version</col>
<col def="S20">Language</col>
<col def="I2">Attributes</col>
<col def="i2">Sequence</col>
<col def="S255">ISBuildSourcePath</col>
<col def="I4">ISAttributes</col>
<col def="S72">ISComponentSubFolder_</col>
<row><td>myfile.sdf2</td><td>ISX_DEFAULTCOMPONENT6</td><td>LottoDB.sdf</td><td>0</td><td/><td/><td>0</td><td>1</td><td>C:\Users\Mauro\Documents\Visual Studio 2012\Projects\MySolution\MayProject\MyFile.sdf</td><td>1</td><td/></row>
</table>...where MyFile.sdf是必须设置其权限的文件。
接下来,找到一个类似下面的条目(或添加它):
<table name="ISLockPermissions">
<col key="yes" def="s72">LockObject</col>
<col key="yes" def="s32">Table</col>
<col key="yes" def="S255">Domain</col>
<col key="yes" def="s255">User</col>
<col def="I4">Permission</col>
<col def="I4">Attributes</col>
<row><td>myfile.sdf2</td><td>File</td><td>[%USERDOMAIN]</td><td>Users</td><td>1610809791</td><td>0</td></row>
</table>请注意,表文件中的列名对应于表ISLockPermissions中的列LockObject。
权限1610809791是“写入”。
发布于 2012-03-14 23:14:31
请阅读我的“增强InstallShield”博客系列:
这里有一个类似的例子:
Augmenting InstallShield using Windows Installer XML - Certificates Augmenting InstallShield using Windows Installer XML - Windows Services
其概念是利用InstallShield有限版的大多数免费功能,同时注入Windows Installer XML的一些额外的免费功能。在本例中,您将创建一个具有目录权限元素的wxs文件。一旦您在WiX中构建了MSM,您可以将其添加到您的ISLE项目中,并将其与一个特性和目录相关联。(右键单击模块并选择属性,然后从下拉列表中选择INSTALLDIR。)
发布于 2012-03-14 21:25:30
限量版不支持。
一种解决方案是使用不同的安装程序创作工具,该工具允许设置文件权限或至少运行无模拟的延迟自定义操作。也许这个列表会有所帮助:http://en.wikipedia.org/wiki/List_of_installation_software
https://stackoverflow.com/questions/9698948
复制相似问题