Sign in to follow this  
Followers 0
azz_kikr

unable to parse line

7 posts in this topic

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

#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

Share this post


Link to post
Share on other sites



Hi...

the problem are your includes.

You could only include *.au3 files, not exe, dll or such files..

mfg Domonoky

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

Fileinstall does that


What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0