foleym
Posts: 8
Joined: Mon Oct 02, 2006 7:51 pm

Proper way to organize aip versions

What is the proper procedure for generating version upgrades?

For example I have v5.aip which has 100 files defined in various paths
that it builds into the v5install.exe.

Now I have a few minor file changes so I want to generate an upgrade
to v6.

I want to keep the v5.aip directory and it associated files so that I
can build v5 again if necessary.

Isn't there some way to duplicate or copy the existing aip, move it to
a new V6 directory and edit it such that the paths are now correct,
it generates a v6install.exe that detects that v5 is installed, removes
it and installs v6?

I really don't want to start with a blank aip and manually add all of the files and conditions again. There's too much to do and possibly miss.

If I change my version in the original v5.aip to v6 and rebuild, the
resultant executable will correctly detect v5, remove it and install v6,
but now my ability to build v5 is gone.

If I try to create a v6 in a new seperate directory, either by copying or Duplicate, it no longer removes the existing v5, and I end up with 2 apps in the Control
Panel Add/Remove programs..
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The best way to keep the AIP files from version to version is to use "File->Save As" option. After you "Save As" your AIP file increase the version and choose yes when you are asked to generate a new product code.

If you have any questions please let me know.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
foleym
Posts: 8
Joined: Mon Oct 02, 2006 7:51 pm

versioning

If you use file save as then yes you will have a new .aip file. But what
about an entirely new directory? Can I then create a new directory
with my files for the next release, move the new .aip file into there
and build my next release from there and still have it properly detect the
upgrade when I run it?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You can do this but note that you need to use relative paths for the files in you project. See "Project->Options->Edit Project Settings" dialog.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
foleym
Posts: 8
Joined: Mon Oct 02, 2006 7:51 pm

This doesn't seem to work, or I'm missing something here..

My current build version 5.2.1 is in a relative directory c:\5_2_1.
Under the Application Data Folder all files show an absolute
path c:\5_2_1 even though I have relative paths specified
in the Project OPtions Tab.

I want to now build version 6.0.0, which will come from C:\6_0_0.

I have the 6_0_0 directory all ready, so with my 5_2_1.aip file loaded
I do a Save As into C:\6_0_0\6_0_0.aip.

If I now open the 6_0_0.aip project all of my files specified
in the Files, Folders and Shortcuts are still pointing to the
old 5_2_1 directory.

How can I get the paths to automatically migrate to the new directory?
These are hundreds of files, I can't delete them all and re-add them
every time I gen a new version...
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

"File->Save As" option does not work in this case. To do that just copy the AIP file into the new directory and make sure that you have "Path are relative to Project Root Path" option in the "Edit Project Settings" dialog.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”