PDA

View Full Version : Upagrades: Remove existing products


makka
08-09-2007, 05:41 AM
Hi everybody,
I'm newbie of WIX & SUFWIN.

I'm looking to create and upgrades strategy using SUFWIN. I decided that for then moment I will create a full package as major upgrade for each new release changing the product code.

The setup.msi is created using a build server so the version number is passed to candle.exe as variable and is used in many places:
to create install folder path (C:\Program Files\MyApp\2.1.1 )
to create desktop shortcut (MyApp 2.1.1 )
to create program menu shortcut (MyApp -> MyApp 2.1.1 )
to create entry in Add/Remove program list (MyApp 2.1.1)

Now on every update I need to delete old install folder , delete
old desktop shortcut, delete program menu shortcut and update entry in Add/Remove program list.

I also use the folder
C:\Documents and Settings\All Users\Application Data\MyApp\database
to contain shared version database file so I need to install this file only on the first install and not remove it during upgrades or uninstallation

Brett
08-09-2007, 09:38 AM
makka,

I am not sure of what your specific question is. Can you clarify?

makka
08-09-2007, 09:49 AM
Ok. I'll try to explain.

Now I have a setup for version 2.1.1 that creates:
install folder path (C:\Program Files\MyApp\2.1.1 )
desktop shortcut (MyApp 2.1.1 )
program menu shortcut (MyApp -> MyApp 2.1.1 )
entry in Add/Remove program list (MyApp 2.1.1)

Tomorrow I'll release version 2.1.2.
I need to delete
install folder path (C:\Program Files\MyApp\2.1.1 )
desktop shortcut (MyApp 2.1.1 )
program menu shortcut (MyApp -> MyApp 2.1.1 )
entry in Add/Remove program list (MyApp 2.1.1)

and create
install folder path (C:\Program Files\MyApp\2.1.2 )
desktop shortcut (MyApp 2.1.2 )
program menu shortcut (MyApp -> MyApp 2.1.2 )
entry in Add/Remove program list (MyApp 2.1.2)

I need to keep the content of folder
C:\Documents and Settings\All Users\Application Data\MyApp\database

How can I do this ?

Brett
08-09-2007, 11:07 AM
You will have to treat each version as a major upgrade. You do this by changing the product code for each version and then adding upgrade codes for each old version. See the Product tab topic in the help file for more details about Major Upgrades.

As far as making a file not be uninstalled, double-click the file and then select the Component tab. Next, click the Edit Component button. On the General tab, check the "Permanent" option.