mjvitale
Posts: 20
Joined: Tue Apr 05, 2005 7:58 pm
Location: Falls Church, VA

is my update method, which works, the right one?

Hi,

These are the steps I use to create an upgrad installer for my product. Is there a better way to do it?

1. Copy product files to the new version directory.
2. Open previous AIP file and SAVEAS to the new version directory.
4. Go to Product Details and change the Product Version. Save it. When prompted to add a new product code for replacing older versions, say YES.
5. Go to files and folders pane, and delete all files, except product.exe, since I have shortcuts and I do not want to erase them.
6. Rename product.exe to product.aaa temporarily so we can get the new version.
7. Right mouse click in the Files and Folders area and add all the files in the new version directory.
8. When prompted to import INI files say NO to use the normal add files method.
9. Replace all occurrences of product.AAA with product.EXE:
9a. Files and Folders/Start Menu Programs shortcut (delete and add)
9b. Files and Folders/Desktop shortcut(delete and add)
9b. Custom Actions/Uninstall. Browse for product.EXE to replace
the AAA one.
9c. Dialogs/Installation Complete. Change to the correct Launch
app.
10. Delete product.AAA.
11. Under Dialogs/license agreement, replace the License agreement with the one in the current directory.
11. Build the new installation package.
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

I would suggest the following approach:

1. Copy the old product files and the AIP project to a "new version" directory.
2. Replace the old files with the new files and also add any new ones to the "new version" directory.
3. Open the AIP file from the "new version" directory and change the product version.
4. Add any new files if necessary.
5. Under Dialogs/license agreement, replace the License agreement with the one in the "new version" directory.
6. Build the new installation package.

Note that the radio button "Paths are relative to Project Root Path" must be selected in the "Edit Project Settings" dialog (Project -> Options).

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
mjvitale
Posts: 20
Joined: Tue Apr 05, 2005 7:58 pm
Location: Falls Church, VA

ahhhhh that does seem a wee bit easier...

especially with that relative path setting that I never saw before...

I reckon I could do the same thing with patches, except just say NO to update product number?
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

There are some restrictions that you need to be aware of before using a patch. Please see this thread which outlines the differences between patches and upgrades:
http://www.advancedinstaller.com/forums ... .php?t=841

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”