Close running version of program before installing update (Inno Setup)

前端 未结 10 1244
囚心锁ツ
囚心锁ツ 2020-12-23 12:24

This should be simple, I need to stop any previous version of my program from running when the installer starts.

Most people suggested making an exe wh

10条回答
  •  半阙折子戏
    2020-12-23 13:00

    Here's a link to an Inno Setup script that prompts a user to close the target program, if it detects that the program is running. After the user closes the program, they can click on a "Retry" button to proceed with the installation:

    http://www.domador.net/extras/code-samples/inno-setup-close-a-program-before-reinstalling-it/

    This script is based on a simpler script, found in the Inno Setup Extensions Knowledge Base:

    http://www.vincenzo.net/isxkb/index.php?title=Call_psvince.dll_on_install_and_uninstall

提交回复
热议问题