我搜索了幾天,所有我發現不工作。我想在我的WiX安裝程序中調用cmd來安裝服務和密鑰。cmd電話在Wix
cmd調用工作得很好,但沒有任何事情發生。這意味着服務和密鑰不被安裝。
<CustomAction Id='CMDInstallService' Directory='INSTALLLOCATION' Execute='deferred' ExeCommand='[SystemFolder]cmd.exe /c "C:\Windows\Microsoft.NET\Framework\v2.0.50727\installutil.exe /DisplayName=[DISPLAYNAME] /ServiceName=[SERVICENAME] [INSTALLLOCATION][ProductName]\bin\PontefixSvc.exe"' Return='ignore'/>
<CustomAction Id='CMDInstallKey' Directory='INSTALLLOCATION' Execute='deferred' ExeCommand='[SystemFolder]cmd.exe /c " [INSTALLLOCATION][ProductName]\scripts\PontefixEncryptionTool.exe -install [ProductName] [INSTALLLOCATION][ProductName]\KeyContainer\keycontainer.pkxml del .\keycontainer.pkxml "' Return='ignore' />
<InstallExecuteSequence>
<Custom Action='CMDInstallService' Before='InstallFinalize'></Custom>
<Custom Action='CMDInstallKey' Before='InstallFinalize'></Custom>
</InstallExecuteSequence>
有人能幫助我嗎?
也許我找到了錯誤。是否有人知道,如何實現這個:「在wix/xml代碼中,如果這也存在嗎?我的意思是,我怎麼寫:」你好,我的名字是「Susi」「並且它應該像它應該? – Schneckschjen