codejunkie Posted October 9, 2004 Share Posted October 9, 2004 When you run a VBScript it just continues with the installation of the next app, it’s doesn’t wait until the VBScript has finished is there anyway of compiling them in to executable files or not? Just anything that would hold the installation until its finished its taskAny Ideas?REG ADD %KEY%\022 /VE /D "Personal Settings Scripts"REG ADD %KEY%\022 /V 1 /D "%CDROM%\i386\update\UserSettings.vbs" /fREG ADD %KEY%\022 /v 2 /D "SHUTDOWN -r -t 5" /f' VBScript source code' Apply Windows settings easilySet WshShell = WScript.CreateObject ("WScript.Shell")wshShell.Run ("tweakui.exe")wScript.sleep 350wshshell.sendkeys "{DOWN}"wshshell.sendkeys "{TAB}"For i = 1 To 10 WshShell.SendKeys "{DOWN} "Nextwshshell.sendkeys "~"wScript.sleep 350Set WshShell = Nothing'---------------------------------------------------------------------------------------' VBScript source code' Apply MSN Messanger settings easily' Script v1.05Set WshShell = WScript.CreateObject ("WScript.Shell")wshShell.Run ("msnmsgr.exe")wScript.sleep 1000wshshell.sendkeys "%(TO)"wshshell.sendkeys "+{TAB}"For i = 1 To 4 WshShell.SendKeys "{RIGHT}"Nextwshshell.sendkeys "%(O)"wshshell.sendkeys "%{u}"wshshell.sendkeys "%{n}"For i = 1 To 7 WshShell.SendKeys "+{TAB}"Nextwshshell.sendkeys "~%{F4}"wScript.sleep 300Set WshShell = Nothing'---------------------------------------------------------------------------------------'Undo Windows Update Restriction - xp_winupd_netpolicy.vbs'© Doug Knox - modified 10/18/2003'Downloaded from www.dougknox.comOn Error Resume NextSet WshShell = WScript.CreateObject("WScript.Shell")p1 = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\WindowsUpdate\DisableWindowsUpdateAccess"p2 = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoWindowsUpdate"WshShell.RegWrite p1, 0, "REG_DWORD"WshShell.RegWrite p2, 0, "REG_DWORD"Set WshShell = NothingI'd prefer it if it didn’t matter what was the active windows at the time and just sent the commands to a specified app Link to comment Share on other sites More sharing options...
MHz Posted October 9, 2004 Share Posted October 9, 2004 REG ADD %KEY%\005 /VE /D "Add TweakUI to Control Panel" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\AddTweakUItoControlPanel.vbs" /fThis is one that i have used and works fine.You will need to increase your shutdown time. Advise to 60 seconds. You will need to logon to get your theme.Q. Why is the script in I386 folder, unless it maybe a network install?Q. Will that script wait for you to run them programs? Link to comment Share on other sites More sharing options...
codejunkie Posted October 9, 2004 Author Share Posted October 9, 2004 I use this to my advantage when it comes to installing Windows Media Player 10 as I have the System Restore disabled and it complains about that so I use this VBScript just before I launch the installationSet WshShell = WScript.CreateObject ("WScript.Shell")WScript.Sleep 1000WshShell.SendKeys " "WScript.Quit Link to comment Share on other sites More sharing options...
mazin Posted October 9, 2004 Share Posted October 9, 2004 I think you should provide the path like this:wshShell.Run (".....path.....here.....\tweakui.exe") Link to comment Share on other sites More sharing options...
codejunkie Posted October 9, 2004 Author Share Posted October 9, 2004 go to Start..Run then type tweakuiand tell me what happenstheres no need to tell it the locationbut seeing it load for the first time on this PC I think I better make the delay greater before the settings are applied, anyway I am looking into using AutoIt 3 instead Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now