Swimming_Bird Posted September 17, 2005 Posted September 17, 2005 (edited) I'm trying to make my own autorun file, and i was wondering how you call the wpi.htm file so it doesnt give you the error: A script on this page is causing IE to run slowly, wanna abort the script.How can i call it so i dont get this error?I have an autoit script calling a batch file with this:REM Hide this command window.cmdow.exe @ /hidREM Start WPI and wait for its endstart /wait %windir%\system32\mshta.exe "%CD%\wpi.hta"REM Rebooting the sytem to finalize the installation process.--shutdown.exe -r -f -t 30 -c "To finish installations WPI will now reboot in 30 sec..."exitand when i manually call this batch file it works fine, but when i have autoit call it it gives me that error. Edited September 17, 2005 by Swimming_Bird
glent Posted September 17, 2005 Posted September 17, 2005 you need to call the reg file from the wpi\common folder
Dynaletik Posted September 17, 2005 Posted September 17, 2005 Why don't you call up the WPI.cmd per autorun.inf?I do it, it is the best method I would say, because the WPI.cmd calls the applies the reg file, the resolution and then calls WPI.htm.
Swimming_Bird Posted September 17, 2005 Author Posted September 17, 2005 (edited) firstly, the more drives there are the longer that batch file takes (its VERY inefficeant), and i believe i have my autoit script writing those nessisary reg keys:;~ Run ( $wpipath & "Tools\VideoChanger.exe 1280x1024x32@85 -q") Run ( $wpipath & "Tools\fonts\fontinstaller.exe") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Styles", "MaxScriptStatements", "REG_DWORD", "ffffffff") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Download","CheckExeSignatures","REG_SZ","no") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Download","RunInvalidSignatures","REG_DWORD","00000001") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments","SaveZoneInformation","REG_DWORD","00000001") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations","LowRiskFileTypes","REG_SZ",".zip;.rar;.nfo;.txt;.exe;.bat;.com;.cmd;.reg;.msi;.htm;.html;.gif;.bmp;.jpg;.avi;.mpg;.mpeg;.mov;.mp3;.m3u;.wav;") Run ( $wpipath & "WPI.bat" , $wpipath ) Edited September 20, 2005 by kelsenellenelvian
Dynaletik Posted September 18, 2005 Posted September 18, 2005 Yes, quite nice, but for me it would not be so much better, only got 2 DVD drives and the only disc that is inserted during setup, is the Win XP-DVD with WPI. The batch file does not need so much time to find it. But on older systems I think, your method could be much better.
Swimming_Bird Posted September 18, 2005 Author Posted September 18, 2005 Yes, quite nice, but for me it would not be so much better, only got 2 DVD drives and the only disc that is inserted during setup, is the Win XP-DVD with WPI. The batch file does not need so much time to find it. But on older systems I think, your method could be much better. <{POST_SNAPBACK}>it doesnt matter how many optical drives, its the number of drives in general, it searches every one of them.but anyone have any idea why it doesnt work?
Swimming_Bird Posted September 18, 2005 Author Posted September 18, 2005 nice <{POST_SNAPBACK}>there'll be a lot more to it when i'm done, i'll be sure to share it with you all.
Kelsenellenelvian Posted September 20, 2005 Posted September 20, 2005 Hmmmm really interesting. Bears further looking into. We are trying to get rid of the need for a .cmd file and remove the dependancy of it.
Swimming_Bird Posted September 20, 2005 Author Posted September 20, 2005 (edited) lemme know, i'm pretty good with autoit, my script is pretty much done (except for that vital error of it not calling the WPI file)and pleeeease help me with this somehow, its really irritating me. Edited September 20, 2005 by Swimming_Bird
Kelsenellenelvian Posted September 20, 2005 Posted September 20, 2005 My knowledge of auto-it is very limited. Sorry.
Swimming_Bird Posted September 20, 2005 Author Posted September 20, 2005 My knowledge of auto-it is very limited. Sorry.<{POST_SNAPBACK}>i was just wondering about the actual calling of WPI, what may be causing that issue. i can figure the autoit part out. i just dont know how WPI is suposed to be called.
Kelsenellenelvian Posted September 20, 2005 Posted September 20, 2005 I am not familliar with "regwrite" but the reg files look slightly wrong to me. Shouldn't the regular reg file format be used?
Swimming_Bird Posted September 20, 2005 Author Posted September 20, 2005 (edited) I am not familliar with "regwrite" but the reg files look slightly wrong to me. Shouldn't the regular reg file format be used?<{POST_SNAPBACK}>regwrite is an autoit commandRegWrite ( "keyname" [,"valuename", "type", value]);~ Run ( $wpipath & "Tools\VideoChanger.exe 1280x1024x32@85 -q") Run ( $wpipath & "Tools\fonts\fontinstaller.exe") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Styles", "MaxScriptStatements", "REG_DWORD", "ffffffff") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Download","CheckExeSignatures","REG_SZ","no") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Download","RunInvalidSignatures","REG_DWORD","00000001") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments","SaveZoneInformation","REG_DWORD","00000001") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations","LowRiskFileTypes","REG_SZ",".zip;.rar;.nfo;.txt;.exe;.bat;.com;.cmd;.reg;.msi;.htm;.html;.gif;.bmp;.jpg;.avi;.mpg;.mpeg;.mov;.mp3;.m3u;.wav;") Run ( $wpipath & "WPI.bat" , $wpipath )<{POST_SNAPBACK}> Edited September 20, 2005 by Swimming_Bird
Kelsenellenelvian Posted September 20, 2005 Posted September 20, 2005 And how are you trying to call wpi.HTA?
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