Community Forums
Results 1 to 3 of 3

Thread: Can I set a Registry Key (Branch) from a Property Value?

  1. #1
    Join Date
    Oct 2010
    Posts
    153

    Can I set a Registry Key (Branch) from a Property Value?

    I have multiple version releases in one ISM file, each with its own version number.

    Each version stores its registry in a version key (branch/folder) like this:

    • HKEY_CURRENT_USER/Software/Company/ProductName/10.0
    • HKEY_CURRENT_USER/Software/Company/ProductName/11.0
    • HKEY_CURRENT_USER/Software/Company/ProductName/12.0
    • HKEY_CURRENT_USER/Software/Company/ProductName/13.0
    • HKEY_CURRENT_USER/Software/Company/ProductName/14.0
    • etc.

    Each version has the same elements. I currently have a separate Component with the registry settings for each version, which is a hassle to keep in synch when changes occur.

    Can I have one registry component and designate the version key as a property that's assigned for each release? Thanks.
    Last edited by DataAnalyzer; 06-27-2018 at 05:52 PM.

  2. #2
    Join Date
    Jun 2017
    Posts
    51

    Can I set a Registry Key (Branch) from a Property Value?

    Hi DataAnalyzer,

    Yes,you can.For example, if you would like to store the destination location of your software, create a registry value whose data is [INSTALLDIR].

    Please refer this link:http://helpnet.flexerasoftware.com/i...itingProps.htm

    Thanks,

  3. #3
    Join Date
    Oct 2010
    Posts
    153
    Quote Originally Posted by Jenifer View Post
    Hi DataAnalyzer,

    Yes,you can.For example, if you would like to store the destination location of your software, create a registry value whose data is [INSTALLDIR].

    Please refer this link:http://helpnet.flexerasoftware.com/i...itingProps.htm

    Thanks,
    Thanks Jenifer. I may have confused you with my request. I'm not seeking to save a property value in the registry. I have that working.

    I want to change the KEY name and make that dependent on a property value. Rather than having a bunch of components with registry settings for different keys, I'd like to have something like this:

    HKEY_CURRENT_USER/Software/Company/ProductName/[RELEASE_VERSION]

    where each release can set its RELEASE_VERSION value. Is that possible?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •