我遇到安装程序的问题,只有在计算机上存在以前的版本时才会发生。使用WiX工具集创建安装程序。 如果以前的版本存在,我的安装程序会成功卸载它,但会提前结束。如果再次启动安装没有问题。如果以前的版本没有成功安装。WIX安装程序卸载,但不安装,如果安装了以前的版本
日志文件以以下行结束 产品:xxxxx - 安装失败。 (c)(AC:3C)[22:53:59:388]:Windows Installer安装了该产品。产品名称:xxxxx。产品版本:1.2.0.0。产品语言:1033.制造商:xxxxx xxx。安装成功或错误状态:1603.
MSI (c) (AC:3C) [22:53:59:389]: Grabbed execution mutex.
MSI (c) (AC:3C) [22:53:59:389]: Cleaning up uninstalled install packages, if any exist
MSI (c) (AC:3C) [22:53:59:393]: MainEngineThread is returning 1603
MSI (c) (AC:80) [22:53:59:400]: RESTART MANAGER: Previously shut down applications have been restarted.
MSI (c) (AC:80) [22:53:59:401]: RESTART MANAGER: Session closed.
日志文件很大。有一些可疑的线如
DEBUG: Error 2911: Could not remove the folder C:\Config.Msi\.
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2911. The arguments are: C:\Config.Msi\, ,
有没有这样的目录。
查看日志文件我有一种感觉,安装程序在卸载后不会启动,而是尝试启动应用程序,该应用程序在安装后设置为自动运行。这返回错误1603
MSI (s) (2C:08) [22:53:51:928]: PROPERTY CHANGE: Deleting UpdateStarted property. Its current value is '1'.
Action ended 22:53:51: InstallFinalize. Return value 1.
MSI (s) (2C:08) [22:53:51:929]: Doing action: LaunchApplication
MSI (s) (2C:08) [22:53:51:929]: Note: 1: 2205 2: 3: ActionText
Action 22:53:51: LaunchApplication.
Action start 22:53:51: LaunchApplication.
MSI (s) (2C:F8) [22:53:51:931]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI87DC.tmp, Entrypoint: WixShellExec
MSI (s) (2C:DC) [22:53:51:931]: Generating random cookie.
MSI (s) (2C:DC) [22:53:51:932]: Created Custom Action Server with PID 8100 (0x1FA4).
MSI (s) (2C:00) [22:53:51:947]: Running as a service.
MSI (s) (2C:00) [22:53:51:948]: Hello, I'm your 32bit Impersonated custom action server.
WixShellExec: Error 0x80070002: ShellExec failed with return code 2
WixShellExec: Error 0x80070002: failed to launch target
CustomAction LaunchApplication returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 22:53:51: LaunchApplication. Return value 3.
Action ended 22:53:51: INSTALL. Return value 3.
任何帮助表示赞赏。任何想法在我的情况下在日志文件中寻找什么。
看到你的“”(如何调度RemoveExistingProducts和你的'LaunchApplication'自定义动作)和''本身会很有趣。 –
wimh