10上的安装过程中关闭应用程序

10上的安装过程中关闭应用程序

本文介绍了通过Inno Setup创建的安装程序无法在Windows 10上的安装过程中关闭应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Inno Setup为我的应用程序创建了一个安装程序.有一阵子一切正常,但是最近安装程序无法在Windows 10安装过程中关闭 explorer.exe (Windows资源管理器).安装程序需要重新启动以将现有的上下文菜单处理程序替换为新的安装程序,但更奇怪的是,同一安装程序在Windows 8和8.1上也可以正常工作.添加 restartreplace 标志没有帮助.

I have created an installer for my application using Inno Setup. For a while everything works fine but recently installer failing to close explorer.exe (Windows Explorer) on Windows 10 during installation. Installer needs to restart it to replace existing context menu handler with new, but the more strange thing is that same installer works fine on Windows 8 and 8.1. Adding restartreplace flag does not helps.

我还注意到安装程序无法关闭当前正在运行的应用程序(需要更新的旧应用程序),并且像先前的问题一样,可以使用相同的安装程序在Windows 8或8.1中关闭该应用程序.

I also noticed that the installer can't close currently running application (old one which needs to be updated) and like the previous problem the application can be closed in Windows 8 or 8.1 with same installer.

这是Inno Setup安装程序的日志:

Here is the log from Inno Setup installer:

[11:22:34.819]   Setup application started
[11:22:34.983]   Setup version: Inno Setup version 5.5.9 (a)
[11:22:34.984]   Original Setup EXE: ***
[11:22:34.984]   Setup command line: /SL5="$C0928,15589089,85504,***" /DEBUGWND=$30464
[11:22:34.985]   Windows version: 10.0.14393  (NT platform: Yes)
[11:22:34.985]   64-bit Windows: Yes
[11:22:34.985]   Processor architecture: x64
[11:22:34.985]   User privileges: Administrative
[11:22:34.987]   64-bit install mode: Yes
[11:22:34.991]   Created temporary directory: C:\Users\Azat\AppData\Local\Temp\is-M4710.tmp
[11:22:37.584]   RestartManager found an application using one of our files: Windows Explorer
[11:22:37.585]   Can use RestartManager to avoid reboot? Yes (0)
[11:22:39.780]   Starting the installation process.
[11:22:39.789]   Shutting down applications using our files.
[11:23:09.944]   Some applications could not be shut down.
[11:23:09.945]   Message box (Abort/Retry/Ignore):
   Setup was unable to automatically close all applications. It is recommended that you close all applications using files that need to be updated by Setup before continuing.

   Click Retry to try again, Ignore to proceed anyway, or Abort to cancel installation.
[11:25:30.543]   User chose Abort.
[11:25:30.544]   User canceled the installation process.
[11:25:30.545]   Rolling back changes.
[11:25:30.547]   Starting the uninstallation process.
[11:25:30.548]   Uninstallation process succeeded.
[11:25:32.049]   Deinitializing Setup.
[11:25:32.071]   Setup exit code: 5

推荐答案

我不知道为什么安装程序无法关闭应用程序.

I do not know why the installer is failing to close the applications.

但是您可以尝试使用 force 选项解决:

But you can try the force option to work it around:

CloseApplications=force

这篇关于通过Inno Setup创建的安装程序无法在Windows 10上的安装过程中关闭应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 13:44