I am using inno setup script. I am trying to accomplish next:
- To allow only one instance of setup
- If previous version is detected allow and perform uninstall of previous version - perform this with first setup that user started.
I've tried with appMutex and that does prevent more that one instances of setup, but since I have code that detects previous version of my app, when the previous version is detected inno will ask if I want to remove previous version and when I try to do that - because of mutex - I get a message that previous instance is already running and to close previous instances.
Now if I remove mutext I can uninstall previous version but multiple instances of same setup can be started which is something I don't want.
I also tried with this link: http://www.vincenzo.net/isxkb/index.php?title=Only_one_installer_instance but it doesn't work for some reason.
and also tried with this one: http://www.codenewsfast.com/cnf/article/0/waArticleBookmark.6313056 but I get the error: cannot import dll
Is this possible at all what I am trying to accomplish?
If it is can someone help me with some solution?
Thanks for helping me with this one