Jump to content

Aut2Exe - no program description details?


Go to solution Solved by Jos,

Recommended Posts

Posted (edited)

When I compile an autoit script with the SciTE editor, it lets me enter Resource Update details such as comments, file version, copyright. etc. It then saves all this data as "Directives created by AutoIt3Wrapper_GUI"

How can I get Aut2Exe to read a similar directive script and compile the properties details that I want, such as file version, etc., into the exe ?

Thanks.

 

Edited by web2win
Posted

Not sure if this will help, but here is a similar question,

 

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

Spoiler

"Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions."

 

Posted (edited)
2 hours ago, junkew said:

I don't believe that offers setting version etc? Unless I'm mistaken?

Nine was correct -- Disregard.

4 hours ago, web2win said:

I want, such as file version, etc.,

 

Edited by donnyh13

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

Spoiler

"Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions."

 

  • Developers
Posted

Yes it does...  the #pragma directive is read by aut2exe. :) 
The #Autoit3Wrapper directives makes the changes after the exe is created when done by AutoIt3Wrapper.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted (edited)
On 11/23/2023 at 2:42 PM, Jos said:

The #Autoit3Wrapper directives makes the changes after the exe is created when done by AutoIt3Wrapper.

But if you compile via CMD for example, #Autoit3Wrapper directives aren't read, which, I think, is what the poster is referring to?

On 11/23/2023 at 3:29 PM, Nine said:

Like I already told you, if you have listen, you would have seen this :

Thanks Nine, I should have tried before I replied. My bad. I went to Junkew's link, and none of those params were listed.

Edited by donnyh13

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

Spoiler

"Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions."

 

  • Developers
Posted
8 hours ago, donnyh13 said:

But if you compile via CMD for example, #Autoit3Wrapper directives aren't read, which, I think, is what the poster is referring to??

Correct...  So hence my whole answer! 😏

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

the INI file named myScript.ini

Aut2Exe reads an INI file named Scriptname.ini if it is available. The INI file should be located in the same directory as the AutoIt script that you are compiling.

The Aut2Exe command for reading an INI file is as follows:

aut2exe.exe /i Scriptname.ini


This command tells Aut2Exe to read the INI file named Scriptname.ini and use the information in the file to compile the AutoIt script.

If you do not specify an INI file to read, Aut2Exe will use the default configuration settings.

Here is an example of how to use the Aut2Exe command to read an INI file:

aut2exe.exe /i myScript.au3 /i myScript.ini


This command tells Aut2Exe to compile the AutoIt script named myScript.au3 and use the information in the INI file named myScript.ini to compile the script.

Posted (edited)

Yes I want to compile from CMD. But I don't know why the #Autoit3Wrapper directives aren't being read. Meanwhile I discovered that Aut2Exe reads an INI file named Scriptname.ini. I will experiment with that ini to see if it can read: file version, company, copyright, language, etc. and display that stuff in the compiled program properties. 

Edited by Melba23
Posted (edited)

A sample INI file for Aut2Exe

[Aut2Exe]
ProductName=MyProg
FileDescription=MyProgram
Version=22
Icon=myicon.ico
Copyright=Copyright (C) 2023 MyCompany

 

Edited by Melba23
Posted (edited)

Unfortunately it does not work for me. Aut2Exe doesn't read the ini.  Is there another way of writing an ini file for Aut2Exe ?

Edited by Melba23
  • Moderators
Posted

web2win,

When you reply in future, please use the "Reply to this topic" button at the top of the thread or the "Reply to this topic" editor at the bottom rather than the "Quote" button - responders (particularly when it is yourself!) know what they wrote and it just pads the thread unnecessarily. Thanks in advance for your cooperation.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

  • Developers
Posted

Fileinstall will add/include a file in the program resources which then will be installed on the computer that runs the script. Open the helpfile and search for the details.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

I know how to use Fileinstall and I know the command line parameters I need. But I am not sure of the correct syntax for an ini file. I want to make changes to the program properties, fileversion, description, etc.  but Aut2Exe doesn't seem to read the ini at all.  And is AutoIt3Wrapper an exe file or an au3 data file? When I run it nothing happens....  Is there working example for a command line AutoIt3Wrapper use somewhere? 

Posted

Someone said use AutoitWrapper instead of Aut2Exe to set your compiled program description, comments, language, etc. But how exactly is it done from the command line? Or do you have to use the SciTE editor for that?

  • Developers
Posted (edited)

It is pretty simple:

  • When you like to ONLY use aut2exe you ONLY use Commandline options or #PRAGMA directives in your source ode.
  • When you want to use AutoIt3Wrapper, you can use either #PRAGMA and/or #AutoIt3Wrapper directives in the source and run the same command line as generated by full version of the SciTE4AutoIt3 package. so simply run the compile one time from SciTE and copy&paste the shown command line in the outputpane.

Using the INI for setting the AutoIt3Wrapper is something I would not recommend as that is only there for backwards compatibility and #AutoIt3Wrapper directives are so much clearer!

 

 

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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