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 

Installer
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
corrupt



Joined: 29 Dec 2004
Posts: 2399

PostPosted: Sat Jan 15, 2005 11:10 pm    Post subject: Installer Reply with quote

Please fix the .ahk file association in the current installer and/or give an option to leave the associations alone Sad .
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sat Jan 15, 2005 11:17 pm    Post subject: Reply with quote

You mean changing the associated editor to Notepad? Yes, that's still on the to-do list but I'm not very good at NSIS scripting, so even simply changes tend to take me a long time.
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Sat Jan 15, 2005 11:31 pm    Post subject: Reply with quote

make a script that backs up the affected reg entries... runs installer... loads the reg back...

i'm thinking abt making one ... lemme know if there's interest.
_________________
Back to top
View user's profile Send private message
corrupt



Joined: 29 Dec 2004
Posts: 2399

PostPosted: Sat Jan 15, 2005 11:39 pm    Post subject: Reply with quote

Chris wrote:
You mean changing the associated editor to Notepad? Yes, that's still on the to-do list but I'm not very good at NSIS scripting, so even simply changes tend to take me a long time.


No, I got around that by adding an entry for the editor that I use (JFE) with a different name. That way the one I added remains untouched after updating Wink. I meant the associations for running & compiling do not work after updating. For example the path:

d:\Program Files\AutoHotkey\AutoHotkey.exe "%1" %*

needs to be changed to:

"d:\Program Files\AutoHotkey\AutoHotkey.exe" "%1" %*

in Run Script & Open and:

d:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe /in "%l"

needs to be changed to:

"d:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe" /in "%l"

for Compile script every time I update Rolling Eyes . I'm running XP Pro Smile.
Back to top
View user's profile Send private message Visit poster's website
Titan



Joined: 11 Aug 2004
Posts: 5068
Location: imaginationland

PostPosted: Sun Jan 16, 2005 12:21 am    Post subject: Reply with quote

You can easily associate .ahk files with Notepad or anything else of your choise.

1. Right-click any .ahk file
2. Select Properties
3. Change the open with list for .ahk files
Back to top
View user's profile Send private message Visit poster's website
corrupt



Joined: 29 Dec 2004
Posts: 2399

PostPosted: Sun Jan 16, 2005 2:15 am    Post subject: Reply with quote

Thanks for the reply Titan and you're right that it's easy to change (changing it in Explorer->Tools->Folder Options-> File Types (tab)-> then select AHK and click Advanced gives more flexibility) but it would be nice to not have to change after each update to be able to run a script by clicking on it... New users may become discouraged by this if they make a script and get a Windows message saying that it's not vaild.
Back to top
View user's profile Send private message Visit poster's website
Titan



Joined: 11 Aug 2004
Posts: 5068
Location: imaginationland

PostPosted: Sun Jan 16, 2005 2:37 am    Post subject: Reply with quote

You could try TweakUI, I'm not sure but it just might prevent overrides by the installer.

It would be nice though if the installer asked you wether it should associate .ahk files with itself.
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sun Jan 16, 2005 3:25 am    Post subject: Reply with quote

corrupt wrote:
the associations for running & compiling do not work after updating.
Well I'm glad you mentioned it because I had no idea that the quotes were needed around the EXE path name (I don't recall anyone else ever mentioning a problem). I wonder why the unquoted string works on so many other XP systems but not yours. Maybe it's something to do with having a primary and an alternate Program Files folder (assuming that applies to you).

Has anyone else had any problems with the right-click menu items such "Run" and "Compile" not working? Also, does anyone know anything more about this quoting issue, such as whether it's supported on Windows 9x, especially Windows 95? In a nutshell, the issue is whether the first pair of quotes below are a good idea on all OSes:

"d:\Program Files\AutoHotkey\AutoHotkey.exe" "%1" %*

Thanks.

Titan wrote:
It would be nice though if the installer asked you wether it should associate .ahk files with itself.
Can you explain the uses for that? Perhaps for having multiple AutoHotkey versions installed?
Back to top
View user's profile Send private message Send e-mail
corrupt



Joined: 29 Dec 2004
Posts: 2399

PostPosted: Sun Jan 16, 2005 4:14 am    Post subject: Reply with quote

@Chris
I think it has to do more with the fact that I'm not using the standard install directory (d drive instead of c). On my Win ME machine if I go to Explorer->Tools->Folder Options-> File Types (tab)-> then select AHK and click Advanced and edit Run Script I notice that no quotes are around the path (and it works ok on Win ME) BUT if I try and leave it as is and click ok I will get an error that the file doesn't exist. If I add the quotes around the path Windows will then accept it. AFAIK the quotes are necessary because there is a space character in the path. AFAIK the quotes should be applied for all Windows OS for file associations when the path contains spaces.

Note: it's not just the right click menu items that don't work on XP for me but double-clicking a .ahk file produces a Windows message that the file is not a valid Win32 application instead of running a script without the quotes added.

Feel free to move this to the bug report section if you'd like btw Smile.
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sun Jan 16, 2005 4:27 am    Post subject: Reply with quote

Thanks for the details. I'll try to get this fixed for the next update (will try to test on Win98 first).
Back to top
View user's profile Send private message Send e-mail
corrupt



Joined: 29 Dec 2004
Posts: 2399

PostPosted: Sun Jan 16, 2005 4:37 am    Post subject: Reply with quote

Chris wrote:
Thanks for the details. I'll try to get this fixed for the next update (will try to test on Win98 first).

NP Smile. Thanks for looking into it Smile.
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Mon Jan 24, 2005 12:07 am    Post subject: Reply with quote

I think this issue has been fixed in the latest release, v1.0.25.06.

Chglog: Changed the installer to preserve the editor associated with scripts (rather than changing it to Notepad). Also, the open/run/compile context menu items for .ahk files have been corrected to work on a broader range of systems.
Back to top
View user's profile Send private message Send e-mail
corrupt



Joined: 29 Dec 2004
Posts: 2399

PostPosted: Thu Jan 27, 2005 12:12 am    Post subject: Reply with quote

I can now update using the installer in XP without having to modify to get scripts to run. Thanks Smile
Back to top
View user's profile Send private message Visit poster's website
sleepyy35



Joined: 22 Jul 2004
Posts: 194
Location: cedar city UT

PostPosted: Thu Jan 27, 2005 5:23 am    Post subject: Reply with quote

Quote:
Has anyone else had any problems with the right-click menu items such "Run" and "Compile" not working? Also, does anyone know anything more about this quoting issue, such as whether it's supported on Windows 9x, especially Windows 95? In a nutshell, the issue is whether the first pair of quotes below are a good idea on all OSes:


i'm on win98 and the right-click compile will not work for me
it work'd fine for me on xp never had a problom .
but not a big deal to me Laughing Laughing
_________________
^sleepy^
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Jan 27, 2005 2:56 pm    Post subject: Reply with quote

It doesn't work even with v1.0.25.06 or later? That would be strange because it works on a Windows 98se system I tested it with.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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