Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

setup is being run from the Add/Remove Programs


2 replies to this topic

phoenix

phoenix
  • Members
  • 7 posts

Posted 21 September 2004 - 08:23

I wanted to detect whether the setup is being run from Add/Remove programs or not.

I have found the following code snippet but it is not working. The ADDREMOVE system variable is never set to true.
I am using DevStudio 9 and the project type is InstallScript MSI.

Discussion
For InstallShield X, DevStudio 9.x and Professional 7.x users

The InstallScript system variable ADDREMOVE can be used to detect whether the setup is being run from the Add/Remove Programs or not. For example, in your OnMaintUIBefore event code you can add the following code to detect if the setup is being run from Add/Remove Programs:

if (!ADDREMOVE) then
// Setup is not being run from Add/Remove Programs
else
// Setup is being run from Add/Remove Programs
endif;

Thanks in Advance.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 21 September 2004 - 11:39

ADDREMOVE applies only to InstalLScript projects, not to Basic MSI or Installcript MSI projects

phoenix

phoenix
  • Members
  • 7 posts

Posted 21 September 2004 - 11:43

so is there a way by which this can be done in InstallScript MSI project?