Sign in to follow this  
Followers 0
dpaynebrown

Compiler ignoring specific fields

7 posts in this topic

I've set the Compiler Directives section in my AU3 file as shown here. When compiling to an executable, I assumed that the Version tab of the Properties window would contain the settings shown in the "Target Program Resource" section. It does not. The directives are being ignored. The other directives, such as icon and output file names, work just fine.

The workstation is Windows XP with all the latest patches.

ResHacker.exe (version 3.4.0.79) program in the AutoIt3Wrapper folder, which, for whatever reason is within the SciTE folder.

I have tried compiling from SciTE using the directives within the AU3 file. I also tried compiling by using a AutoIt3Wrapper.ini file and also attempted using the Aut2Exe application. The results are all identical.

What am I missing? What am I doing wrong?

#Region Compiler directives section

;** This is a list of compiler directives used by AutoIt3Wrapper.exe.
;** comment the lines you don't need or else it will override the default settings
#Compiler_Prompt=n  ;y=show compile menu   

;** AUTOIT3 settings
#Compiler_AUTOIT3=  ;Override the default Interpreter version.

;** AUT2EXE settings
#Compiler_AUT2EXE=                                                  ;Override the default compiler with this version.
#Compiler_Icon=C:\Test\Project3.ico                        ;Filename of the Ico file to use
#Compiler_OutFile=C:\Test\Project3.exe   ;Target exe/a3x filename.
#Compiler_OutFile_Type=exe                                          ;a3x=small AutoIt3 file;  exe=Standalone executable(Default)
#Compiler_Compression=2                                            ;Compression parameter 0-4  0=Low 2=normal 4=High
#Compiler_Allow_Decompile=n                                        ;y= allow decompile
#Compiler_PassPhrase=                  ;Password to use for compilation
#Compiler_UseUpx=y                                                  ;(y/n) Compress output program works only for 3.1.1.110 and up. Default=Yes

;** Target program Resource info
#Compiler_Res_Comment=Pick a range of clients                   ;Comment field
#Compiler_Res_Description=Client range applet                   ;Description field
#Compiler_Res_Fileversion=1.0.0.0                             ;File Version
#Compiler_Res_FileVersion_AutoIncrement=n                     ;AutoIncrement FileVersion After Aut2EXE is finished.
#Compiler_Res_Language=1033                                 ;Resource Language code . default 2057=English (United Kingdom)
#Compiler_Res_LegalCopyright=2007 Project3 Test  ;Copyright field

; Free-form resource fields (max 15). You can use the following variables:
; %AutoItVer% which will be replaced with the version of AutoIt3
; %date% = PC date in short date format
; %longdate% = PC date in long date format
; %time% = PC timeformat
#Compiler_Res_Field=AutoIt Version|%AutoItVer%   ;AutoIt3 line
#Compiler_Res_Field=Name|Value                 ;Free format fieldname|fieldvalue
#Compiler_Res_Field=Name|Value                 ;Free format fieldname|fieldvalue
#Compiler_Res_Field=Name|Value                 ;Free format fieldname|fieldvalue
#Compiler_Res_Field=Name|Value                 ;Free format fieldname|fieldvalue

;** Tidy Settings
#Compiler_Run_Tidy=n           ;Run au3check before compilation. default=y
#Compiler_Tidy_Stop_onerror=y  ;Continue when only Warnings. default=y
#Tidy_Parameters=             ;Tidy Parameters...see SciTE4AutoIt3 Helpfile for options 

;** AU3CHECK settings
#Compiler_Run_AU3Check=          ;(Y/N) Run au3check before compilation. Default=Y
#Compiler_AU3Check_Parameters=    ;Au3Check parameters
#Compiler_AU3Check_Dat=          ;Override the default au3check definition
#Compiler_AU3Check_Stop_OnWarning=  ;(Y/N) N=Continue on Warnings.(Default) Y=Always stop on Warnings
#Compiler_AU3Check_Parameters=    ;Au3Check parameters
#Compiler_PlugIn_Funcs=          ;Define PlugIn function names separated by a Comma to avoid AU3Check errors

;** RUN BEFORE AND AFTER definitions
; The following directives can contain:
; %in% , %out%, %icon% which will be replaced by the fullpath\filename.
; %scriptdir% same as @ScriptDir and %scriptfile% = filename without extension.
; %fileversion% is the information from the #Compiler_Res_Fileversion directive
; %scitedir% will be replaced by the SciTE program directory
#Compiler_Run_Before=      ;process to run before compilation - you can have multiple records that will be processed in sequence
#Compiler_Run_After=        ;process to run After compilation - you can have multiple records that will be processed in sequence
#Compiler_Run_cvsWrapper=n  ;(y/n) Run cvsWrapper to update the script source. Default=n

;** Run Settings
#Run_Debug_Mode=n          ; Run Script with console debugging 
#EndRegion

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

how did you run the compile ?

When ran from SciTE , please show the Output pane information ....

The Directives are ONLY used by AutopIt3Wrapper not by AUT2EXE.

:whistle:

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

how did you run the compile ?

I choose Tools->Compile from the SciTE editor menu. Here's the text from the output pane:

>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /in "C:\Test\Project3.au3"
+>20:33:12 Starting AutoIt3Wrapper v.1.8.1
>Running:(3.2.4.9):C:\Program Files\AutoIt3\Aut2Exe\Aut2Exe.exe
+>20:33:17 Aut2exe.exe ended.rc:0
+>20:33:18 AutoIt3Wrapper Finished
>Exit code: 0   Time: 6.590

Share this post


Link to post
Share on other sites

I choose Tools->Compile from the SciTE editor menu. Here's the text from the output pane:

According to the SciTE help file, some specific directives require ResHacker.exe to be downloaded to the AutoIt3Wrapper directory. That is likely one of them.

:whistle:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Yes, ResHacker.exe (version 3.4.0.79) program is in the AutoIt3Wrapper folder.

Share this post


Link to post
Share on other sites

I choose Tools->Compile from the SciTE editor menu. Here's the text from the output pane:

>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /in "C:\Test\Project3.au3"
+>20:33:12 Starting AutoIt3Wrapper v.1.8.1
>Running:(3.2.4.9):C:\Program Files\AutoIt3\Aut2Exe\Aut2Exe.exe
+>20:33:17 Aut2exe.exe ended.rc:0
+>20:33:18 AutoIt3Wrapper Finished
>Exit code: 0   Time: 6.590
Try upgrading to the latest version of SciTE4AutoIt3 first... many things changed lately ... :whistle:

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Try upgrading to the latest version of SciTE4AutoIt3 first... many things changed lately ... :whistle:

Yep! That was the key. The version I downloaded in May was too old. Thanks!

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