473,699 Members | 1,999 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

including an uninstall capacity

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
Jul 2 '07 #1
2 2044
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]
- mv*@spam.guard. caspershouse.co m

"Jerry" <je***********@ gmail.comwrote in message
news:46******** **************@ news.optusnet.c om.au...
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

Jul 2 '07 #2
Hi Nicholas

Thanks for your advice.

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

Thanks

Doug

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c omwrote in
message news:eM******** ******@TK2MSFTN GP06.phx.gbl...
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]
- mv*@spam.guard. caspershouse.co m

"Jerry" <je***********@ gmail.comwrote in message
news:46******** **************@ news.optusnet.c om.au...
>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


Jul 4 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2957
by: Lasse Skyum | last post by:
For my renderer at each frame I'm filling a vector with CVisual* elements, sorting it, rendering the objects and then clearing the vector again. I suspect there will be an overhead if the vector is resizing it's capacity all the time... is there a way to prevent this? -- Lasse
4
2623
by: Noo | last post by:
Hi. I've got some code that uses vectors fairly extensively and it needs to be efficient. Therefore I'm using reserve() quite a bit. However what other functions (are supposed to) change the capacity? I know that adding extra elements (e.g. by using push_back()) may do this, if extra capacity is needed. On the C++ implementation I'm using: clear() seems to reset the capacity to zero. resize() leaves the capacity as is.
8
2898
by: Joseph Turian | last post by:
Fellow hackers, Is it possible to shrink the capacity of a vector? i.e. Without new'ing and delete'ing a vector, can one return its memory to the heap? Here's what I get under the g++ implementation: vector<double> v = vector<double>(1024*1024);
2
2310
by: Fred Zwarts | last post by:
There are a few things I do not understand about the vector class in de standard C++ library. The description of the resize member function says: void resize(size_type sz);Alters the size of self. If the new size (sz) is greater than the current size, then sz-size() instances of the default value of type T are inserted at the end of the vector. If the new size is smaller than the current capacity, then the vector is truncated by erasing...
9
6340
by: VJ | last post by:
I am deploying a Package having applications developed using VB.NET and VS.NET 2003. I am using the Packaging feature provided with the VisualStudio. I can use the package to creates shortcuts for all my application executables. Now to Uninstall this package I have to make the user go to Add/Remove programs everytime. The users are requesting that if they can have a uninstall option as part of the application menus... How do I provide...
3
2468
by: leeps_my | last post by:
I'm thinking of using "resize-to-size" to do the trimming: aVector.resize( aVector.size( ) ); I'm wondering why Scott Meyers was recommending "swap trick" instead, since the trick involves construction and destruction of a temporary, and might still leave some excess capacity in the vector.
0
2414
by: Nattydreadlock | last post by:
Hello, I'm having some problems installing Visual Studio 2005. I'll briefly explain what's the history of the problem here. First I installed VS 2005 beta 2. I uninstalled it later via the Windows Uninstall Tool you can download. Then I installed Visual Studio 2005 Team Edition ENU. This was a trial version for 180 days.
1
279
by: Jerry | last post by:
Hi Nicholas Thanks for your advice. Can you point me to an example of such a utility? Thanks Doug
7
3749
by: Luna Moon | last post by:
#include "stdafx.h" #include <iostream> #include <string> using namespace std; int main() { string cc(31, 'c'); string bb=cc.assign(3, 'dd');
0
8697
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8621
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9184
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9042
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8929
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8891
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4380
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2013
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.