vbgunz
2nd May 2004 18:35 UTC
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 :)
Joost Verburg
2nd May 2004 21:34 UTC
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.
vbgunz
3rd May 2004 05:23 UTC
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!
Joost Verburg
3rd May 2004 08:53 UTC
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.