执行EXE文件我尝试从维克斯MSI文件执行一个EXE文件,但这样做InitializeSetup当我1603错误。在维克斯
Action ended 12:09:54: InstallValidate. Return value 1.
Action start 12:09:54: InstallInitialize.
Action ended 12:09:54: InstallInitialize. Return value 3.
Action ended 12:09:54: INSTALL. Return value 3.
这个WiX Script有什么问题?
<Product Name='something' Id='11934d63-12d1-4792-829e-046de3bb987e'
UpgradeCode='{a101616a-365c-44a7-bfcb-fafb356c2ea1}'
Language='1033' Version='8.3.4' Manufacturer='something2'>
<Package Id='*' InstallerVersion='200' Compressed='yes' />
<Binary Id="Instalator.exe" SourceFile="d:\Instalator.exe"/>
<CustomAction Id="LaunchFile" BinaryKey="Instalator.exe" ExeCommand="" Execute='deferred' Return='asyncNoWait' Impersonate='no'/>
<InstallExecuteSequence>
<Custom Action='LaunchFile' Before='InstallFinalize'/>
</InstallExecuteSequence>
</Product>
我不知道为什么,但是当我补充一下:
后<Directory Id='TARGETDIR' Name='SourceDir'>
<Component Id='MainExecutable' Guid='1193cd63-12d1-4792-829e-046de3bb987e'>
</Component>
</Directory>
<Feature Id='Complete' Level='1'>
<ComponentRef Id='MainExecutable' />
</Feature>
包节点 - >然后正常工作。我需要弄清楚为什么...
请问什么是“instalator.exe”?你可能会在这里重新发明轮子。 http://robmensching.com/blog/posts/2007/8/17/Zataoca-Custom-actions-are-generally-an-admission-of-failure –
Instalator.exe是Inno Setup中的安装程序。我只需要msi。 – pawelek
这样做没有太大意义。您将绕过使用msi和wix获得的许多优势。我认为添加组件的原因是因为AFAIK没有功能的msi是无效的。我个人会花时间将InnoSetup转换成wix,从长远来看它会更好。 –