Avatar of snehal jadhav
snehal jadhav
 asked on

how to write batch script and VBscript for Install and uninstall an MSI. if /x then uninstall. If /silent then silent install

suppose eg arg.bat or arg.vbs run on cmd output is installed
   and we can pass the argument
     >arg.bat  /x
      olp : will be uninstallled the msi.
    >arg.bat /silent
    o/p:will  be installed the msi.

 >arg.vbs  /x
      olp : will be uninstallled the msi.
    >arg.vbs  /silent
    o/p:will  be installed the msi.
Windows BatchVB Script

Avatar of undefined
Last Comment
NVIT

8/22/2022 - Mon
alohadin

Why not use Powershell?
SOLUTION
Tahir Qureshi

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
NVIT

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
NVIT

Question answered
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck