Coder Social home page Coder Social logo

Comments (19)

rshipp avatar rshipp commented on August 16, 2024

This check is done here: Make_Install.nsi#L68-L75. Can you post the contents of your InstallDir registry key for AHK, and check whether Autohotkey.exe exists in the specified folder?

from aspdm.

joedf avatar joedf commented on August 16, 2024

@george2 Thanks :)

from aspdm.

joedf avatar joedf commented on August 16, 2024

For reference (download): http://aspdm.tk/client/

from aspdm.

nnnik avatar nnnik commented on August 16, 2024

The reg Keys don't exist.
Win 8 -.-

from aspdm.

joedf avatar joedf commented on August 16, 2024

Woah what lol I guess there is a little problem then :P

from aspdm.

nnnik avatar nnnik commented on August 16, 2024

You should remove the part with the registry Key then and simply check, if Autohotkey.exe exists in A-ProgramFiles/AutoHotkey if not let the user select a Directory.
I mean all people using this Manager have at least enough Knowledge to do that, or?

from aspdm.

rshipp avatar rshipp commented on August 16, 2024

I think checking if the registry keys exists and the file exists at that path would be better than checking a hardcoded path.

from aspdm.

fincs avatar fincs commented on August 16, 2024

BTW: Extracting the ZIP files to Program Files\AutoHotkey doesn't count as "installing AHK". The installer creates registry keys that are not created by merely extracting ZIPs.

from aspdm.

rshipp avatar rshipp commented on August 16, 2024

So the question seems to be this: if AutoHotkey is not installed, should we...

  • fail and refuse to install the ASPDM client?
  • ask the user if s/he has a "portable" AutoHotkey setup (a zip extracted to a folder) and wants to use that?

The second option might be useful in some cases, for example running the client and AutoHotkey from a USB or network drive. What do you guys think?

from aspdm.

joedf avatar joedf commented on August 16, 2024

Well for now..

  • If AutoHotkey is not "installed", they can still choose to install ASPDM.
  • "Portable" is not currently supported, but might be in the future. Seems interesting and shouldn't be too hard to implement.

Now my question is : What does this registry key not exist on nnnik's computer even with AutoHotkey "installed"? : HKLM\SOFTWARE\AutoHotkey\InstallDir

from aspdm.

ttnnkkrr avatar ttnnkkrr commented on August 16, 2024

it really depends on what user level is logged in
HKLM may only be available if the user installed as admin rights?
sorry I haven't really been paying attention to any of this but isn't this entire thing a script itself?
if it runs doesn’t that mean there is an AutoHotkey application running?
That key does not exist on my laptop either win7 64 bit
what about using this key instead
HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Open\Command

From: Joe DF
Sent: Sunday, June 15, 2014 6:12 PM
To: ahkscript/ASPDM
Subject: Re: [ASPDM] Doesn't check properly if AHK is installed (#7)

Well for now..

a.. If AutoHotkey is not "installed", they can still choose to install ASPDM.
b.. "Portable" is not currently supported, but might be in the future. Seems interesting and shouldn't be too hard to implement.
Now my question is : What does this registry key not exist on nnnik's computer even with AutoHotkey "installed"? : HKLM\SOFTWARE\AutoHotkey\InstallDir

β€”
Reply to this email directly or view it on GitHub.

from aspdm.

joedf avatar joedf commented on August 16, 2024

I update the verification code. It now checks for both:

  • HKLM\SOFTWARE\AutoHotkey\InstallDir
  • HKCR\AutoHotkeyScript\Shell\Open\Command

The check passes if at least one of them returns true.
Commit: f810fa0
Download: http://aspdm.tk/client/

from aspdm.

perfaram avatar perfaram commented on August 16, 2024

Well, FYI that I installed AHK with the installer as super-admin (this name is confusing, as it is not really a super-admin... anyway, see that for more info : http://thundercloud.net/infoave/new/how-to-create-a-super-admin-account-in-windows-7/)
And I don't have either the AHK key in HKLM or in HKCU

EDIT : I do have it, but in HKLM\SOFTWARE\Wow6432Node\AutoHotkey\InstallDir
This may be an issue related to 64bit (Wow64=Windows 32-bit On Windows 64-bit, it's for compatibility with 32-bit applications)

from aspdm.

joedf avatar joedf commented on August 16, 2024

ok.... Then, ill add a third check. => triple check.
Check for the hardcoded path %Program___Files%/AutoHotkey/Autohotkey.exe

from aspdm.

perfaram avatar perfaram commented on August 16, 2024

Just understanding that today, I seem to be prone to say shit : Windows automagically redirects a x86 app looking for something like HKLM\SOFTWARE\AutoHotkey\InstallDir to HKLM\SOFTWARE\Wow6432Node\AutoHotkey\InstallDir
However, you must know that Windows is buggy, and sometimes it doesn't work

from aspdm.

joedf avatar joedf commented on August 16, 2024

Possibly, that is why SetRegView 64 is used.


3rd Check added:
Commit: 6d5855b
Download: http://aspdm.tk/client

from aspdm.

rshipp avatar rshipp commented on August 16, 2024

Just going through my issue backlog... should this one be closed now?

from aspdm.

joedf avatar joedf commented on August 16, 2024

Should... but i never got a response, if the last commit actually fixed it... :P

from aspdm.

joedf avatar joedf commented on August 16, 2024

Ok, I have decided to close this issue due to inactivity.

from aspdm.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.