Jump to content

Nopack


BrettF
 Share

Recommended Posts

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

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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]

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