Jump to content

AutoIt install dir


Go to solution Solved by JLogan3o13,

Recommended Posts

Posted

$s_AutoIt_InstallPath = RegRead('HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3', 'InstallDir')
ConsoleWrite('! @error = ' & @error & @CRLF)
ConsoleWrite('! $s_AutoIt_InstallPath = ' & $s_AutoIt_InstallPath & @CRLF)

Result:

! @error = -1
! $s_AutoIt_InstallPath =

Remarks:

Installed AutoIt 3.3.10.2 and 3.3.11.3

Win7pro 64Bit

 

Question:

Why is this key does not exist (I checked in RegEdit)

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Moderators
  • Solution
Posted

The InstallDir value is contained in AutoIt v3AutoIt key. This works just fine for me:

$s_AutoIt_InstallPath = RegRead('HKLM\SOFTWARE\AutoIt v3\Autoit', 'InstallDir')
ConsoleWrite('! @error = ' & @error & @CRLF)
ConsoleWrite('! $s_AutoIt_InstallPath = ' & $s_AutoIt_InstallPath & @CRLF)
  Quote

--> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop

! @error = 0
! $s_AutoIt_InstallPath = C:Program Files (x86)AutoIt3

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Posted (edited)

thanks, and sorry

I do not know where EDIT: was my eyes

mLipok

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...