Replace files in the Release folder

Got a problem you cannot solve? Try here.
Christoph Schneegans
Posts: 55
Joined: Tue Jan 09, 2007 12:20 pm

Replace files in the Release folder

Postby Christoph Schneegans » Fri Jan 12, 2007 6:56 am

Hello!

The help file reads as follows:

Please note that the uncompressed layout, while storing your application files in a readily accessible state, does not permit you to randomly replace those files. Because of the nature of Windows Installer and the way it handles resiliency, if you wish to update any of the files in the installation package, you will have to rebuild the installation. Simply copying the updated file to the proper location in the build folders may cause your installation to fail.


Does this warning really apply? I tried to make my installation fail several times, i.e. I replaced a very small text file in the "Release" folder with a very large one of the same name, and vice versa. The installation never failed, and the proper file was installed. Is it possible to identify the conditions that can make an installation fail when randomly replacing files?

jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Postby jimo » Fri Jan 12, 2007 8:42 am

I don't understand this one, I know for a fact that everytime you start the compile IA recursively deletes everything in the release folder for the build type.

If you mean that you are replace a file after you compile the setup package in the releases folder and then run the package without recompiling, well, I would think that this wouldbe unwise, however I have never tested it and do not think that it is advisable.

I'm sure Michael will comment on this as well.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Fri Jan 12, 2007 2:52 pm

This is quite ill-advised. Especially with the new file hashes option for your project in the Project Options dialog, this could break your setup at runtime. Use at your own risk!
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 171 guests