Setup started from Add/Remove
Posted 17 August 2005 - 15:06
Posted 17 August 2005 - 15:53
When the setup is launched from Add/Remove Programs the first thing that will occur is the framework will check to see if this installer has run before. I believe it does this by checking the <PROGRAMFILES>\Installshield Installation Information\<Your Project GUID> directory. So you could check for the presence of that directory to verify it's been run on that machine previously.
However, if that is not enough (knowing it's been run before) the IS script follows the OnBegin(), OnMaintUIBefore(), OnMaintUIAfter() path. In either OnBegin() or OnMaintUIBefore() you could check the CMDLINE variable. I know both modify, repair, and uninstall options from the Add/Remove applet put something into that variable, but am unsure what those are.
Hope that helps
Posted 17 August 2005 - 17:13
I need a way to tell if the user has started my install from Add/Remove; if not I need to abort the install.
Posted 18 August 2005 - 01:47
However, I don't see why this would be a requirement as it leads to the same thing in the end.
Posted 18 August 2005 - 15:08