Urgent help in VS 2005 Setup project !!!

J

JM

Hi Everybody,

I have created a setup project in Visual Studio .NET 2005. The setup is
for Windows application. It works fine but I am unable to do somethings
is this:

1. The setup uses couple of files and dlls. There are 2 files: one is
help.xml file and other is help.chm file. Both have same properties in
setup project. But after uninstall, help.chm file is removed from the
install directory but help.xml remains there.

I want help.xml also to be removed from the project. Is there something
I have to do for this?

2. My install package is copying some files to windows/system folder
also. But after uninstall, they are also not removed. I want to remove
them also during uninstall.

3. Install package creates the directory under Program Files. That
directory is also not deleted after uninstall. I want to remove that
also.

Any help would be greatly appreciated.

Thanks
JM
 
K

Kevin Spencer

Hi JM,

In your setup project, in the IDE, highlight the file being installed in the
Solution Explorer, and look at the Properties pane. One of these is called
"Permanent." If it is set to false, the file will be removed when the app is
uninstalled. See http://msdn2.microsoft.com/en-us/library/ddtk4a95.aspx for
more details.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

A man, a plan, a canal, a palindrome that has.. never mind.
 
J

JM

Hi Kevin,

Thanks for the prompt reply.

Both the files help.chm and help.xml are set to "Permanent = False".
Help.chm is removed after uninstall but help.xml remains there.

The only difference is that help.xml is used by application as a
database. Other than this I have set the properties of both files
exactly same.

Can there be any other reason ?

Thanks
JM
 
K

Kevin Spencer

Have you tried manually deleting the file and then reinstalling the app?
Other than that, I can only guess that there is a dependency on that file by
some other permanent file in the setup.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

A man, a plan, a canal, a palindrome that has.. oh, never mind.
 
J

JM

Yes, after uninstalling the app, only this file and the main directory
is left. And I can delete this file and directory manually without any
problem.

There is no other permament file left after the uninstall. Still I am
unable to figure it out.

Thanks for your time and help.
Regards
JM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top