Richard wrote:
> In article <[EMAIL PROTECTED]>,
>     Craig0ss <[EMAIL PROTECTED]>  writes:
> 
>> Basically my installer installs certain standard letters for use with the
>> software, if i change the standard letter to incorperate client specific
>> details and then uninstall the product the modified file is removed, is
>> there a way to check if the file has been modified and do not delete it on
>> uninstall?
> 
> The way I've dealt with this was to run a custom action that copies
> the files to a backup before the upgrade install transaction begins,
> i.e. the CA was immediate and sequenced before InstallInitialize.
> 
> Its kinda hacky; I'd rather that Windows Installer not remove modified
> files during an upgrade, but I can see how that would be problematic
> to get right in all circumstances.

Huh? Hacky is allowing files to be modified in install locations. I'm
mostly from Linux distributions when it comes to this but,

  1. installer must never install in user modifiable folders for system
wide installs
  2. installer must not modify user settings - only system settings
(unless user install, of course).
  3. software must store modifications in user folders and in user
accessible locations (registry), unless it is some system software that
stores global changes, then it must not just overwrite the default,
install data.
  4. install locations should not be overwritten by user actions from
within the program no matter if installed as system or user.


There are other areas too, like not removing user configurations when
uninstalling software. Most Windows installation people would do users a
favour by following rules that are common in UNIX world.

I think Vista is starts to enforce this more than older versions of
Windows - finally Windows version that makes sense in terms of
user/system/install defaults.

- Adam

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to