Uninstall fails because program is running. How do I make Inno Setup check for running process prior to attempting delete?

后端 未结 4 711
死守一世寂寞
死守一世寂寞 2020-12-05 02:56

Inno Setup fails to remove components during uninstall cause my program is still running and the executable cannot be deleted. How do I have it check to see if it is running

4条回答
  •  离开以前
    2020-12-05 03:40

    We used an other way than described above. Because this is an uninstallation we can kill the application and unistall it. The simpliest way, when u can't use AppMutex: (related to Really killing a process in Windows)

    [UninstallRun]
    Filename: "{cmd}"; Parameters: "/C ""taskkill /im .exe /f /t"
    

    Hope somebody will help this. I searched a long time for this.

提交回复
热议问题