2013-08-21 106 views
6

我已经创建了一个WIX Burn Bundle。在Bundle中,我安装.Net 4(如果没有安装),然后再安装2个.msi文件。 1是msi的第三部分,另一个是我使用WIX为我的软件创建的msi。我需要成为机器上的管理员才能运行这些.msi文件。Wix Burn Bundle - 必须是管理员

如果用户不是管理员,即不安装任何东西,我希望Burn bundle不做任何事情。在我的产品软件中,我可以轻松地使用以下方法 - 但是我无法在捆绑软件中执行此操作。我读过很多类似的帖子,但没有找到我想要做的工作示例。

<CustomAction Id="IsPrivileged" Error="You must be an Administrator to install [ProductName]." /> 
    <InstallExecuteSequence> 
    <Custom Action='IsPrivileged' Before='LaunchConditions'> 
     Not Privileged 
    </Custom> 
    </InstallExecuteSequence> 
+0

找提升的权限 – Gilad

+0

一种方法是要求管理员凭据,当您启动包,即设置执行级别为“需要管理员”。然而,我看到罗布说,烧伤不是为了运行提升,所以你可能会遇到限制:http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Wix-BURN-wpf-and- UAC-PROMT-td7587811.html –

回答

相关问题