我正在尝试使用我的 WiX 安装程序部署 PostGreSqlServer,但它只是一直失败,我不知道为什么。
我的 wxs 文件的重要部分:
<Binary SourceFile="postgresql-9.2.1-1-windows.exe" Id="PostGreInstaller" />
<CustomAction Id="InstallPostGre" BinaryKey="PostGreInstaller"
ExeCommand='"--serverport 5432 --servicename postgres_service --locale C --superaccount Myadmin --superpassword Mypassword --unattendedmodeui minimal --debuglevel 2 --mode unattended"'
Execute="deferred" Return="check" Impersonate="yes" />
<InstallExecuteSequence>
<Custom Action="InstallPostGre" Before="InstallFinalize" />
</InstallExecuteSequence>
已经在 cmd shell 中尝试过该命令并且它有效。不要为什么它不在安装程序中。
我确定安装程序已嵌入安装程序,因为它有超过 50MB。
我也启动了我的 msi 并打开了日志记录,但这也没有真正帮助我......
Action 16:34:29: InstallPostGre.
MSI (s) (64:E0) [16:34:29:407]: Executing op: CustomActionSchedule(Action=InstallPostGre,ActionType=1026,Source=BinaryData,Target=--serverport 5432 --servicename postgres_service --locale C --superaccount Myadmin --superpassword Mypassword --unattendedmodeui minimal --debuglevel 2 --mode unattended,)
MSI (s) (64:E0) [16:34:31:698]: Note: 1: 1721 2: InstallPostGre 3: C:\Windows\Installer\MSIE410.tmp 4: --serverport 5432 --servicename postgres_service --locale C --superaccount Myadmin --superpassword Mypassword --unattendedmodeui minimal --debuglevel 2 --mode unattended
MSI (s) (64:E0) [16:34:31:698]: Note: 1: 2205 2: 3: Error
MSI (s) (64:E0) [16:34:31:698]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1721
Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: InstallPostGre, location: C:\Windows\Installer\MSIE410.tmp, command: --serverport 5432 --servicename postgres_service --locale C --superaccount Myadmin --superpassword Mypassword --unattendedmodeui minimal --debuglevel 2 --mode unattended
MSI (s) (64:E0) [16:34:34:717]: Note: 1: 2205 2: 3: Error
MSI (s) (64:E0) [16:34:34:717]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709
MSI (s) (64:E0) [16:34:34:717]: Product: Hausverwaltung -- Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: InstallPostGre, location: C:\Windows\Installer\MSIE410.tmp, command: --serverport 5432 --servicename postgres_service --locale C --superaccount Myadmin --superpassword Mypassword --unattendedmodeui minimal --debuglevel 2 --mode unattended
那里有 WiX 大师吗?:)