| View previous topic :: View next topic |
| Author |
Message |
corrupt
Joined: 29 Dec 2004 Posts: 2399
|
Posted: Sat Jan 15, 2005 11:10 pm Post subject: Installer |
|
|
Please fix the .ahk file association in the current installer and/or give an option to leave the associations alone . |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sat Jan 15, 2005 11:17 pm Post subject: |
|
|
| 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 |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1718
|
Posted: Sat Jan 15, 2005 11:31 pm Post subject: |
|
|
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 |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2399
|
Posted: Sat Jan 15, 2005 11:39 pm Post subject: |
|
|
| 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 . 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 . I'm running XP Pro . |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5068 Location: imaginationland
|
Posted: Sun Jan 16, 2005 12:21 am Post subject: |
|
|
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 |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2399
|
Posted: Sun Jan 16, 2005 2:15 am Post subject: |
|
|
| 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 |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5068 Location: imaginationland
|
Posted: Sun Jan 16, 2005 2:37 am Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sun Jan 16, 2005 3:25 am Post subject: |
|
|
| 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 |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2399
|
Posted: Sun Jan 16, 2005 4:14 am Post subject: |
|
|
@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 . |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sun Jan 16, 2005 4:27 am Post subject: |
|
|
| 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 |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2399
|
Posted: Sun Jan 16, 2005 4:37 am Post subject: |
|
|
| 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 . Thanks for looking into it . |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Mon Jan 24, 2005 12:07 am Post subject: |
|
|
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 |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2399
|
Posted: Thu Jan 27, 2005 12:12 am Post subject: |
|
|
I can now update using the installer in XP without having to modify to get scripts to run. Thanks  |
|
| Back to top |
|
 |
sleepyy35
Joined: 22 Jul 2004 Posts: 194 Location: cedar city UT
|
Posted: Thu Jan 27, 2005 5:23 am Post subject: |
|
|
| 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  _________________ ^sleepy^ |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Thu Jan 27, 2005 2:56 pm Post subject: |
|
|
| 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 |
|
 |
|