How to execute program before the uninstallation starts?

前端 未结 1 1126
北海茫月
北海茫月 2020-12-19 00:24

Can InnoSetup execute a program before the uninstallation starts? My program creates some registry values. I have an executable that can remove those registry values and my

相关标签:
1条回答
  • 2020-12-19 01:16

    See the documentation on Setup Script Sections, particularly the UninstallRun one at the bottom of the tree:

    [UninstallRun]
    Filename: "{app}\INIT.EXE"; Parameters: "/x"
    

    If you need to do something more complex, you can also do it in code using the Pascal scripting functionality in InnoSetup. See UninstallCodeExample1.iss' in theInnoSetup 5\Examples` folder.

    0 讨论(0)
提交回复
热议问题