Thank you very much.TAC109 wrote: ↑07 Jun 2022, 02:30@aaffeThe first line is executed by Ahk2Exe if there is no compression specified, or the second line is executed by Ahk2Exe if MPRESS compression is specified, or the third line is executed by Ahk2Exe if UPX compression is specified. If you always use the same compressor or always have no compression specified, then you only need the relevant line of code, but it is not a problem to always include all three lines.Code: Select all
;@Ahk2Exe-PostExec "D:\____BUGFIXE_____\do_signaturing_and_other_things.ahk" "%A_WorkFileName%", 0 ;@Ahk2Exe-PostExec "D:\____BUGFIXE_____\do_signaturing_and_other_things.ahk" "%A_WorkFileName%", 1 ;@Ahk2Exe-PostExec "D:\____BUGFIXE_____\do_signaturing_and_other_things.ahk" "%A_WorkFileName%", 2
Cheers
Ok, tried it like this:
Zum_Mailen_zippen.ahk:
;@Ahk2Exe-SetMainIcon zum_Mailen_Zippen.ahk_1.ico
;@Ahk2Exe-PostExec "D:\Tmp\Test\Test.exe" "%A_WorkFileName%", 0
;@Ahk2Exe-PostExec "D:\Tmp\Test\Test.exe" "%A_WorkFileName%", 1
;@Ahk2Exe-PostExec "D:\Tmp\Test\Test.exe" "%A_WorkFileName%", 2
...
test.ahk:
FileGettime,time,%1%
msgbox %1%`n%time%x
But I only get a tmp-File: then I tried it with mit sign.exe. Ok, the tmp-file is signed. After that, the renamed exe also stays signed. I will test a bit with the other things I do in my signing-Exe, but I think I really could use this. Thanks Tac109!