Archive: Depending whether application is already installed determines component selection?


Depending whether application is already installed determines component selection?
Hello,

I am trying to change the pre-selected component dropdown list based on whether the application has been previously installed.

e.g. I have two component selection choices. Full/Upgrade. If the application has never been installed (FULL) is automatically chosen whereas if an installation is already detected (Upgrade) becomes the automatic default choice.

I hope I made myself clear. Is this possible? Thank you for any help on the subject :)


Sure, you can read registry keys, files, configuration files, whatever you want.

Depending on the value of variables, you can decide whether to upgrade or not.


Can you help broaden the answer Joost? I can check to see if a prior installation exist but do not know how to state that if one does, how exactly to go about changing the component selection accordingly...

Thank you for your help and time on this!


In this case you don't have to use a components page because the user doesn't have to make a selection.

You can use StrCmp in a section to check the content of a variable and execute the code for full or upgrade.