Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

vb script - Run uninstall from 32 bit or 64 bit

$
0
0

Hey gang - I have an issue that maybe someone can help with.  I know very little about scripting.  I have this script running on XP and Win 7 machines using 2 separate scripts with different paths (PROGRA~2 and PROGRA~1) and I would like to combine them.  The scripts run the silent uninstalls /S switch for hotpot.  Thoughts? Please bear in mind I'm a total newb.

'Objects
Set fso = CreateObject("Scripting.FileSystemObject")
Set shl = CreateObject("WScript.Shell")

path="c:\PROGRA~2\Hotspo~1\"   
exists = fso.FolderExists(path)

if (exists) then
    program="uninstall.exe /S"
    shl.Run(path & program)
end if

Thanks


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>