Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8702835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:45:04+00:00 2026-06-13T02:45:04+00:00

Hi I have the registry structure like below HKLM SOFTWARE MYAPP VER1 VER2 VER3

  • 0

Hi I have the registry structure like below

HKLM
    SOFTWARE
        MYAPP
            VER1
            VER2
            VER3

like that list goes depending on how many patches I install on top of MYAPP. Now I want read VER1, VER2 … and I want to capture last VERX. How can read the subkeys under MYAPP and find out last subkey.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T02:45:05+00:00Added an answer on June 13, 2026 at 2:45 am

    Answer – how to read registry keys (not values).

    From NSIS Scripting Reference

    4.9.2.5 EnumRegKey

    user_var(output) root_key subkey index
    

    Set user variable $x with the name of the ‘index’th registry key in
    root_key\Subkey. Valid values for root_key are listed under
    WriteRegStr. Returns an empty string if there are no more keys, and
    returns an empty string and sets the error flag if there is an error.

    StrCpy $0 0
    loop:
      EnumRegKey $1 HKLM Software $0
      StrCmp $1 "" done
      IntOp $0 $0 + 1
      MessageBox MB_YESNO|MB_ICONQUESTION "$1$\n$\nMore?" IDYES loop
    done:
    

    In your case:

    EnumRegKey $1 HKLM "Software\MYAPP" $0 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an legacy application that accesses the registry. Because it is a 32bit
I have simple WinForms application where modifying Windows Registry. The problem is that in
My software requires to store the directory and registry structure for some particular locations.
Let's imagine that we have Registry pattern... <?php class Registry { private static $objects
I have a registry key that contains multiple string name/data values (they are type
I have a registry string that contains double quotes that I have to edit.
My company has many products, we want to create a registry key Software\$(var.Manufacturer) that
A Registry root of an application can be a tree-like structure with folders and
I have a class that relies on HttpServerUtilityBase my plan was to get structure
i have registry data in text as below: /Classes/CLSID/AppID,SZ,{0010890e-8789-413c-adbc-48f5b511b3af}, /Classes/CLSID/InProcServer32,KEY,,2011-10-14 00:00:33 /Classes/CLSID/InProcServer32/,EXPAND_SZ,%SystemRoot%\x5Csystem32\x5CSHELL32.dll, /Classes/CLSID/InProcServer32/ThreadingModel,SZ,Apartment, /Classes/CLSID/,KEY,,2011-10-14

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.