BrettF Posted January 11, 2007 Posted January 11, 2007 In the phrase: Aut2exe.exe /in <infile.au3> [/out <outfile.exe>] [/icon <iconfile.ico>] [/nodecompile] [/comp 0-4] [/pass <passphrase>] [/nopack] (for Method 3 - The Command Line) What does the last one - no pack mean?? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
herewasplato Posted January 11, 2007 Posted January 11, 2007 A forum search located Valik explaining this several times.Here is one of them:http://www.autoitscript.com/forum/index.ph...st&p=254658 [size="1"][font="Arial"].[u].[/u][/font][/size]
BrettF Posted January 11, 2007 Author Posted January 11, 2007 How can you use it?? I got nowhere with the helpfile Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
herewasplato Posted January 11, 2007 Posted January 11, 2007 It appears the the /nopack switch is no longer an option from the command line. When I tried to use the /nopack switch on the end of the command line, it makes no difference in the final exe (as you said). When I tried to use the /nopack switch at the front of the command line (before specifying the infile.au3), I got the following syntax help: Aut2Exe.exe /in <infile.au3> [/out <outfile.exe>] [/icon <iconfile.ico>] [/comp 0-4] [/nodecompile] [/pass <passphrase>] Since /nopack is not offered via that help info, I can only assume that it is no longer an option via command line operations. However; it is still an option via the GUI that loads when you start Aut2Exe.exe via the standard shortcut. See Compression > UPX Compress..... [size="1"][font="Arial"].[u].[/u][/font][/size]
Valik Posted January 12, 2007 Posted January 12, 2007 You assume I added /nopack to the help info in the first place, which as I recall, I've forgotten to do until this day. At any rate, as far as I know, the option still works.
herewasplato Posted January 12, 2007 Posted January 12, 2007 You assume I added /nopack to the help info in the first place, which as I recall, I've forgotten to do until this day. At any rate, as far as I know, the option still works.Correct as usual :-) Nopack works. I can see the difference now. I see where I went wrong before - I was not waiting long enough for the "pack" to take place and I was not forcing an update to my windows file explorer (which showed 408KB for both packed and unpacked EXEs - after forced update, 197 and 408). You might be able to "see" the pack take place via this script and SciTE:FileDelete("infile.au3") FileDelete("outfile1.exe") FileDelete("outfile2.exe") FileWrite("infile.au3", "MsgBox(0, """", """")") Run("C:\Program Files\AutoIt3\Aut2Exe\Aut2Exe.exe /in " & _ @ScriptDir & "\infile.au3 /out " & _ @ScriptDir & "\outfile1.exe") For $i = 1 To 10 ConsoleWrite("FileGetSize: " & _ FileGetSize(@ScriptDir & "\outfile1.exe") & @CR) Sleep(500) Next ConsoleWrite(@CR) Run("C:\Program Files\AutoIt3\Aut2Exe\Aut2Exe.exe /in " & _ @ScriptDir & "\infile.au3 /out " & _ @ScriptDir & "\outfile2.exe /nopack") For $i = 1 To 10 ConsoleWrite("NoPack FileGetSize: " & _ FileGetSize(@ScriptDir & "\outfile2.exe") & @CR) Sleep(500) Next [size="1"][font="Arial"].[u].[/u][/font][/size]
Developers Jos Posted January 12, 2007 Developers Posted January 12, 2007 You can also use a compiler directive when you use SciTE4AutoiT3: #compiler_useupx=n 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.
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