cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jophyjob
Level 4

Remove Older version on install of new ?

Hello all ,

We planing to remove older version on install of new version . I see A link (http://stackoverflow.com/questions/12337860/update-an-existing-installation-using-installshield-le?lq=1) Saying that we have to update Product no and product Code for do this . We are building our application in TFS Build ,we set Version from TFS build using InstallShieldProductVersion property . Like that can we possible to set new product code (GUID ) from TFS build .

Or any other Way to uninstall previous Version on install of new version ?

with regards
jophy .
0 Kudos
3 Replies
chiranjeevi
Level 7 Flexeran
Level 7 Flexeran

Hello,

In the newversion setup, make use of a supported custom action(for example : vbscript) to remove the previous version during installation using it's product code which you wish to remove.

Thanks,
Chiranjeevi
0 Kudos
jophyjob
Level 4

Hello ,
I am using InstallShield Limited Edition for Visual Studio(free) , that provide limited no of custom actions . I see one link saying that we have to use "Before System Search" custom actin ,but in free edition it disabled .

Then how to do it ?
0 Kudos
chiranjeevi
Level 7 Flexeran
Level 7 Flexeran

Hello,

Try this:

in Solution Explorer go to "General Information" page
increase the Product Version
generate a new Product Code
make sure that ALLUSERS property has the same value as in the old package
go to "Upgrade Paths" page and add the old MSI
build and install your new version

When running this new package it should automatically detect and remove older versions.

You can read about Windows Installer upgrades here: http://msdn.microsoft.com/en-us/library/aa370579(VS.85).aspx

Thanks,
Chiranjeevi
0 Kudos