b0r3d Posted September 29, 2003 Posted September 29, 2003 Install switches just dont do what you want them to? Well, this thread will hopefully provide answers to thoes programs that dont have the silent install switches you're looking for.Please contribute any VBS scripts you've found that work Quite a few can be found here
SOOPAFLY Posted September 29, 2003 Posted September 29, 2003 here's a script for NOD32 Antivirus, change the sleep value according to your machine speed(you know the deal paste in notepad and save with the vbs extension)set WshShell = WScript.CreateObject("WScript.Shell")Wscript.Sleep 9000WshShell.SendKeys "{DOWN}"Wscript.Sleep 100WshShell.SendKeys "{DOWN}"Wscript.Sleep 100WshShell.SendKeys "{ENTER}"Wscript.Sleep 2000WshShell.SendKeys "{LEFT}"Wscript.Sleep 100WshShell.SendKeys "{ENTER}"Wscript.Sleep 1000WshShell.SendKeys "{ENTER}"Wscript.Sleep 1000WshShell.SendKeys " "Wscript.Sleep 100WshShell.SendKeys "{ENTER}"Wscript.Sleep 1000WshShell.SendKeys "{DOWN}"Wscript.Sleep 100WshShell.SendKeys " "Wscript.Sleep 100WshShell.SendKeys "{ENTER}"Wscript.Sleep 1000WshShell.SendKeys "{ENTER}"Wscript.Sleep 1000WshShell.SendKeys "{UP}"Wscript.Sleep 100WshShell.SendKeys "{TAB}"Wscript.Sleep 100WshShell.SendKeys "{TAB}"Wscript.Sleep 100WshShell.SendKeys "{TAB}"Wscript.Sleep 100WshShell.SendKeys " "Wscript.Sleep 100WshShell.SendKeys "{ENTER}"Wscript.Sleep 1000WshShell.SendKeys " "Wscript.Sleep 100WshShell.SendKeys "{ENTER}"Wscript.Sleep 1000WshShell.SendKeys "{ENTER}"Wscript.Sleep 1000WshShell.SendKeys "{TAB}"Wscript.Sleep 100WshShell.SendKeys "{TAB}"Wscript.Sleep 100WshShell.SendKeys "{TAB}"Wscript.Sleep 100WshShell.SendKeys "{TAB}"Wscript.Sleep 100WshShell.SendKeys "{ENTER}"Wscript.Sleep 1000WshShell.SendKeys "{ENTER}"Wscript.Sleep 9000WshShell.SendKeys "{RIGHT}"Wscript.Sleep 100WshShell.SendKeys "{ENTER}"Wscript.Sleep 2000WScript.Quithere's a script for regcleaner (again change the sleep values accordind to your machine speed).Set WshShell = WScript.CreateObject("WScript.Shell")WScript.Sleep 1500WshShell.SendKeys "{Tab}"WshShell.SendKeys "{Tab}"WshShell.SendKeys "{Tab}"WshShell.SendKeys "{Tab}"WshShell.SendKeys "{ENTER}"WshShell.SendKeys "{ENTER}"WScript.Sleep 1000WScript.Quithere's a script for winrar 3.2 (context menu without icons and will include only extraxt to,extract here,extract(filename) all file associations are being chosed)Set WshShell = WScript.CreateObject("WScript.Shell")WScript.Sleep 3500WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 500WshShell.SendKeys " "WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys " "WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys " "WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys " "WScript.Sleep 500WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys " "WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys " "WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys " "WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys " "WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys " "WScript.Sleep 500WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys " "WScript.Sleep 100WshShell.SendKeys "{TAB}"WScript.Sleep 100WshShell.SendKeys "{ENTER}"WScript.Sleep 600WshShell.SendKeys "{ENTER}"WScript.Sleep 3500WshShell.SendKeys "%{F4}"WScript.Quit
beep Posted September 30, 2003 Posted September 30, 2003 Hi all,Im reading a lot of post here, realy nice, thanks m8s.If you don't already know the Script.Shell has a property/method calld AppActiveWith its method you can bring a particularly window to focus.Using it as a propery you can check if there is a window with that name if so it will get focus.this will speed up vb script installation helper and you dont have to fine tune the sleep between you actions, you can use a function similar to thisOption Explicit'to wait for the window "Setup Finish" to appare and press Alt n'!NOTE! if there are more then one window with the same name it will not work, it will need more work!dim WshShell, iLoopTimeWaitSet WshShell = WScript.CreateObject("WScript.Shell")iLoopTimeWait = 500 Call Main()Set WshShell = NothingSub Main() Connect2Window iLoopTimeWait, "Setup Finish" WshShell.SendKeys "%n"End SubFunction Connect2Window(iTime, sWindowName) Do until WshShell.AppActivate (sWindowName) WScript.Sleep iTime loopEnd functioncheers::beep
devil270975 Posted September 30, 2003 Posted September 30, 2003 if people are going to use scripts to automate sendkeys then there is no need for reg tweaks and all the settings that ppl just cant do with the registry simply run file and settings wizard and save all your settings and stuff and then use a vbscript to replace all your settings, that way no need to fiddle with the registry
b0r3d Posted September 30, 2003 Author Posted September 30, 2003 Sendkeys is so you can automate a program that doesnt have a silent switch, or presents a screen that requires the user to interact on installation. Take winamp for example. At the end of the winamp installation, you're presented with a screen that the user has to press OK on. If a user has to do anything than this defeats the purpose of an unattended installation.With these vbscripts, they use the sendkeys command to make the software think that someone pressed the OK button. So problem solved. Tricky software that requires user intervention, now doesnt.
devil270975 Posted September 30, 2003 Posted September 30, 2003 i have managed to save the settings from one machine to another using file and setting transfer wizard and a vbscriptvbs is easier than taking a p**s after 10 pints of lager...lol...
pmcx9 Posted October 1, 2003 Posted October 1, 2003 @devilNow that is a handy way of doing things.Care to share that vbs script?
Westi Posted October 5, 2003 Posted October 5, 2003 Here is a example of an installation script fully in vb:-Edit sysoc.inf-Copy, move, delete, create files & folders-Close programs-Shutdown WinXP without an external program-Wait for a window to appear, but not endlessOn Error Resume Next'Declare var's and objectsDim WshS, fso, wi, sysr, sysd, home, aup, cpf, pf, up, upr, app, tool, Stpr, sys32, dllc, f1, t0, t1 ,t2, t5, t7, t10, t15, t30, Btn, i, wmi, os, objsetSet WshS = WScript.CreateObject("WScript.Shell")Set fso = CreateObject("Scripting.FileSystemObject")'Expand Environment'Create const's to spare time and placesysr = WshS.ExpandEnvironmentStrings("%SystemRoot%")sysd = WshS.ExpandEnvironmentStrings("%Systemdrive%")home = WshS.ExpandEnvironmentStrings("%Homepath%")aup = WshS.ExpandEnvironmentStrings("%AllUsersProfile%")cpf = WshS.ExpandEnvironmentStrings("%CommonProgramfiles%")pf = WshS.ExpandEnvironmentStrings("%Programfiles%")up = WshS.ExpandEnvironmentStrings("%UserProfile%")'WARNING: I use a "\" at the end.'The above const's DON'T have a "\" at the end !app = sysd & "\APPLICATIONS\"sys32 = sysr & "\System32\"dllc = sys32 & "\dllcache\"Stpr = aup & "\Startmenu\Programs\"'Upr-->%UserProfile%\Startmenu\Programs\Upr = up & "\Startmenu\Programs\"'Create a log-fileSet f1 = fso.CreateTextFile(sysd & "\install.log", True)'Write a line to the logf1.WriteLine "Begin Installation"'I don't explain it;-)f1.WriteBlankLines(1)'Create const's for use in the scriptwi = " is installed"'Time const's for sleept0 = 500t1 = 1000t2 = 2000t5 = 5000t7 = 7000t10 = 10000t15 = 15000t30 = 30000'Make some optional components visible for (de)installationWshS.Run "notepad.exe %systemroot%\inf\sysoc.inf"WinDo = "sysoc.inf - Editor"Call SendK("%{e}")'I think in english is r-->replaceWshS.SendKeys "r"Wscript.Sleep t1WshS.SendKeys ",hide,"WshS.SendKeys "{TAB}"WshS.SendKeys ",,"WshS.SendKeys "{TAB 4}"WshS.SendKeys "~"WshS.SendKeys "{TAB}"WshS.SendKeys "~"Wscript.Sleep t1WshS.SendKeys "%{F4}"WinDo = "Editor"Call SendK("~")'Show me a box for 2 sec.WshS.Popup "Create TEMP-Folder",2'Create Temp-folder'I set all Temp-folders in the registry to %systemdrive%/Temp,'cause i hate three or more temp-folders in the 2nd subdirfso.CreateFolder(sysd & "\Temp")f1.WriteLine "TEMP-Folder" & wi'Packets to extractWshS.Run app & "DirectX9b.exe", 0, true'true --> same as /wait in batch'0 --> hide window'Delete what you (don't) wantfso.DeleteFile(dllc & "scrnsave.scr"), true'true means--> DO IT!'Move and copy what you wantfso.MoveFile dllc & "uxtheme.dll", dllc & "uxtheme.old"fso.MoveFile sys32 & "uxtheme.dll", sys32 & "uxtheme.old"fso.CopyFile app & "uxtheme.dll", dllcfso.CopyFile app & "uxtheme.dll", sys32'Install what you wantWshS.Run "REGEDIT /S " app & "reg.reg", 0, falsefso.CopyFile app & "directx.cpl", sys32 & "\"f1.WriteBlankLines(1)f1.WriteLine "Programs and files registered and copied "WshS.Popup "Install programs",2, StrT,64'For exampleWshS.Run app & "Java141\setup.exe -s -f1" & Chr(34) & app & "Java141\setup.iss" & Chr(34), 0, truef1.WriteLine "SUN-Java" & wiWshS.Run app & "MsnMsgs.msi /QB", 0, trueWshS.Run app & "MsgPlus.exe /SilentInstallNoSponsor", 0, truef1.WriteLine "Messenger 6 und Plus" & wi'Thank you beep;-)WinDo = "Internet Explorer"Call SendK("%{F4}")WinDo = "MSN Messenger"Call SendK("%{F4}")'Install your programs here or anywhere'Install DX9bWshS.Run app & "DirectX9b\dxsetup.exe /windowsupdate", 0, true'You can simple check for execution, but this is a lot of workIf fso.FileExists(sysr & "\directx.log") Then f1.WriteLine "DirectX9b" & wiElse f1.WriteLine " DirectX9b NOT installed "End Iff1.WriteBlankLines(1)WshS.Run app & "xp-AntiSpy.exe 0 1 2 3 4 5 6 7 8 9 10 11 12 14 16 19 20 21 22 24 25 26 27 29 30 31 32"fso.DeleteFolder(Stpr & "PrintM~1"), truefso.DeleteFile(upr & "Remote~1.lnk"), true'Delete PrintMe- thingfso.DeleteFolder(pf & "\Adobe\Acrobat 6.0\Reader\plug_ins\Printme"), truefso.DeleteFile(pf & "\Adobe\Acrobat 6.0\Reader\plug_ins\Printme.*"), truef1.WriteLine "Stupid things deleted "fso.DeleteFolder(sysd & "\Applications"), truefso.DeleteFile(sysr & "\deluser.exe"), true'Close the logf1.Close'empty Tempfolderfso.DeleteFile(sysd & "\Temp\*.*"), true'delete tmp-files in windirfso.DeleteFile(sysr & "*.tmp"), true'Shutdown in 10 sec. If you press 'Yes', immediatly.Btn = WshS.Popup ("System-Shutdown in 10 sec. !",10," - Shutdown - ",36)If Btn = 7 Then Wscript.QuitSet wmi = GetObject("winmgmts:{(Shutdown)}")Set objset = wmi.instancesof("win32_operatingsystem")For each obj in objsetSet os = obj : exit ForNextfso.DeleteFile(sysd & "\install.vbs"), true'Delete this scriptos.shutdownWscript.QuitSub SendK(Skey) Connect2Window t0, WinDo WshS.SendKeys SkeyEnd SubFunction Connect2Window(iTime, sWindowName)i = 1 Do until WshS.AppActivate (sWindowName)i = i + 1 WScript.Sleep iTime'wait max. 40 x t0 ~ 20 sec.If i = 40 Then Exit Function loopEnd FunctionMaybe someone can use few lines..
gosh Posted October 8, 2003 Posted October 8, 2003 msconfigdisabled.vbsI like this because it's a vbs version of msconfig. It's good for newbies, and it's good if a virus deleted/disabled your msconfig.Set oReg = GetObject("winmgmts:!root/default:StdRegProv")Const HKLM = &H80000002RegKeySUF = "SOFTWARE\Microsoft\Shared Tools\MSConfig\startupfolder"RegKeySUR = "SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg"ResultsSUF = EnumKey(HKLM, RegKeySUF, False)If ResultsSUF = "" Then ResultsSUF = space(5) & "(none)" iBtns = 0Else iBtns = 4 sDelPrompt = "Would you like to selectively delete any of these items?"End IfsResults = "Disabled items in startupfolder key:" & vbcrlf & _ ResultsSUF & vbcrlf & vbcrlfResultsSUR = EnumKey(HKLM, RegKeySUR, False)If ResultsSUR = "" Then ResultsSUR = space(5) & "(none)" If iBtns <> 4 Then iBtns = 0Else iBtns = 4 sDelPrompt = "Would you like to selectively delete any of these items?"End IfsResults = sResults & "Disabled items in startupreg key:" & vbcrlf & _ ResultsSUR & vbcrlf & vbcrlfIf MsgBox(sResults & sDelPrompt, iBtns + 256) <> 6 Then WScript.quitEnumKey HKLM, RegKeySUF, TrueEnumKey HKLM, RegKeySUR, TrueFunction EnumKey(Key, SubKey, bDelete) Dim Ret() oReg.EnumKey Key, SubKey, sKeys On Error Resume Next ReDim Ret(UBound(sKeys)) If Err = 13 Then Exit Function On Error GoTo 0 For Count = 0 to UBound(sKeys) If Not bDelete Then 'this branch used on first call Ret(Count) = space(5) & sKeys(Count) Else 'this branch used on deletion iteration If MsgBox("Do you want to delete " & sKeys(Count) & "?" & vbcrlf & _ vbcrlf & "This operation cannot be undone!", 4 + 256) = 6 Then DeleteKey HKLM, SubKey & "\" & sKeys(Count) End If End If Next EnumKey = Join(Ret, vbcrlf)End FunctionFunction DeleteKey(Key, SubKey) DeleteKey = oReg.DeleteKey(Key, SubKey)End FunctionSet ws = WScript.CreateObject("WScript.Shell") VisitKelly's KornerSub VisitKelly's Korner If MsgBox("This script came from the Tweaks Section of Kelly's Korner" & vbCRLF & vbCRLF & "Would you like to visit Kelly's Web Site now?", vbQuestion + vbYesNo + vbDefaultButton, "Visit Kelly's Korner") =6 Then ws.Run "http://www.kellys-korner-xp.com/xp_tweaks.htm" End IfEnd Sub
gosh Posted October 8, 2003 Posted October 8, 2003 I am currently using this in my new cd. This script is very simple but does something very important, it tells you what OS type the person is using. This is really cool because it let's you write one batch file and use it for multiple os's such as xp pro, win2k pro, and win2k server, etc. This batch file works on win2k/xp/server2k3os.vbsWScript.Echo SystemRoleFunction SystemRole Dim wmi, wql, Systems, System Set wmi = getobject("winmgmts:") wql = "select DomainRole from Win32_ComputerSystem" Set Systems = wmi.execquery(wql) For Each System In Systems Select Case System.DomainRole Case 0 SystemRole = "Workstation" Case 1 SystemRole = "Workstation" Case 2 SystemRole = "Server" Case 3 SystemRole = "Server" Case 4 SystemRole = "Server" Case 5 SystemRole = "Server" Case Else SystemRole = "Unknown" End Select Exit For NextEnd Function
studguy1 Posted October 14, 2003 Posted October 14, 2003 DivX Pro 5.1 Install with removal of the adware, you will need pskill.exe (http://www.MSFN.org/unattended/files/pskill.zip) in your system directory for this to workmodify 'app' to the location of the filesCreate the two files divx.vbs abd gator.reg and place in install directory***************** divx.vbs************************'DivX 5.1 Pro Adware'Script Created by Puru Oct 13, 2003Dim WshShell, fso, temp, sysd, app, t0, reg, i, WinDoSet WshShell = WScript.CreateObject("WScript.Shell")Set fso = CreateObject("Scripting.FileSystemObject")temp = WshShell.ExpandEnvironmentStrings("%TEMP%")sysd = WshShell.ExpandEnvironmentStrings("%Systemdrive%")app = sysd & "\install\Applications\DivXPro\"reg = app & "gator.reg"t0 = 500 On Error Resume NextWshShell.Popup "Do NOT MOVE the mouse an do NOT PRESS any button!",5," - Warning - ",48WshShell.Run (app & "DivXPro51GAINBundle.exe")'Increase this value if you have a slower harddiskWScript.Sleep 5000'DivX Pro(tm) Codec Adware SetupWshShell.SendKeys "n"WScript.Sleep 200'WelcomeWshShell.SendKeys "n"WScript.Sleep 200'Choose Destination LocationWshShell.SendKeys "n"WScript.Sleep 200'Select ComponentsWshShell.SendKeys "{TAB}"WshShell.SendKeys "{TAB}"WshShell.SendKeys "{TAB}"WshShell.SendKeys "{DOWN}"WshShell.SendKeys "{DOWN}"WshShell.SendKeys " "WshShell.SendKeys "{DOWN}"WshShell.SendKeys " "WshShell.SendKeys "{TAB}"WshShell.SendKeys "n"WScript.Sleep 200'Ready to InstallWshShell.SendKeys "n"WScript.Sleep 200'Gain InstallationWshShell.SendKeys "n"WScript.Sleep 200'DiVX License AgreementWshShell.SendKeys "{ENTER}"WScript.Sleep 200'The Gator Corporation Privacy StatementWshShell.SendKeys "{TAB}"WshShell.SendKeys "{ENTER}"WScript.Sleep 200'The Gator Corporation License AgreementWshShell.SendKeys "{TAB}"WshShell.SendKeys "{ENTER}"'Wait for Installation to FinishWinDo="Finished"Call SendK("{Enter}")WSCRipt.Sleep t0'Close WindowWinDo = "DivX Pro Codec Adware"Call SendK("%{F4}")'Kill the gain processWshShell.Run ("PSKill gain_3202")WScript.Sleep 200'Delete the executablesfso.DeleteFile(temp & "\~vis0000\gain_3202.exe"), truefso.DeleteFolder(temp & "\~vis0000"), trueWScript.Sleep 200'Remove Adware Registry KeysWshShell.Run "REGEDIT /S " & reg, 0, falseSub SendK(Skey) Connect2Window t0, WinDo WshShell.SendKeys SkeyEnd SubFunction Connect2Window(iTime, sWindowName)i = 1 Do until WshShell.AppActivate (sWindowName)i = i + 1 WScript.Sleep iTime'wait max. 40 x t0 ~ 20 sec.If i = 40 Then Exit Function loopEnd FunctionWscript.Quit****************** Gator.reg***********************Windows Registry Editor Version 5.00[-HKEY_LOCAL_MACHINE\SOFTWARE\Gator.com][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]"Trickler"=-Thanks to all the guys who posted scripts earlierMy 0.02
KonuS Posted October 15, 2003 Posted October 15, 2003 Total copy 1.1Set WshShell = WScript.CreateObject("WScript.Shell")'uruchomienie instalacjiWshShell.Run app & "tc11.exe"WScript.Sleep 500WshShell.SendKeys "{ENTER}"WScript.Sleep 500WshShell.SendKeys "{ENTER}"WScript.Sleep 500WshShell.SendKeys "%e"WScript.Sleep 500WScript.QuitAvant Browserwith making only shortcut on quicklaunch, if you want standard instalation del WshShell.SendKeys "{TAB}"WshShell.SendKeys "{TAB}"WshShell.SendKeys "{ }"Set WshShell = WScript.CreateObject("WScript.Shell")'uruchomienie instalacjiWshShell.Run app & "absetup.exe"WScript.Sleep 2500WshShell.SendKeys "N"WScript.Sleep 500WshShell.SendKeys "%A"WScript.Sleep 500WshShell.SendKeys "N"WScript.Sleep 500'odznaczanie menu w starcieWshShell.SendKeys "{TAB}"WshShell.SendKeys "{TAB}"WshShell.SendKeys "{ }"WshShell.SendKeys "N"WScript.Sleep 500'odznaczenie skrotowWshShell.SendKeys "{TAB}"WshShell.SendKeys "{TAB}"WshShell.SendKeys "{ }"WshShell.SendKeys "I"'start kopiowaniaWScript.Sleep 5000WshShell.SendKeys "{TAB}"WshShell.SendKeys "{ }"WshShell.SendKeys "F"WScript.Sleep 500WScript.QuitAiRoboFormthis is standard instalation with adding my setting to registry,deleting folder c:\my... because i have in my own location my files, and killing processys.Set WshShell = WScript.CreateObject("WScript.Shell")Set fso = CreateObject("Scripting.FileSystemObject")'uruchomienie instalacjiWshShell.Run app & "airoboform.exe"WScript.Sleep 2500WshShell.SendKeys "%A"WScript.Sleep 500WshShell.SendKeys "N"WScript.Sleep 500WshShell.SendKeys "M"WScript.Sleep 500WshShell.SendKeys "I"WScript.Sleep 5000WshShell.Run app & "pskill.exe RoboTaskBarIcon.exe", 1, trueWScript.Sleep 500WshShell.Run app & "pskill.exe iexplorer.exe", 1, trueWScript.Sleep 500WshShell.Run app & "REGEDIT /S airoboHCU.reg", 1, trueWScript.Sleep 500fso.DeleteFolder(Stpr & "c:\MyRobo~1"), trueWScript.Quit
beep Posted October 15, 2003 Posted October 15, 2003 you will need pskill.exe (http://www.MSFN.org/unattended/files/pskill.zip) in your system directory for this to workI think that there is an equivalent util name taskkill in XP.cheers::beep
Westi Posted October 15, 2003 Posted October 15, 2003 Some hints:Write a key:WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce\Imp", "C:\imp.htm", "REG_SZ"Delete a key:WshShell.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Run\MsnMsgr"Check for Cdrom:Very useful for a 2 CD installationThis function checks for : Drive ready, CDROM and Volumename.Change the VolumeName to your value....Call ChCD(D:\)WshShell.Popup "CD is " & s...Wscript.QuitFunction ChCD(DriveN) Set d = fso.GetDrive(DriveN) If d.IsReady And d.DriveType = 4 And d.VolumeName = "XPBOOT" Then s = DriveNEnd FunctionCombine Sendkey and sleep:Wait 0.5 sec. and press enter.SendST(500,"~")...Wscript.QuitSub SendST(pause, key)WScript.Sleep pauseWshShell.SendKeys keyEnd SubDon't declare any variables of the codes with Dim, but 's' !!
DarkBringer Posted October 19, 2003 Posted October 19, 2003 I may be out of line but, could I ask one of you knowledgable folks to do a .vbs script for an unattended install of Webshots Desktop and Webroot's Spysweeper?I have tried the /s, /silent, /VERYSILENT, /R , /QB..................You name it, I've tried it.I even tried .vbs scripts myself but failed miserably. (Probably due to the fact that I don't know what I'm doing. I just changed a couple of settings on Westi's Adaware 6 script to see if it would work)Help?
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now