when uninstalling application, i'd configure wix setup remove files added %appdata% folder, after original installation.
but here problem, application can run many users. in application start have function creates files if not exist. want remove files, no matter "user/appdata" are.
a similar question has been asked here: removing files when uninstalling wix
but difference handling multiple users.
synopsis: don't way; leave each user make easy understand , do.
scenario:
- a user installs version of application.
- zero or more users run it, , application creates data them individually.
- a user uninstalls application.
variations:
- instead of uninstalling, user upgrades newer version.
- instead of uninstalling, user downgrades older version.
- some time after user uninstalls application, user installs newer version.
- some time after user uninstalls application, user installs older version.
- some time after user uninstalls application, user installs same version.
considerations:
- would users aware of data , consider own work?
- would users care if data wiped out , recreated? (that effect of other user uninstalling application data being deleted , user re-installing it.)
- can application detect version of data?
- can installer detect version of data?
possible solution:
let each user decide @ time "uninstall" data. (this solution addresses of issues raised above.)
- the application creates "uninstaller" each user runs application.
- the user data uninstaller registered application under user's profile in "add/remove programs" and/or shortcut in user's programs menu.
- the application installer doesn't have data.
- the user data uninstaller simple script/program need unregistered , delete itself, too. 1 way windows installer package silently installed (per-user) application.
Comments
Post a Comment