including an uninstall capacity

J

Jerry

Hi

I have noticed that my apps don't have an uninstall capacity in the users
programs shortcuts. While users can remove the program in the control
panel, add remove programs, I would like to have an uninstall as an option
in the program menu.

I am using VS2005 and using the setup deployment project type.

Thanks

Doug
 
N

Nicholas Paldino [.NET/C# MVP]

Jerry,

Since your installer should create an MSI package, you should be able to
write a small utility which will call MSIEXEC to uninstall your program.
You will want to execute the following on the command line from your utility
(you can spawn this off in a new process from your uninstall program):

msiexec/x {Package | ProductCode}

You can use the package or product code to specify your product.
 
J

Jerry

Hi Nicholas

Thanks for your advice.

Can you point me to an example of such a utility?

Thanks

Doug

Nicholas Paldino said:
Jerry,

Since your installer should create an MSI package, you should be able
to write a small utility which will call MSIEXEC to uninstall your
program. You will want to execute the following on the command line from
your utility (you can spawn this off in a new process from your uninstall
program):

msiexec/x {Package | ProductCode}

You can use the package or product code to specify your product.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jerry said:
Hi

I have noticed that my apps don't have an uninstall capacity in the users
programs shortcuts. While users can remove the program in the control
panel, add remove programs, I would like to have an uninstall as an
option in the program menu.

I am using VS2005 and using the setup deployment project type.

Thanks

Doug
 

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