2016-07-26 107 views
2

安裝過程中沒有關閉應用程序我已經創建了一個安裝使用Inno Setup的我的應用程序。有一陣子,一切工作正常,但最近安裝程序無法安裝在Windows上10關閉explorer.exe(Windows資源管理器)。安裝程序需要重新啓動它與新的來取代現有的上下文菜單的處理程序,但更奇怪的是,相同的安裝工作正常的Windows 8和8.1。添加restartreplace標誌不起作用。安裝程序,可以在Windows 10

我也注意到,安裝程序不能關閉當前運行的應用程序(舊其中一個需要更新),並像以前問題的應用程序可以在Windows 8或8.1相同的安裝程序被關閉。

這裏是Inno Setup的安裝程序日誌:

[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 

回答

2

我不知道爲什麼安裝程序不能關閉的應用程序。

但是你可以嘗試force option圍繞工作吧:

CloseApplications=force 
+0

好像這個解決方案工作。感謝您的回答。 – zapredelom

+0

好笑的是,該文件說'默認值:= yes'但包括它的工作就行了!在此設置下關閉應用程序仍需要大約10-15秒。 –

相關問題