<CustomAction Id="RegisterEXE" Directory="INSTALLDIR" ExeCommand=""INSTALLDIR]MyApp.exe" /Register" Execute="immediate" Return="ignore" />
<InstallExecuteSequence>
<Custom Action='RegisterEXE' After='InstallFinalize' />
</InstallExecuteSequence>
我用过这个代码 但它不执行exe。 Exe 将自身注册为 ole 服务器并执行一些其他任务。
用这个
<CustomAction Id="RegisterEXE"
Directory="INSTALLDIR"
ExeCommand=""[INSTALLDIR]TKW5.exe" /Register"
Execute="deferred"
Return="ignore"
Impersonate="no"
/>
<InstallExecuteSequence>
<Custom Action='RegisterEXE' After='InstallFiles' />
</InstallExecuteSequence>
它也像这样工作。
<CustomAction Id="RegisterEXE"
Directory="INSTALLFOLDER"
ExeCommand=""[INSTALLFOLDER]DesktopAlertingClient.exe""
Execute="immediate"
Return="asyncNoWait"
Impersonate="no"
/>
<InstallExecuteSequence>
<Custom Action='RegisterEXE' After='InstallFinalize'></Custom>
</InstallExecuteSequence>