
Signature
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280
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!