473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Commandline Add/Remove Program

I have developped a new version of software and was wondering if their
was a way to launch the uninstaller for the old software through the
installer. (via commandline or something)

Thanks in advance.

Oct 23 '06 #1
4 1338
>I have developped a new version of software and was wondering if their
was a way to launch the uninstaller for the old software through the
installer. (via commandline or something)
If it has an MSI based installer you can run

Msiexec.exe /x <product code>
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Oct 23 '06 #2
Thanks,
I will try that to see if it works
Mattias Sjögren wrote:
I have developped a new version of software and was wondering if their
was a way to launch the uninstaller for the old software through the
installer. (via commandline or something)

If it has an MSI based installer you can run

Msiexec.exe /x <product code>
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Oct 25 '06 #3
Hi
we can Unlnstall the Old versionby specifing the property in MSI.
there is a property RemovepreviousVersion set this property to true it will
automatically remove the old version

Regards
Prabakar

"sm****@gmail.com" wrote:
I have developped a new version of software and was wondering if their
was a way to launch the uninstaller for the old software through the
installer. (via commandline or something)

Thanks in advance.

Oct 25 '06 #4
Yes I have looked into this (maybe I am doing this wrong).

We have moved from Windows installer (visual Studio 2003) to install
sheild as well as from MFC to .net 2.0.

I have tried adding changing the product ID's to match the MFC version,
but it will not uninstall properly (maybe this is because I am not
populating the correct ID). So I figured that if I run the Uninstaller
via install sheild I may be able to get it to work in the same fashion.

I have tried running the MSI uninstaller manually but I can't seem to
get it to work either. I must be using the wrong Product ID.
Which/where would I find the correct ID.

S.

Prabakar Samiyappan wrote:
Hi
we can Unlnstall the Old versionby specifing the property in MSI.
there is a property RemovepreviousVersion set this property to true it will
automatically remove the old version

Regards
Prabakar

"sm****@gmail.com" wrote:
I have developped a new version of software and was wondering if their
was a way to launch the uninstaller for the old software through the
installer. (via commandline or something)

Thanks in advance.
Oct 27 '06 #5

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

Similar topics

1
by: Rvo | last post by:
I'm writing an application that should work both as a GUI and a commandline program. When running from commandline I want to give all output to the commandline instead of showing it it an own...
5
by: jcrouse | last post by:
I have the following code: Dim MyStartupArguments() As String MyStartupArguments = System.Environment.GetCommandLineArgs UBound(MyStartupArguments) RomName =...
2
by: Christoph Borger | last post by:
Hello! I have wrote a windows service in vb.net. This service monitors the running processes with WMI and the Win32_Process class. Till last month all seems ok. But since the begin of september...
26
by: Martin Jørgensen | last post by:
Hi, I'm learning C-programming. I have a program which I would like to modify so it takes arguments from the commandline. Let call the program: program.exe. Could somebody shortly explain how...
2
by: Zhang Weiwu | last post by:
Hello. I am looking for a commandline tool to take an html document (or html document segment, a.k.a. without beginign "<html><head>..</head><body>") and process it by removing all css style...
3
by: balakrishnan.dinesh | last post by:
hi frndz, As we know that, we can pass command line agrument for C using "scanf" commands, So as same as that, Is there any way to pass those commandline arguments through php code to C and...
1
by: edmondsnake | last post by:
Dear all, I would like to ask questions about my VB.net program. The executable file of the program is called "PSP.exe" Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As...
3
by: Ariharan | last post by:
Explain me how to compile and run a C program in commandline(Windows XP Turbo C++ Version 3.0) The program must also accept commandline arguments... Explain with example program to read a number...
8
HaLo2FrEeEk
by: HaLo2FrEeEk | last post by:
I'd like to write a program to assist me in upoloading files to my site. I know how to upload the files using C#, I just don't know how to have an interface and still accept commandline parameters. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.