About CUI, I haven't test with any arguments, but if it works (if it honor the CUI directive), it should not open another command prompt to execute the compiled script.
Example:
This is the script:
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseUpx=n
#AutoIt3Wrapper_Change2CUI=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
ConsoleWrite("This is a CUI script" & @CRLF)
If not protected (if it honor the CUI directive):
c:\>cui
This is a CUI script
c:\>
This is the result of the protected one:
c:\>cui_secure
c:\>
If doesn't display anything because when it run it open another command prompt window, execute it there and then close the window. For this I said it doesn't honor the CUI directive :)
Also I want to report small bug:
Script you want to make secure --> c:\myfolder\myscript.exe
Output --> c:\myfolder\result\myscript.exe
c:\myfolder\result\ folder is exist.
It will said "Something went wrong this normally only occurs ..."
So instead it create it result file at c:\myfolder\result\myscript.exe
it will create it at c:\myfolder\myscript.exe
(overwrite the old/input file)
Quote:
Originally Posted by fuso98
i try this, but it tell me that exe must be not upx packed. But in the header of script i put #AutoIt3Wrapper_UseUpx=n
|
The header said that, but do you recompile it after you add the directive?
About the UPX, i just notice that Shadow assume if your compiled script is less than 550Kbps in size, it assume it's packed with UPX