Novice packager batch or vbs?
Hi All,
I'm not sure where to go from here, been tasked to script removal of all Juniper components
In testing I’ve installed the 3 in the following order which is used at build time;
1). JuniperSetupServiceInstaller.msi
2). NCInst.exe
3). WSAMInstNt.exe
In addition, on first connection to the service (https://***.*******.co.uk) the following component is also installed;
Juniper Networks Setup Client
Having installed all 3 components and connected to the service, a client will have the following visible within Programs & Features/Add & Remove Programs;
Juniper Installer Service
Juniper Networks Network Connect 6.5.0Juniper Networks Secure Application Manager
Juniper Networks Setup Client
Juniper Networks Setup Client Activex Control
The request is to create a batch file/script for the clean removal of all the Juniper components. Clients are Windows 7 Professional 32bit and 64bit, and Windows XP SP3.
Any help would be appreciated.
Thanks
I'm not sure where to go from here, been tasked to script removal of all Juniper components
In testing I’ve installed the 3 in the following order which is used at build time;
1). JuniperSetupServiceInstaller.msi
2). NCInst.exe
3). WSAMInstNt.exe
In addition, on first connection to the service (https://***.*******.co.uk) the following component is also installed;
Juniper Networks Setup Client
Having installed all 3 components and connected to the service, a client will have the following visible within Programs & Features/Add & Remove Programs;
Juniper Installer Service
Juniper Networks Network Connect 6.5.0Juniper Networks Secure Application Manager
Juniper Networks Setup Client
Juniper Networks Setup Client Activex Control
The request is to create a batch file/script for the clean removal of all the Juniper components. Clients are Windows 7 Professional 32bit and 64bit, and Windows XP SP3.
Any help would be appreciated.
Thanks
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
pjgeutjens
12 years ago
What I would do is run through all the registry keys in the following location:
HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall
List all subkeys, then look for the DisplayName value in each, check if it contains the substring "Juniper", and if it does, put the UninstallString value for that key in an array.
Then, run each of these UninstallString commands in turn, if you'd like with extra parameters (like /qn or /qb-), checking exit codes for each one..
Unfortunately I don't have time to write up the whole script, but I'm sure you'll find plenty of examples online for each step with a targeted search, or maybe even a willing volunteer here on the forums...
EDIT: and btw, for this I'd go for a vbs every time... but whatever you prefer.
Kr,
PJ
HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall
List all subkeys, then look for the DisplayName value in each, check if it contains the substring "Juniper", and if it does, put the UninstallString value for that key in an array.
Then, run each of these UninstallString commands in turn, if you'd like with extra parameters (like /qn or /qb-), checking exit codes for each one..
Unfortunately I don't have time to write up the whole script, but I'm sure you'll find plenty of examples online for each step with a targeted search, or maybe even a willing volunteer here on the forums...
EDIT: and btw, for this I'd go for a vbs every time... but whatever you prefer.
Kr,
PJ
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.