On 1 Abr, 15:17, Peter Duniho <NpOeStPe...@NnOwSlPiAnMk.com> wrote:
> On 4/1/11 2:14 AM, Nuno Magalhaes wrote:
>
> > [...]
> > a) I'm adding the files manually and I would like to stay that way
> > because in the future there will be more directories and more
> > applications in one single install package (there will be also data
> > files that I would like to be updated/upgraded). The version I expect
> > to update is always to the latest version.
>
> > b) I guess there is no version information on HelloWorld.exe.config
> > nor in the possible future .png data files for example but I would
> > really want those files to be upgraded/updated.
>
> Sorry, I cannot make sense of your question. *If you acknowledge that
> the .config file contains no version information, what is it that you
> think VS should be doing to the file in terms of being
> "upgraded/updated" and why?
>
> In any case, I also don't see how you can insist on adding files
> manually, but then be concerned about having to maintain the same files
> manually. *It seems to me that the two go hand in hand. *If you bypass
> Visual Studio's mechanisms for dealing with automatically maintained
> files, that's an implicit agreement to maintain the files yourself
> rather than to have VS do it.
>
> Again, for the .config file it's a moot point anyway, since it doesn't
> contain version information. *But even for other files that might
> contain version information, if you are not allowing VS to add the files
> in the first place, it should not be surprising that VS might not
> necessarily identify the files as being special and in need of automatic
> maintenance.
>
> Pete
Hi Pete,
Sorry to be so confusing but I think I found what I want.
I edited the resulting .msi file with ORCA MSI Editor and set in the
Properties table the flag REINSTALLMODE=amus which is the same as
invoking "msiexec.exe /i HelloWorld.msi REINSTALLMODE=amus".
From what I read in some sites:
• a - Force all files to be reinstalled, regardless of version.
• m - Rewrite all registry keys that go to HKEY_LOCAL_MACHINE or
HKEY_CLASSES_ROOT.
• u - Rewrite all registry keys that go to HKEY_CURRENT_USER or
HKEY_USERS.
• s - Reinstall shortcuts and icons.
Nuno
|