Jump to content

Recommended Posts

Posted (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 @ /hid

REM Start WPI and wait for its end
start /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..."

exit

and when i manually call this batch file it works fine, but when i have autoit call it it gives me that error.

Edited by Swimming_Bird

Posted

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.

Posted (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 by kelsenellenelvian
Posted

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. :D

Posted
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.  :D

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?

Posted (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. :thumbup

Edited by Swimming_Bird
Posted (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?

regwrite is an autoit command

RegWrite ( "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 )

Edited by Swimming_Bird

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...