user.config RRS feed

  • Question

  • Hey,

    I'm creating a setup to install an application with vb setup project.

    I was wondering if it is possible to remove or overwrite the user settings (my.settings) file in C:\Documents and Settings\user\Local Settings\Application\Data because we want new settings every time the app is reinstalled.

    I also would like to know how to remove files created by the app in the installation directory (ex.: ini files) if that is possible.

    Thanks and Greetz

    Tuesday, May 23, 2006 2:18 PM

All replies


    When you do a deployment project as opposed to a one click publication, to acquire a much wider range of choices. Each file has a properties box and one propety is:

    Permanent which when false says "remove this file on deinstallation.

    Tuesday, May 23, 2006 2:43 PM
  • true, but the files are created by the application during runtime, not when the app is installed.
    Tuesday, May 23, 2006 2:48 PM

    You could write a siimple preinstallation app as part of your deployemnt that would delete those files.

    Tuesday, May 23, 2006 2:50 PM
  • How can we get the url of the installation folder that has been choosen by the user who installs the program. And how can we now which user is logged in to know his settings folder in local settings?
    Tuesday, May 23, 2006 2:54 PM


    You're adding to the functional spec like crazy......

    You can always leave yourself a note in the registry.....

    Tuesday, May 23, 2006 3:08 PM