3

在我的 wix 项目中,我有一个文件“connect.exe”,通常会在卸载或更新期间运行。在卸载和主要更新期间,Wix 将在关闭之前提示通常的“在继续安装之前应关闭以下应用程序”。

此对话框成功关闭程序:

Action 17:19:59: ShutdownApplications. Shutting down applications
MSI (s) (5C:44) [17:20:02:880]: RESTART MANAGER: Successfully shut down all applications in the service's session that held files in use.
MSI (c) (A4:08) [17:20:02:880]: RESTART MANAGER: Successfully shut down all applications that held files in use.

但紧接着,它会抛出一个错误,说它无法关闭应用程序:

MSI (s) (5C:44) [17:20:33:300]: Note: 1: 1611 
MSI (s) (5C:44) [17:20:33:300]: Note: 1: 2205 2:  3: Error 
MSI (s) (5C:44) [17:20:33:300]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1611 
The setup was unable to automatically close all requested applications. Please ensure that the applications holding files in use are closed before continuing with the installation.

即使应用程序在系统上明显关闭。此外,在安装程序完成更新后进行重大更新时,它不会重新启动它。

其他一切似乎都很好。

值得注意的是,connect.exe 程序运行的窗口大部分时间都是隐藏的。它主要用作通过 Windows 系统服务运行的 service.exe 的屏幕显示。

我该如何解决这个问题?我没有在 connect.exe 应用程序端处理什么吗?

connect.exe组件入口:

            <Component Id="ConnectExe" Guid="..." DiskId="1">
                <File Id="connect.exe" Name="connect.exe" Source="..\data\connect.exe" KeyPath="yes">
                    <Shortcut Advertise="yes" Description="Connect front end application." Directory="ApplicationProgramsFolder" Icon="connect.exe" Id="ConnectStartMenuShortcut" Name="Connect" IconIndex="0" WorkingDirectory="INSTALLDIR">
                        <Icon Id="connect.exe" SourceFile="..\data\connect.exe" />
                    </Shortcut>
                    <Shortcut Advertise="yes" Description="Connect front end application." Directory="StartupFolder" Icon="connect.exe" IconIndex="0" Id="ConnectStartupShortcut" Name="Connect" WorkingDirectory="INSTALLDIR"></Shortcut>
                </File>
                <RemoveFolder Id="ApplicationProgramsFolder" Directory="ApplicationProgramsFolder" On="uninstall" />
            </Component>
4

1 回答 1

3

改善?:创建和解释 MSI 日志的不同方法


日志文件:日志文件的其余部分说明了什么?有没有提到其他被锁定的文件?可以在此处找到一些日志记录和日志文件解释提示

如果您在重新启动管理器中发现错误,我不会感到惊讶。虽然是一个相对简单的概念,但它涉及一些非常复杂的东西。隐藏的窗口正是这种复杂性的来源。

快速提问


一些链接

于 2018-08-07T22:46:00.523 回答