September 17, 200520 yr 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, 200520 yr by Swimming_Bird
September 17, 200520 yr 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.
September 17, 200520 yr Author 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, 200520 yr by kelsenellenelvian
September 18, 200520 yr 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.
September 18, 200520 yr Author 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?
September 18, 200520 yr Author 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.
September 20, 200520 yr 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.
September 20, 200520 yr Author 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, 200520 yr by Swimming_Bird
September 20, 200520 yr Author 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.
September 20, 200520 yr I am not familliar with "regwrite" but the reg files look slightly wrong to me. Shouldn't the regular reg file format be used?
September 20, 200520 yr Author 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, 200520 yr by Swimming_Bird
Create an account or sign in to comment