Inno setup global install with user-specific settings?
Inno setup qu开发者_如何学运维estion here...
I'm making a program which should be installed globally for all users, but where each user has his own specific settings for the program, which should definitely not be shared. To pull this off in a way which works well in Windows 7, I made the program itself create a folder under {userappdata} to store its settings in. However, I would like the setup to be able to do a clean uninstall, which would mean that my uninstaller (ran as admin, of course) needs to delete the folder for each user that has it.
Does anyone have any idea how I could do this? I'm stumped...
You could have the application record the users for which it has created a configuration file, then put the deletion logic in either your main program or a utility application and run it at uninstall-time via inno's [UninstallRun] Filename: "{app}\WHATEVER.EXE"; Parameters: "/uninstall"
.
Another approach would be to have your main app dynamically append details to an uninstall bat/vbs installed in the application dir and run that.
The only other way I can think of to do this is to use Pascal scripting in the uninstall event.
精彩评论