PDA

View Full Version : Uninstalling each User's user data?


johneast
08-13-2005, 04:59 PM
What's the proper uninstall protocol and procedure for deleting each User's user data pretaining to our program? Here is an overview...

In addition to our installation folder of: C:\Program Files\OurProgram

Our program creates User data for each User in the Documents and Settings User folders. ie.

C:\Documents and Settings\User1\Application Data\OurProgram\
C:\Documents and Settings\User2\Application Data\OurProgram\

The data and folders are NOT created during installation but are first created when a user first accesses the program via each users program shortcut.

What's the proper protocol in removing "user data" that relates to your program. If the Administrator is uninstalling the program, do you assume that each User's residual files should be deleted including the data that has been created for and by the User.

If so, how is this done in Setup factory? How do you find and cycle through each user and delete each User's data in Documents and Settings?

Thanks

csd214
08-14-2005, 10:47 AM
How to find the accounts
In my test project TestApp2_SUF70 I used these actions

strWantedKey = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Expl orer\\DocFolderPaths";

tblUsers = Registry.GetValueNames (HKEY_LOCAL_MACHINE, strWantedKey);
for x,y in tblUsers do
if y ~= "SYSTEM" then
strUsers = strUsers..y.."\r\n"
end
end

I think the project is published in the thread File.Find() and Progress Meter (http://www.indigorose.com/forums/showthread.php?t=9043)
(button User Accounts)

This method does not find accounts created but not used so far; that’s without importance in your project.

The proper protocol in removing "user data"
IMHO it’s depending on the data. Maybe you should display a warning? Offer an option?