现在正在编写XML代码,以使用WIX工具集创建MSI包, 我已经将InstallScope用作perUser,也试图在安装过程中将一组文件复制到App Data本地文件夹中,以便不需要提升的权限。
一旦我在Visual Studio中构建了代码并双击生成的MSI文件,它就会抛出错误 “系统管理员已设置了阻止此安装的策略”,但是perUser安装不需要任何管理员权限。我不知道为什么会收到这个错误
请给我一些解决方法
<Fragment>
<ComponentGroup Id='ProductComponents' Directory='INSTALLFOLDER'>
<Component Id='test.bat'>
<File Id='test.bat' Name='test.bat' Source='resources/test.bat' KeyPath='yes' />
</Component>
</ComponentGroup>
</Fragment>
MSI应该在没有管理员权限的情况下运行