Link to home
Start Free TrialLog in
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.
Avatar of alohadin
alohadin

Why not use Powershell?
SOLUTION
Avatar of Tahir Qureshi
Tahir Qureshi
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Question answered