Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Delete user.config with deinstallation
 

Delete user.config with deinstallation

Hi,

I have the problem, that after the deinstallation the user.config still remains in the folder:

Vista: C:\Users\Username\AppData\Local\Microsoft_Corporation\MyTestProg\user.config

or under

XP:C:\Documents and Settings\Username\Local Settings\Apllication Data\Microsoft_Corporation\MyTestProg\user.config

If I use the normal deinstallation within the system control the user.config still remains.
Is there a way to delete also the folder MyTestProg and all of its content with the normal deinstallation rountine? Do I have to add some customactiondata?

Thanks!
  • Edited byYakomozB Friday, April 24, 2009 10:08 AMSpecification
  • Moved byYiChun ChenMSFTThursday, April 30, 2009 2:02 AMDeployment issue (From:Visual Studio Setup and Installation)
  •  
YakomozB  Friday, April 24, 2009 9:13 AM

Hi YakomozB,

Could you please help me to clarify your issue more? How did you deploy your application? Setup project in Visual Studio?What kind of application is it? Winform application or others?

Thanks


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
YiChun Chen  Monday, April 27, 2009 8:54 AM
I'm using the wininstaller setup project for my Com Add- In. I'm storing some user information in the my.settings. After start up of my programm the user.config is created.
Now if I delete the Com Add-In I would like to delete also the user.config.
Thanks YiChun
YakomozB  Wednesday, April 29, 2009 12:12 PM
Hi YakomozB,

I am moving this thread from Base "Visual Studio Setup and Installation" forum to the "ClickOnce and Setup & Deployment Projects" forum, since the issue is related to deployment. There are more deployment experts in the "ClickOnce and Setup & Deployment Projects" forum.

Thanks
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
YiChun Chen  Thursday, April 30, 2009 2:01 AM

Hi YakomozB,

You can handle the BeforeUninstall event to delect that file. Here is the document, please take a look.
http://msdn.microsoft.com/en-us/library/system.configuration.install.installer.beforeuninstall.aspx

Walkthrough: Creating a Custom Action
http://msdn.microsoft.com/en-us/library/d9k65z2d(VS.80).aspx

If you have any problem, please feel free to tell me.

Sincerely,
Kira Qian


Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Thursday, April 30, 2009 7:46 AM

You can use google to search for other answers

Custom Search

More Threads

• Newbie: How to create pre-defined structured-folders during installation by using ClickOnce?
• Arrrrrgh! I'm going CRAZY. Publish appears to work but is not showing up in All Programs, etc.
• KB908002 Setup Issues
• How can I use the msiexec.
• IEExec.exe and running instance
• Deploying platform-specific files
• Setup Dependencies for Visual Studio 2005 Winform application
• Want....... NO NEED
• Conditional usage of .NET framework
• How to include files in final published app?