How does the installer know what files to update?

Got a problem you cannot solve? Try here.
Post Reply
ken rentz
Posts: 71
Joined: Mon Jan 23, 2006 5:33 pm
Contact:

How does the installer know what files to update?

Post by ken rentz »

Should I change the revision code even when working on internal releases? I produced an updated release for testing and did not change this number. when run, this installer would not update the files from the earlier one.
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Yes, this is default Windows Installer behavior. Windows Installer won't even check to see if the MSI package is different if two packages have the same revision code. For these reasons, the IDE's default setting is to auto-update your revision code for you.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
ken rentz
Posts: 71
Joined: Mon Jan 23, 2006 5:33 pm
Contact:

Post by ken rentz »

That explains things.

Is there a good reference describing the "under the hood" behavior of the windows installer side of things? Making a basic installer for our program was quite easy. The problems that I'm encountering have to do with updating older program installed with a non-msi installer. Patching up 4 existing versions of programs and maintaining user settings, data, etc. Trying to figure out what is happening with these various combinations is a bit of a challenge.
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

InstallAware protects you from most of the MSI internals. If you do want to read up on them :), you can study the Platform SDK Documentation. There is ample documentation there - but it will take a bit of research!
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Post by jimo »

Ken,

When we moved from a non MSI installer we found through trial and eror the best method was as follows:

1. Read in from the registry or ini files etc all user configuratino options
2. Invoke the current uninstall program
3. install your updated app

Then in the future applying patches and updates will be simple.

Hope this helps.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
ken rentz
Posts: 71
Joined: Mon Jan 23, 2006 5:33 pm
Contact:

Post by ken rentz »

jimo wrote:Ken,

When we moved from a non MSI installer we found through trial and eror the best method was as follows:

1. Read in from the registry or ini files etc all user configuratino options
2. Invoke the current uninstall program
3. install your updated app

Then in the future applying patches and updates will be simple.

Hope this helps.
The solution we’ve come up with that seems to work pretty good is to have a pre-install cleanup routine that only runs the first time the IA installer is used. It basically patches or uninstalls any troublesome components before the main install script starts installing things. This combined with forcing IA's installed features to match what an existing user has on their system seems to put things into a stable configuration. Unfortunately, since we are dealing with 3 versions of old releases, keeping user settings, data licenses, etc. is a real hassle.
Post Reply