Jump to content

exe build error


enaiman
 Share

Recommended Posts

This is weird - I tried to compile a script and I've got this error.

The script runs fine, had been checked and tidy-ed but I get this error and the compile stops.

Script:

#Region;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=C:\Documents and Settings\enaiman\Desktop\icons\Diskettes\diskette 1.ico
#AutoIt3Wrapper_Outfile=SearchMRTG_Install.exe
#AutoIt3Wrapper_Res_Comment=Installer for SearchMRTG
#EndRegion;**** Directives created by AutoIt3Wrapper_GUI ****
Global $InstDir = "D:\Program Files\SearchMRTG"
If Not IsDeclared("iMsgBoxAnswer") Then Local $iMsgBoxAnswer
$iMsgBoxAnswer = MsgBox(36, "Install SearchMRTG?", "This will install SearchMRTG version 1.0." & @CRLF & "                   Continue?")
Select
    Case $iMsgBoxAnswer = 6;Yes
        _InstallApp()
    Case $iMsgBoxAnswer = 7;No
        Exit
EndSelect

Func _InstallApp()
    DirCreate($InstDir)
    FileInstall(@ScriptDir & "\SearchMRTG v1.0.exe", $InstDir & "\SearchMRTG v1.0.exe", 1)
    FileInstall(@ScriptDir & "\Right_arrow.ico", $InstDir & "\Right_arrow.ico", 1)
    FileInstall(@ScriptDir & "\left_arrow.ico", $InstDir & "\left_arrow.ico", 1)
    FileInstall(@ScriptDir & "\SearchGreen.ico", $InstDir & "\SearchGreen.ico", 1)
    FileCreateShortcut($InstDir & "\SearchMRTG v1.0.exe", "C:\Documents and Settings\" & @UserName & "\Application Data\Microsoft\Internet Explorer\Quick Launch\SearchMRTG v1.0.lnk", "", "", "Launch SearchMRTG")
    FileCreateShortcut($InstDir & "\SearchMRTG v1.0.exe", @DesktopDir & "\SearchMRTG v1.0.lnk", "", "", "Launch SearchMRTG")
    MsgBox(36, "Done", "SearchMRTG v1.0 installed successfuly")
EndFunc ;==>_InstallApp

and SciTe output:

>"D:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper_Gui.exe" /in "D:\Documents\enaiman's Documents\scripts\Nettas replace\MRTG_Search_Install.au3"

+>14:08:57 Starting AutoIt3Wrapper GUI v.1.10.1.8

-> No changes made..

+>14:08:59 Starting AutoIt3Wrapper v.1.10.1.8 Environment(Language:0409 Keyboard:00000409 OS:WIN_XP/Service Pack 2 CPU:X86)

>Running AU3Check (1.54.13.0) from:d:\Program Files\AutoIt3

+>14:09:00 AU3Check ended.rc:0

+> Updated RT_VERSION information.

>14:09:00 Resource updating finished.

>Running:(3.2.12.1):P:\Program Files\AutoIt3\aut2exe\aut2exe.exe /in "D:\Documents\enaiman's Documents\scripts\Nettas replace\MRTG_Search_Install.au3" /out "D:\Documents\enaiman's Documents\scripts\Nettas replace\SearchMRTG_Install.exe" /icon "C:\Documents and Settings\enaiman\Desktop\icons\Diskettes\diskette 1.ico" /comp 2 /pack /Bin C:\Temp\AutoItSC.bin

!>14:09:02 Aut2exe.exe ended errors because the target exe wasn't created, abandon build.rc:9999

>Exit code: 0 Time: 5.665

Anyone have any idea?

Thanks

Edited by enaiman

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Link to comment
Share on other sites

Vista or XP?

Edit: Nevermind I see it in the output. I haven't gotten this error but could it be trying to write to a read-only dir?

Edited by dbzfanatic
Link to comment
Share on other sites

It's XP - but I found the error:

source The source path of the file to compile. This must be a literal string; it cannot be a variable.

Replaced @ScriptDir with proper path and everything was OK ...

I feel quite ashamed now - I should have looked once again in the help (I went back here to delete the topic but it already has a reply)

Sorry,

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Link to comment
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
 Share

  • Recently Browsing   0 members

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