Simpatie.ro - matrimoniale
Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Nou pe simpatie:
simpatica_dorina din Arad
Femeie
25 ani
Arad
cauta Barbat
32 - 44 ani
Mrrrr's Forum (VIEW ONLY)ReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides /

[VBS] Uninstall a Program

Pagini: 1 Moderat de TRaP, TonyTzu
#1
Mrrrr
AdMiN
Postari: 2392
The following code will uninstall a program you wish via VBS.

Make sure your replace the aqua part with the path to your uninstall executable, and the lime part with the name of your uninstall executable.


Dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run("""PATH TO UNINSTALL FILE\unins001.exe""")
WScript.Sleep 1000
ObjShell.AppActivate("Uninstall")
ObjShell.SendKeys "%y"
ObjShell.SendKeys "y"


The code above was adapted by me as an answer to the following stackoverflow post:
https://stackoverflow.com/questions/766 ... ng-program

Also of interest:
https://stackoverflow.com/questions/317 ... ive-window


_______________________________________


 
   

Topicuri similare

Pagini: 1  
Mergi la