View Single Post
Old 03-05-2008   #2 (permalink)
Steven Cheng


 
 

RE: VS2005 Setup Project File with Property 'Permanent' is uninstalled

Hi flutophilus,

From your description, I understand you've built a setup project which set
a certain file to "permanent = true" so as to prevent it from being removed
at uninstall time, however, you found the file still got removed, correct?

I agree that the "permanent=true" should keep the file from being removed
as you expected. I've also performed some simple tests by creating some
setup project and set some files(deploy to program files or desktop folder)
to "permanent =true", and they're preserved as expected after I uninstall
the program. Therefore, I think this should be a specific case. Have you
tried a simple setup (or try mark other files to permanent) to see whether
you can get the expected behavior. Also, is there other custom code module
in setup project that may touch the file?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
Quote:

>From: =?Utf-8?B?Zmx1dG9waGlsdXM=?= <flutophilus@xxxxxx>
>Subject: VS2005 Setup Project File with Property 'Permanent' is uninstalled
>Date: Wed, 5 Mar 2008 07:39:05 -0800
Quote:

>
>Hi,
>
>I'm working with VS2005 and I have a setup project that installs a Windows
>forms application. I have a config file ( it's the app.config file -
>MyApp.exe.config) which I want to leave on the target system if the
>application is uninstalled. In the Setup Project File System designer I
set
Quote:

>the "permanent" property of this file to "True", which should leave the
file
Quote:

>installed if the user uninstalls the application. However if I uninstall
the
Quote:

>application using the setup.exe generated by the setup project it removes
>this file.
>
>Am I doing something wrong?
>
>
My System SpecsSystem Spec