AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compile_AHK II - for those who compile!
Goto page 1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
ladiko



Joined: 14 Jul 2006
Posts: 190
Location: Berlin

PostPosted: Sun Sep 09, 2007 6:52 pm    Post subject: Compile_AHK II - for those who compile! Reply with quote

By mutual consent i undertake the project Compile_AHK from nick.

> Downloads <

Setup:

Additional Downloads:


> Screenshots <



> Additional features <
    + direct call from the context menu of a script
    + offers all options of the AutoHotkey compiler (change icon, compression level, NoDecompile, password protection
    + changing the version information (file properties like company name, product name, product version, file version etc.)


> Additional information <
    + What is it good for?
    + How does it work?
    + Explanations of Run Before and Run After?
... you can find in the old thread: http://www.autohotkey.com/forum/viewtopic.php?t=14379

> Updates <

Update from 2008-04-31
    + New: defaults.ini can be saved in Compile_AHK's folder
    + Changed: More compact GUI
    + Changed: ini-files are read in following order / priority:
    • script folder
    • AppData folder
    • Compile_AHK.exe folder

Update from 2008-04-26
    + Changed: possibility to continue installation if A_AhkPath is empty
    + Changed: Possibility to continue compiling if ResHacker.exe or GoRC.exe is missing
    + Changed: Replaced all occurrences of "Compile AHK" to "Compile_AHK" and "Compile AHK Setup" to "Compile_AHK_Setup"
    + Changed: internal behaviour of the "Compile" button changed from WinWaitClose to a normal subroutine

Update from 2008-04-25
    + New: Installer supports command line parameters for silent installation. List of parameters with /something
    + New: PortableApp: Compile_AHK etc. should be in the same folder like AHK2EXE.exe, f.e. X:\PortableApps\AutoHotkey\Compiler
    + Fixed: If an icon file from another folder should be copied to the script folder, this task wasnt processed

Update from 2008-05-06
    + Fixed: Added a line break to the installation path in the installer, if it is too long
    + Changed: If launched without parameters, the preset start folder isn't c:\ anymore

Update vom 2008-04-17 v2
    + Changed: VersionInfo Language and Codepage / Charset can be changed

Update from 2008-04-17
    + Changed: All three Vista execution levels selectable

Update from 2008-04-16 v2
    + New: Hint on words in the executable's file name, which cause Vista to force the need of admin rights

Update from 2008-04-16
    + Fixed: cause of a wrong comma, the versioninfo wasnt written.
    + Fixed: error detection for Reshacker was without result in most cases

Update from 2008-04-14 v2
    + New: If Compile_AHK is called without parameters, you can choose a ahk file to open
    + New: Setup can create shortcut files on desktop and in the start menu

Update from 2008-04-14
    + New: Button to generate a password
    + New: If present, the folder Lib + AutoHotkey.exe will be copied too (function untested)
    + Fixed: Error message if the log file Compile_AHK.log is not available for deletion Wink

Update from 2008-04-13
    + Changed: Setup reads install directory from registry
    + Changed: Reset button to set install directory to the recommended path
    + Changed: small changed in the setup gui
    + Fixed: Error while extracting an icon from a resource file cause of a missing path to the ResHacker

Update from 2008-04-12
    + New: A small log file and other debugging files are written to %A_Temp%\AutoHotkey\Compiler
    + New: New main icon by Titan / www.autohotkey.net -> Thank you Titan for the permission Smile
    + Changed: WorkingDir now is %A_Temp%\AutoHotkey\Compiler instead of %A_ScriptDir%
    + Changed: Defaults.ini is now saved in %A_AppData%\AutoHotkey\Compiler
    + Changed: AlwaysOnTop icons are now included in the Compile_AHK.exe
    + Changed: Updated Credits GUI with clickable URLs
    + Changed: Smaller Installer GUI --> needs further enhancement
    + Änderung: Standard-Installationsverzeichnis ist wieder unter %A_ProgramFiles%
    + Fixed: Compile_AHK can be installed to wherever you want
    + Fixed: Compile_AHK now works 100% with enabled Data Execution Prevention (DEP) -> Thank you Lexikos

Update from 2008-04-08
    + Fixed: Icon settings were not saved in defaults.ini
    + Fixed: handling of double quotation marks in password corrected

Update from 2008-04-06 v2
    + New: Credits GUI by AGU & Laszlo

Update from 2008-04-06
    + New: Compression level: None
    + Changed: now the ini file is only written if you compile
    + Fixed: New projects had `%IN_DIR`% in outgoing executables path
    + Fixed: compression level of Ahk2Exe.exe saved and reset after compilation

Update from 2008-04-05:
    + New: icons can be copied to the script's folder and pathes in the .ini files are now relative --> portable script folder
    + Changed: the icons on the icon tab are now sorted like inside the compiled file
    + Changed: renamed the shipped icons from AllOnTop(On/Off).ico to AlwaysOnTop(On/Off).ico
    + Changed: the values ICON_%A_Index%_SET are not longer saved in the .ini files
    + Fixed: Bug in GUI on non-Vista systems
    + Fixed: Wrong file names in error messages

Update from 2008-04-03:
    + New: icons can be picked from resource files like dlls and executables
    + Changed: AllwaysOnTop now uses icons instead of text
    + Fixed: "Set AHK-Version" wasn't disabled on startup, if versioninfo was disabled

Update from 2008-03-08:
    + New: option to increment file and product version automatically

Update from 2007-12-03:
    + Fixed: visual display of target folder name in the installer on non-Vista systems
    + Changed: reworked some Messageboxes
    + Changed: other small fixes
    + New: Always-On-Top-Button
    + Thanks again to jfk001, this update is about 95% based on his work Smile

Update from 2007-09-16:
    + Changed: Icon settings were not saved if Version Info wasn't checked
    + Changed: Icon_1 was still saved in AHK2EXE section of the INI-files
    + Thanks to jfk001 for detecting the mistakes Smile

Update from 2007-09-12:
    + Fixed: Wrong interaction between Set Version Info and Set to AutoHotkey.exe version
    + Changed: New Icons-Tab to change all 7 Icons --> Icon-Settings have to be set again!
    + Changed: The buttons Compile and Abort are now available on all tabs.
    + New: Button Save Defaults saves predefined settings for (new) scripts, which don't have a scriptname.ini

Update from 2007-09-11:
    + Fixed: Set AutoHotkey.exe version doesnt work, cause two coders are not necessarily better than one Smile
    + Fixed/Workaround: On non-english systems ResHacker adds a second VersionInfo instead of overwriting the old one
    + Changed: All options of the Setup are preselected
    + New: Option to show or hide compilation password

Update from 2007-09-09:
    + Fixed: Vista-compatible, no need of administrator rights to compile
    + Changed: Installation to the folder %A_AppDataCommon%\AutoHotkey\Compiler or as Windows environment variable %ProgramData%\AutoHotkey\Compiler
    + New: Option to force Vista User Account Control (UAC) to popup for compiled program to avoid missing rights


Last edited by ladiko on Sat May 31, 2008 11:27 pm; edited 47 times in total
Back to top
View user's profile Send private message
fincs



Joined: 05 May 2007
Posts: 82
Location: Seville, Spain

PostPosted: Thu Sep 20, 2007 8:14 pm    Post subject: Reply with quote

Can you provide an option to select the install path?
_________________
Sorry my poor English
Fincs

MsgBox % RegExReplace("Fernando Incs.", "^(\w).*\s+I(\w{3})\w*\.$", "$1i$2")
Back to top
View user's profile Send private message
-=Rob=-



Joined: 21 Jul 2007
Posts: 1

PostPosted: Thu Sep 20, 2007 10:59 pm    Post subject: Reply with quote

Very nice! Thank you! Razz
Back to top
View user's profile Send private message
ladiko



Joined: 14 Jul 2006
Posts: 190
Location: Berlin

PostPosted: Fri Sep 21, 2007 6:20 am    Post subject: Reply with quote

fincs wrote:
Can you provide an option to select the install path?

i can and i already tried but it's a little bit confusing to me cause i have to handle three directories:
ahk-dir with ahk2exe.exe, AutoHotkeySC.bin, upx.exe
install-dir with compile_ahk.exe, reshacker.exe and gorc.exe
working-dir to write temporary AppData (f.e. log-files, edited AutoHotkeySC.bin. resource-files, etc) to a writable directory if program-dir is not write-accessable for unprivileged users.
so i have to copy some or all files to a working dir and execute them there. f.e. autohotkeySC.bin must be edited and that cant happen in ahk-dir and ahk2exe.exe use the autohotkeysc.bin in its (ahk)directory to create the compiled program. so i have to copy both somewhere else.

i know it is only neccessary for some users to have different install- and working-dir, cause they have write access for the windows program files directory, but i wanna do it like it should be 100% correct.
Back to top
View user's profile Send private message
AHKnow*
Guest





PostPosted: Tue Nov 13, 2007 9:38 am    Post subject: Reply with quote

Interesting and nice.
Back to top
DeWild1



Joined: 30 Apr 2006
Posts: 156
Location: Shigle Springs

PostPosted: Thu Nov 15, 2007 11:34 pm    Post subject: Reply with quote

Small bug found, (I am NOT complaining, great work, far more than I can even understand) Cool

When I first started this program, CPULOCK, I was even more of a nooob, than I am now, Laughing Shocked I made a program that was LONG...
"Click this if you're having trouble installing a program or hardware.exe"
Rolling Eyes
I would change it but it is so deep into my programs, it would take a day!

No one else will be as dumb as me and make such a long name, but, if I use your program to compile, it errors out.
Not worth fixing, I am sure I am the only one.
_________________
CPULOCK
virusSWAT
Guaranteed PC
911 PC FIX
Back to top
View user's profile Send private message Visit poster's website
daveand5



Joined: 09 Nov 2007
Posts: 18
Location: http://taplpoker.com/

PostPosted: Sat Nov 17, 2007 3:33 pm    Post subject: wont install Reply with quote

says cant find install dir
says reinstall autohotkey, did that
Now says it cant write to compiler dir
changed folder parameter (on compiler and autohotkey) was read only
still cant write to folder
help?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
DeWild1



Joined: 30 Apr 2006
Posts: 156
Location: Shigle Springs

PostPosted: Sat Nov 17, 2007 7:29 pm    Post subject: Re: wont install Reply with quote

daveand5 wrote:
says cant find install dir
says reinstall autohotkey, did that
Now says it cant write to compiler dir
changed folder parameter (on compiler and autohotkey) was read only
still cant write to folder
help?

Replace permissions, Take ownership of AHK dir, make sure you replace permisions on all sub folders, make Everyone Full..
If using Vista, turn off UAC durring install.
_________________
CPULOCK
virusSWAT
Guaranteed PC
911 PC FIX
Back to top
View user's profile Send private message Visit poster's website
daveand5



Joined: 09 Nov 2007
Posts: 18
Location: http://taplpoker.com/

PostPosted: Sun Nov 18, 2007 1:59 am    Post subject: ok Reply with quote

Quote:
Replace permissions, Take ownership of AHK dir, make sure you replace permisions on all sub folders, make Everyone Full..
If using Vista, turn off UAC durring install.


I can change permissions on any server I have websites, but as far as changing permissions on my pc or laptop, I only know of changing the read only checkmark. If there is 'permissions' to change please explain that.
I already own the machine, how do I take ownership of AHK?
some of us are not 'computer whiz's' but have a decent or respectable knowledge of our machines, and still dont know everything about the machine, and hence need to be talked to at a lower level of knowledge, else we'll never get to your level.
thanks for helping in advance
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Trubbleguy



Joined: 20 Jan 2007
Posts: 73
Location: Melbourne

PostPosted: Sun Nov 18, 2007 8:26 am    Post subject: Copy the Icons used. Reply with quote

Great Job, im using it all the time, but can you do one thing, option the icons to be COPIED to the ahk folder with a checkbox option, when i zip up my code in backups, i like to include icons, and if the icons are copied when compiled with your compiler i dont have to hunt through my icon store for them to be added to my backup. (or if the ini is deleted by accident)
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
DeWild1



Joined: 30 Apr 2006
Posts: 156
Location: Shigle Springs

PostPosted: Sun Nov 18, 2007 9:18 pm    Post subject: Reply with quote

Do you have Vista or XP?
Right click on the Auto Hotkey, (AHK), folder, select properties,


Turning off User Account Control, (UAC), may be enough, also make sure you are not logged in as a Guest, (limited User), account.
Sorry, sometimes I forget to speak English.
_________________
CPULOCK
virusSWAT
Guaranteed PC
911 PC FIX
Back to top
View user's profile Send private message Visit poster's website
daveand5



Joined: 09 Nov 2007
Posts: 18
Location: http://taplpoker.com/

PostPosted: Mon Nov 19, 2007 7:01 am    Post subject: xp home Reply with quote

the file in the zip package installed, but comes up with the 0 parameter error when compile is clicked on, there is no context message to select when right clicking on an ahk file.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
ladiko



Joined: 14 Jul 2006
Posts: 190
Location: Berlin

PostPosted: Tue Dec 04, 2007 12:48 am    Post subject: Reply with quote

DeWild1 wrote:
I made a program that was LONG...
"Click this if you're having trouble installing a program or hardware.exe"
can't confirm this for me -->

maybe your folder name or path is also longer than mine?
maybe try to disable icon changing or version info changing, cause there are several tools involved and by disabling this option you can figure out which part of compiling fails.


daveand5 wrote:
says cant find install dir
says reinstall autohotkey, did that
Now says it cant write to compiler dir
changed folder parameter (on compiler and autohotkey) was read only
still cant write to folder
help?
please some screenshots!


DeWild1 wrote:
Do you have Vista or XP?
Right click on the Auto Hotkey, (AHK), folder, select properties ...
1.) if a program needs write access to the program folder, something is wrong. then it's a fault of the programmer and he has to change this.
2.)all versions sincs september doesnt need write access to the autohotkey-folder in %A_ProgramFiles%. Please look at the first post:
ladiko wrote:
Update from 2007-09-09:
    + Fixed: Vista-compatible, no need of administrator rights to compile


