Enforce single installation with Innosetup?

Posted by roo on Stack Overflow See other posts from Stack Overflow or by roo
Published on 2010-03-05T02:38:03Z Indexed on 2010/03/12 11:47 UTC
Read the original article Hit count: 403

Filed under:

We have an application which we licence to separate companies. The app is customised to fit their brand; basically it is the same app but with a different theme file. We generate separate installers for each vendor as each app requires different configurations (servers to connect to, updates etc).

So each installer contains the same compiled application but with different configurations. All of this is managed by our build system so adding a new vendor is just a matter of creating a new theme and a simple include script for Inno Setup.

Our problem is that we want to ensure that when a user installs the app from vendor A they will not be able to install it from vendor B unless they explicitly uninstall the existing app.

Is there some setting in Inno Setup which will check if there is an existing installation (either from the same vendor or a different one) and tell the user they have to remove the existing installation?

© Stack Overflow or respective owner

Related posts about inno-setup