在wix中安装后运行应用程序

时间:2014-05-09 14:48:49

标签: c# .net wix custom-action

这是我与WIX和安装程序的第一个项目。我想在安装完成后运行一些vbscript和一个应用程序。 exe文件在安装过程中被复制,但它不是安装的主程序。所有脚本和应用程序都要求在复制所有文件后运行它们。目前没有自定义GUI。我的问题是如果我把After =“InstallFinalize”int installExecuteSequence它总是给我错误

错误14 ICE77:LaunchNotePad是脚本内自定义操作。它必须在InstallInitialize操作和InstallExecuteSequence表中的InstallFinalize操作之间进行排序

在给出的示例中,我尝试启动记事本。即使我尝试运行任何其他exe文件特定的FileKey我得到此错误。它只有在我放置Before =“InstallFinalize”时才有效。如果我从ExeCommand运行exe,就像LaunchDeploymentManager自定义操作一样,它可以工作。我在这里错过了什么

<Property Id='NOTEPAD'>Notepad.exe</Property>
<CustomAction Id='LaunchNotePad' Property='NOTEPAD' Execute='commit' ExeCommand='' Impersonate='no' Return='asyncNoWait'/>

<!--<CustomAction Id="LaunchDeployementManager" Directory="SERVICEFOLDER" ExeCommand="[SystemFolder]cmd.exe /C start DeploymentManager.exe" />-->

<InstallExecuteSequence>
  <Custom Action="LaunchNotePad" After="InstallFinalize">NOT Installed</Custom>
  <!--<Custom Action="LaunchDeployementManager" After="InstallFinalize" />-->
</InstallExecuteSequence>

0 个答案:

没有答案