Detecting Previous Installations With Other Installers

Got a problem you cannot solve? Try here.
Post Reply
H4nd0
Posts: 92
Joined: Thu Nov 09, 2006 8:16 am
Location: Sydney, AU
Contact:

Detecting Previous Installations With Other Installers

Post by H4nd0 »

Previous versions of our installers were built using other product (InstallShield, Inno, VISE).

I'm currently testing for the presence of various RegKeys in order to determine the previous version that may be installed.

Question: is there a better way? Can I just sample Add/Remove programs in some way and force an uninstall of the old version?

TIA!
MortSkil
Posts: 59
Joined: Mon Oct 30, 2006 3:27 am
Location: Trondheim, Norway

Post by MortSkil »

Wise has a feature to scan MSI files for Product version GUIDs etc, which is quite handy to use for uninstalling previous products regardless if the install was created with another authoring tool than Wise.

Maybe InstallAware supports a similar feature?
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Of course, there are many counterparts in InstallAware. For example, look at:

Read Registry
Check Registry
Run Program
Is MSI Setup Installed
(Un)Install MSI Setup

Also, each default setup project comes with a pre-built script block that uninstalls an older version of your InstallAware-based setup, using (Un)Install MSI Setup. So you can look at that block of code, and similary extend the idea to automatically uninstall your old versions built inside other IDEs.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply