We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

MrWiizard
Posts: 3
Joined: Wed May 16, 2007 12:49 pm

Remove user-specific application settings at uninstall

My application saves its settings in a file in the Application Data dir for every user that runs it. How do I remove these files at uninstall?
At install I dont know who will run the program or not and therefor I dont know who has files that needs to be removed.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Since Windows Installer does not know about those files the only way of doing this is by using a custom action. But I don't see this as a good practice: One user to delete the application data file of all other users.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
MrWiizard
Posts: 3
Joined: Wed May 16, 2007 12:49 pm

I consider files stored in the ApplicationData dir to be files that the user never should touch. User-created files (like documents and pictures) should be stored in the user's My document dir and these should never be removed by another user.
But since the user never should touch the ApplicationData files I really think it IS good practic to remove them when uninstalling.

Is there an easy way to find the ApplicationData dir for every user in Advanced Installer?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
Is there an easy way to find the ApplicationData dir for every user in Advanced Installer?
The only way is by using a custom action.
I consider files stored in the ApplicationData dir to be files that the user never should touch
Are those files individual for each user? If not my suggestion is to use the "Common Application Data" folder (translated to: "C:\Documents and Settings\All Users\Application Data") from "Files and Folders" page. This is common for all users and all users can access it.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
MrWiizard
Posts: 3
Joined: Wed May 16, 2007 12:49 pm

Are those files individual for each user? If not my suggestion is to use the "Common Application Data" folder. This is common for all users and all users can access it.
I tried to store all settings (indivdual and common) in Common Application Data but limited users cannot write to this folder. So this option is not possible.

Return to “Common Problems”