2011-03-28 21 views
1

CA没有行我有这样威克斯 - 我在InstallExecuteSequence表

<Fragment> 
    <CustomAction Id="IsPrivileged" Error="You should be an adminuser" /> 
    <InstallExecuteSequence> 
     <Custom Action="IsPrivileged" Before="LaunchConditions">Not AdminUser</Custom> 
    </InstallExecuteSequence> 
    <CustomAction Id="install_myfile" FileKey="id_myfile.exe" ExeCommand="/install" Return="check"/> 
    <InstallExecuteSequence> 
     <Custom Action="install_myfile" Sequence="5750"/> 
    </InstallExecuteSequence> 
</Fragment> 

但安装程序代码忽略这个片段。我用Orca.exe查看了msi-database。我发现在InstallExecuteSequence表中没有这个自定义操作的行。问题是什么?我应该将自定义操作绑定到对话框的控件上吗?

回答

2

使用CustomActionRef将片段引用到您的产品中。

+0

谢谢你的回复! – buble 2011-03-28 13:35:28

+0

您应该能够将其放入产品元素中。 – 2011-03-28 13:47:18