Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Setup / August 2006

Tip: Looking for answers? Try searching our database.

Installer Reinstalls Configuration File

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
daveboyd - 23 Aug 2006 01:58 GMT
In vs 2003 the installer subproject builds an MSI file that includes several
configuration files.  These files have a setting that causes the installer to
rebuild the files from the original distribution whenever the user changes
them.  What setting is required to get the installer to ignore changes to
these user configuration files after installation?

Thanks!
Phil Wilson - 25 Aug 2006 02:17 GMT
I don't exactly understand what you mean - are you saying that the user
installs the app from the MSI file, and then changes some files, after which
the files get restored from the MSI file, replacing the changed files? If
so, this is normal repair situation.
Signature

Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

> In vs 2003 the installer subproject builds an MSI file that includes
> several
[quoted text clipped - 5 lines]
>
> Thanks!
daveboyd - 25 Aug 2006 13:35 GMT
Yes, I want to have some distributed files in my application that are not
"repaired".

Just to be clear, the "normal repair situation", seems to be invoked
whenever the user changes a distributed file (installed by the MSI file) and
then invokes the program.  Instead of simply starting the program the
"repair" is invoked and the users changes are lost by the installer replacing
it with the original file and only then the program is started.

This is extremely confusing to the user who has followed directions to edit
and set the configuration file to his/her specific share.

I naively assumed there is a setting in the VS installation build area to
not do this "repair" behavior for specific files which I asked about in my
original post.  Sorry that was unclear.

While this is interesting and admirable behavior for files that are critical
for the application to run correctly, how do I distribute a configuration
file that can be changed by the user without invoking this dictatorial big
brother?

Thanks,

Dave Boyd

> I don't exactly understand what you mean - are you saying that the user
> installs the app from the MSI file, and then changes some files, after which
[quoted text clipped - 9 lines]
> >
> > Thanks!
Phil Wilson - 25 Aug 2006 19:09 GMT
Well repair is normal in some circumstances, but it doesn't completely
explain what you're seeing, although it's involved somewhere. Repair will
restore deleted files but it will not replace user-modified files. My tests
with a setup and repair do not cause a modified text file to be replaced. So
something else is going on. If the user removed a file, then a repair would
kick in, snd this would restore missing files and run install custom actions
again. If you have an install custom action that initializes the file, that
would explain what you're seeing.
Signature

Phil Wilson
[Microsoft MVP-Windows Installer]

> Yes, I want to have some distributed files in my application that are not
> "repaired".
[quoted text clipped - 42 lines]
>> >
>> > Thanks!
daveboyd - 25 Aug 2006 20:09 GMT
Phil,

I am doing a post build process on the MSI file with Orca.  Could this be
the source of the problem?  I don't have the details at hand, but they were
conveyed to me via some earlier dicussion group help (about January or
February).

daveboyd

> Well repair is normal in some circumstances, but it doesn't completely
> explain what you're seeing, although it's involved somewhere. Repair will
[quoted text clipped - 50 lines]
> >> >
> >> > Thanks!
Phil Wilson - 31 Aug 2006 16:00 GMT
That doesn't seem likely to me. See if this helps:
http://installsite.org/pages/en/msifaq/a/1037.htm
Signature

Phil Wilson
[Microsoft MVP-Windows Installer]

> Phil,
>
[quoted text clipped - 74 lines]
>> >> >
>> >> > Thanks!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.