Rennie Petersen wrote:
The reason I do not want to change the registry entries is that these
registry entries are used by the application to store changes in the
configuration. For example, one registry entry is used to indicate the
language to be used by the running application. It is initialized to
Danish or English at install time, depending on Windows locale info or
a value entered via the UI. But later, the user may change his/her
mind and specify a different language. An install of a minor
upgrade should preserve the new value rather than re-initialize it,
otherwise the users will get upset since they have to re-change the
language once again.
Maybe this is poor application design? The application should accept
installation values in one set of registry entries and save running
values elsewhere?
The canonical method is to have defaults in HKLM/ProgramFilesFolder and
the user's choices in HKCU/[Local]AppDataFolder. The installer would
write only to the default locations, so updating them is always safe.
The app looks to the default locations only if there isn't a value in
the user's locations.
But if I do it that way, how should one tell the application that you
really do want it to change the values to new installation values when
that is advantageous, for example a re-install to force a change to
Swedish when that language support is added and most of the users at
this site are Swedish?
Why force such a change once the app is already installed? Instead, let
the app detect during startup that it now has a language that matches
the user's locale setting, for example.
--
sig://boB
http://joyofsetup.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users