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

前端 未结 10 1253
囚心锁ツ
囚心锁ツ 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 12:54

    If you're using InnoSetup, you could look into getting your InnoSetup installer to do a Windows SendBroadcastMessage, and get your application to listen for that message. When your application receives the message, it should shut itself down.

    I've done this myself with an InnoSetup installer, and it works very well.

提交回复
热议问题