daveand5 wrote:
the file in the zip package installed, but comes up with the 0 parameter error when compile is clicked on, there is no context message to select when right clicking on an ahk file.
which zip package? i've only offered an executable installer, which has the option to set the menu entry. if it would fail writing this entries, it would tell it to you.


Trubbleguy wrote:
Great Job, im using it all the time, but can you do one thing, option the icons to be COPIED to the ahk folder with a checkbox option, when i zip up my code in backups, i like to include icons, and if the icons are copied when compiled with your compiler i dont have to hunt through my icon store for them to be added to my backup. (or if the ini is deleted by accident)
somebody else thinking this would be usefull?

Last edited by ladiko on Tue Dec 04, 2007 12:58 am; edited 1 time in total
Back to top
View user's profile Send private message
DeWild1



Joined: 30 Apr 2006
Posts: 156
Location: Shigle Springs

PostPosted: Wed Dec 19, 2007 1:52 am    Post subject: Reply with quote

Quote:
maybe your folder name or path is also longer than mine?
maybe try to disable icon changing or version info changing, cause there are several tools involved and by disabling this option you can figure out which part of compiling fails.


Indeed, a very LOOOng folder name and path.. I am sure that is why..

One thing, does any one know why even when I rename UPX.exe and I have no other packer... That the files are still being compressed when i use your awesome program?
Does it have UPX.exe in it?
Or did you invent your own?
I know it modifies AutoHotkeySC.bin but I could not find any upx.exe on my hard drive...
I can not use any packers because of the dam malware makers.. The AV and AS software always seem to be lazy and block anything packed with any of the common "free" packers.
_________________
CPULOCK
virusSWAT
Guaranteed PC
911 PC FIX
Back to top
View user's profile Send private message Visit poster's website
bmcclure



Joined: 24 Nov 2007
Posts: 444

PostPosted: Wed Dec 19, 2007 2:13 am    Post subject: Reply with quote

I have Vista Ultimate 64-bit, and am experiencing an issue with this. It doesn't seem to compile in the functions from my user lib directory which I use. They work in the uncompiled version, and if I compile with the AHK compiler, but I get errors when trying to use any lib function from an exe compiled with this script (because function doesn't exist). Any ideas?
_________________
-Ben

SteamLab
SteamLab Wiki

[Broken] - My industrial music [on GarageBand]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2, 3, 4, 5, 6, 7  Next
Page 1 of 7

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group