PDA

View Full Version : GUIDs problem, please help!



Kotiomkin
01-15-2009, 04:29 AM
Hi guys!

In the past I've written some setup projects customized for each customer. Every project include their specific files, attribute and so on.

Now, we find a way for use a single setup project for every our customer. But there is a problem: every old project has its own new GUID, so if I create this new setup project I suppose that when I will try to install it on a customer PC (that has an old project already installed) it could create problems!

So, since I know all the old GUIDs, can I create a sort of my "black list" in the new project in order to abort the new setup if I detect this old GUIDs?
If yes, what is the IS code for do this?

Other solutions are appreciated...

Thank you!

Christoph
01-27-2009, 09:14 AM
Are you using a basic msi project or installscript?

Kotiomkin
01-27-2009, 09:18 AM
InstallScript Project!

Christoph
02-02-2009, 10:17 AM
If you would had used a Basic MSI project, it would be easy to do.

You need to actually write a detection mechanism based on the products upgrade code.

When you find an older product of yours, you can set a property or global var.

Afterwards you can quit the installer when the property(or global var) is set.

Gvarma
02-06-2009, 03:35 PM
Hi guys!

In the past I've written some setup projects customized for each customer. Every project include their specific files, attribute and so on.

Now, we find a way for use a single setup project for every our customer. But there is a problem: every old project has its own new GUID, so if I create this new setup project I suppose that when I will try to install it on a customer PC (that has an old project already installed) it could create problems!

So, since I know all the old GUIDs, can I create a sort of my "black list" in the new project in order to abort the new setup if I detect this old GUIDs?
If yes, what is the IS code for do this?

Other solutions are appreciated...

Thank you!

If you could afford to "Uninstall" old customer application then do followings

Create a array of your old GUID within your script
create a function that scans thorough all the GUIDs in an array and see if it exists on target system
if found then use the GUID to uninstall the existing applicaiton using LaunchAppAndWait
Once uninstalled, then continue installing that customer specific files.

HTH