Configure Inno global installation with user preferences?

Inno setup task here ...

I am creating a program that should be installed globally for all users, but where each user has their own settings for the program, which should be shared between not . To get this out of the way it works well in Windows 7, I made the program itself create a folder under {userappdata} to save its settings. However, I would like the installation to be able to do a clean uninstall, which means that my uninstaller (of course, as an administrator) must delete the folder for each user who has it .

Does anyone know how I can do this? I'm at a dead end ...

+3
source share
1 answer

You may have an application in which users for whom he created the configuration file are recorded, and then placed the removal logic either in his main program or in the utility application and launched it during uninstallation via inno [UninstallRun] Filename: "{app}\WHATEVER.EXE"; Parameters: "/uninstall".

Another approach is for your main application to dynamically add data to the uninstall bat / vbs installed in the dir directory and run it.

The only thing I can think of is to use the Pascal script in the delete event.

+4
source

Source: https://habr.com/ru/post/1755287/


All Articles