Results 1 to 3 of 3

Thread: Uninstalling an older version of program

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2003
    Posts
    47

    Question Uninstalling an older version of program

    Hi all. I've developed a system and i'm using the Setup Wizard on deploying my developed program.

    I have however came across a problem whereby when i tried to install a newer version of my program, the OS will prompt that an existing older version of the probram is present and requested that the older version be uninstalled before installing the newer version.

    Now the question, how do i programmatically checked if an older version of the current installing program is present? If so, how do i programmatically uninstall the previous version before proceeding installing a new one?

    Thanks

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    You have to change the Version and ProductCode of the setup project but leave the UpgradeCode the same and set RemovePreviousVerisons to True. That should do the upgrade if you have not installed the previous version system wide.
    Last edited by Lunatic3; Feb 25th, 2004 at 03:14 AM.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2003
    Posts
    47

    Thanks!

    Thanks Lunatic. It works!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width