Ik heb een vbsscript gemaakt waarmee ik een bepaald programma bij alle clients in het netwerk kan deinstalleren. Dit werkt redelijk goed. hieronder het script.
Dim theShell
Dim CmdLine
Set theShell = WScript.CreateObject("WScript.Shell")
CmdLine = "C:\WINDOWS\IsUninst.exe -a -y -f"&Chr(34)&"C:\Program Files\programma map\Uninst.isu"&Chr(34) & "-c"&Chr(34) &"C:\PROGRAM FILES\programma map\uninst.dll"""
theShell.Run Cmdline
Set theShell = Nothing
WScript.Quit(0)
Maar op sommige clients is de uninstaller c:\windows\IsUn0413.exe. Hier moet ik dus iets van een check inbouwen of het IsUn0413.exe of IsUninst.exe is. Maar dit krijg ik dus niet voor elkaar.
Dim theShell
Dim CmdLine
Set theShell = WScript.CreateObject("WScript.Shell")
CmdLine = "C:\WINDOWS\IsUninst.exe -a -y -f"&Chr(34)&"C:\Program Files\programma map\Uninst.isu"&Chr(34) & "-c"&Chr(34) &"C:\PROGRAM FILES\programma map\uninst.dll"""
theShell.Run Cmdline
Set theShell = Nothing
WScript.Quit(0)
Maar op sommige clients is de uninstaller c:\windows\IsUn0413.exe. Hier moet ik dus iets van een check inbouwen of het IsUn0413.exe of IsUninst.exe is. Maar dit krijg ik dus niet voor elkaar.