473,657 Members | 2,515 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Trying to uninstall 2 apps with 1x .vbs script...

1 New Member
It is uninstalling one of the applications that i want to uninstall, but not the other.......its not to do with the uninstall string ( if i swap over the strings then it uninstalls the other app fine but again......its not doing both of the uninstalls ).
Can anyone spot what im misisng in my script?


Option Explicit
On Error Resume Next
Dim oShell, sUninstallStrin g
Set oShell = CreateObject("W Script.Shell")

Const UNINSTALLPATH = "HKEY_LOCAL_MAC HINE\SOFTWARE\M icrosoft\Window s\CurrentVersio n\Uninstall\"
Const PRODCODE = "InstallShield_ {8D3D93DA-B0C4-4C56-8FB9-67CB050EB15D}"
Const PRODCODE2 ="{6257E290-5E8E-11D4-9B8D-00D0B72459DD}"
Const PACKAGE = "Setup.exe"

Uninstall
Install

Set oShell = Nothing
WScript.Quit

'************** *************** *************** *************** *************** ***************
'Check for existance of Rits Client and if present uninstall it.
'************** *************** *************** *************** *************** ***************
Sub Uninstall()
On Error Resume Next
Err.Clear

sUninstallStrin g = oShell.RegRead (UNINSTALLPATH & PRODCODE & "\UninstallStri ng")
If err.number = 0 Then
oShell.Run "C:\Program Files\Common Files\InstallSh ield\Driver\8\I ntel 32\IDriver.exe" & """/M{8D3D93DA-B0C4-4C56-8FB9-67CB050EB15D}"" ", 0,True
End If
sUninstallStrin g = ""

sUninstallStrin g = oShell.RegRead (UNINSTALLPATH & PRODCODE2 & "\UninstallStri ng")
If err.number = 0 Then
oShell.Run "RunDll32 C:\PROGRA~1\COM MON~1\INSTAL~1\ engine\6\INTEL3 ~1\Ctor.dll,Lau nchSetup " & """C:\Progr am Files\InstallSh ield Installation Information\{62 57E290-5E8E-11D4-9B8D-00D0B72459DD}\S etup.exe""" & " UNINST /S /f1""C:\Packages \RitsClient\uni nst.iss""", 0,True
End If

End Sub
Sep 5 '06 #1
0 2121

Sign in to post your reply or Sign up for a free account.

Similar topics

8
3244
by: Alia Khouri | last post by:
If the cannonical way to install a python app is python setup.py install one would expect the following to uninstall it python setup.py uninstall However, distutils doesn't automatically take care of that for you.
1
1466
by: Ray | last post by:
I bought/installed the upgrade to Visual Studio .Net Professional 2003 (from 2002). I was surprised that it did not appear to uninstall (or overlay) my old version (2002) of Visual Studio .Net Professional. There are two sets of Framework and Visual Studio on both the "conrol panel/program add-remove" and two sets of menu's off the "start/programs". I'd just uninstall the old (as the new has "2003" off of everything) ... but it just...
4
1150
by: JPL | last post by:
Hi, I wish to uninstall the VB.NET 2003 Resource Kit, but this fails because a file is not found. I cannot reinstall - that fails because the kit is already installed. There must be a way out of this loop, but how...? JPL
0
1496
by: Gabriel Lozano-Morán | last post by:
We have developed an application that will replace the older version. The older versions comes in two flavors, a Lite and a Pro version. I can successfully remove the previous version of either the Lite or the Pro version by sync'ing the "Product Code" and increasing the version number of the new setup, but I really need to remove both versions upon a successful installation. So I have added two custom actions under "Commit" and I have...
1
1253
by: Eric | last post by:
We are about to deploy a new version of our application re-written in .Net. Our .Net app is using the installer included with VS.Net 2003. The previous version of the application was deployed using InstallShield. Is it possible, using a Custom Action, to call the previous apps uninstall routine? If not, help on how to uninstall the previous version while still using the .Net installer would be appreciated.
5
2173
by: seberino | last post by:
It appears that apps distributed as Python Eggs are either a single compressed blob in site-packages directory or a directory under site-packages directory. Is this ALWAYS true? So by just erasing stuff under site-packages I can do a COMPLETE uninstallation of an Egg? Chris
1
2553
by: mistral | last post by:
How to uninstall windows script encoder (screnc.exe)? There are no entries in Add/Remove programs in Control Panel. However, its a single exe, but installer create program name in windows "Start" menu > programs, as well as write application name in Registry. How to uninstall script encoder safely and correctly, include windows "Start" menu entries? Thanks,
6
1266
by: geekseeker | last post by:
I am not a developer, but I mistakenly installed vers 1 and 2 of ASP.NET on my home desktop (XP Home SP2). Months later I started to uninstall it and found a warning that doing so might affect other programs. I have never use ASP.NET and suspect that it would be OK to remove it, but would like some reassurance that doing so would not affect any installed programs? Are there any precautions I should take in uninstalling the two version...
2
2042
by: Jerry | last post by:
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
0
8842
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...
1
8513
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
7352
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
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
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
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...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
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.