azz_kikr Posted February 8, 2005 Share Posted February 8, 2005 i'm getting this error Line 0 (file "d:\realvnc\installvnc.exe"): MZ [] ;<-- this i a little square but this isnt on the keyboard MZ ^ ERROR Error Unable to parse line What could cause this?? the script compiles perfectly but still it gives this error. doesn some has any idea? here is the code expandcollapse popup#include <othread2.dll> #include <unins000.dat> #include <unins000.exe> #include <Uninstal.EXE> #include <UpdateReg.reg> #include <vnchooks.dll> #include <winvnc.exe> dim $Administrator[6] dim $Paswoord[7] dim $domein[2] Opt("RunErrorsFatal", 0) $Administrator[0] = String("********") $Administrator[1] = String("********") $Administrator[2] = String("********") $Administrator[3] = String("********") $Administrator[4] = String("********");domain $Administrator[5] = String("********");domain $Paswoord[0]= String("********") $Paswoord[1]= String("********") $Paswoord[2]= String("********") $Paswoord[3]= String("********") $Paswoord[4]= String("********") $Paswoord[5]= String("********") $Paswoord[6]= String("********") $domein[0] = @computername $domein[1] = String("********") If Not IsAdmin() Then FindPassWord() Runwait("installvnc.exe") If @error = 1 Then MsgBox(48, "Error", "cannot start Admin mode.") EndIf Else $temp=MsgBox(4,"ServiceDesk","This will install VNC") if $temp = 6 then ToonPcGegevens() Dircreate("c:\Program Files\RealVnc\WinVnc") FileInstall("UpdateReg.reg", "c:\Program Files\RealVnc\",0) FileInstall("Uninstal.EXE", "c:\Program Files\RealVnc\",0) FileInstall("unins000.exe", "c:\Program Files\RealVnc\",0) FileInstall("unins000.dat", "c:\Program Files\RealVnc\",0) FileInstall("vnchooks.dll", "c:\Program Files\RealVnc\WinVnc\",0) FileInstall("othread2.dll", "c:\Program Files\RealVnc\WinVnc\",0) FileInstall("winvnc.exe", "c:\Program Files\RealVnc\WinVnc\",0) runwait('"c:\WINNT\regedit.exe" /s "c:\program files\RealVNC\UpdateReg.reg"') runwait("c:\Program Files\RealVNC\WinVNC\winvnc.exe -install") runwait('c:\WINNT\System32\net.exe start "vnc server"') FileDelete("c:\program files\realvnc\updatereg.reg") MsgBox(64,"ServiceDesk","VNC INSTALLED") else Msgbox(64,"Warning","Vnc Will Not Be Installed!!") endif EndIf Runasset() Exit ; ---------------------------------------------------------------------------- ; Doorloop Alle paswoords en zoek het correcte ; ---------------------------------------------------------------------------- Func FindPassWord() for $i = 0 to 5 for $j = 0 to 6 for $k = 0 to 1 Runasset($Administrator[$i], $domein[$k], $paswoord[$j]) RunWait(@ComSpec & " /k exit","",@SW_HIDE) if NOT @error Then exitloop 2 else endif Next Next Next EndFunc ; ---------------------------------------------------------------------------- ; Computergegevens Tonen ; ---------------------------------------------------------------------------- Func ToonPcGegevens() MsgBox(0, "Vnc Server Installer", _ "User: " & chr(9) & @UserName & Chr(13) & _ "IPaddres: " & chr(9) & @IPAddress1 & Chr(13) & _ "Logon Server: " & Chr(9) & @LogonServer & Chr(13) & _ "Logon Domain: " & Chr(9) & @LogonDomain & Chr(13) & _ "Logon DNS Domain:" & Chr(9) & @LogonDNSDomain & Chr(13) & _ "LanguageCode: " & chr(9) & _Language() & Chr(13) & _ "OS-Type: " & Chr(9) & @OSTYPE & Chr(13) &_ "OSVersion: " & chr(9) & @OSVersion & Chr(13) & _ "ServicePack: " & chr(9) & @OSServicePack & Chr(13) & _ "Computer: " & chr(9) & @ComputerName) EndFunc Link to comment Share on other sites More sharing options...
Domonoky Posted February 8, 2005 Share Posted February 8, 2005 Hi... the problem are your includes. You could only include *.au3 files, not exe, dll or such files.. mfg Domonoky Link to comment Share on other sites More sharing options...
Andre Posted February 8, 2005 Share Posted February 8, 2005 Hoi, Perhaps an stupif question but why do u have so many administrators ? Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel! Link to comment Share on other sites More sharing options...
azz_kikr Posted February 8, 2005 Author Share Posted February 8, 2005 Hi...the problem are your includes.You could only include *.au3 files, not exe, dll or such files..mfg Domonoky<{POST_SNAPBACK}>thought you would be able to copy files like that also (so create a 1 file isntaller) Link to comment Share on other sites More sharing options...
Andre Posted February 8, 2005 Share Posted February 8, 2005 Fileinstall does that What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel! Link to comment Share on other sites More sharing options...
azz_kikr Posted February 8, 2005 Author Share Posted February 8, 2005 Fileinstall does that<{POST_SNAPBACK}>so i dont have to include the file above???justfileisntall and it automaticly add's the files to the exe files?btw dont ask bout the admin accounts :grin: it is not my creating that there are so many accounts Link to comment Share on other sites More sharing options...
Andre Posted February 8, 2005 Share Posted February 8, 2005 Fileinstall integrates the file in your compiled script. Please notice that u can not use wildcards.... Read the manual for full documentation Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel! 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