+ Reply to Thread
Results 1 to 4 of 4

Thread: how to do an "if registry..." statement

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2015
    Location
    CA, Unitedd States
    Posts
    130

    Post how to do an "if registry..." statement

    Hi:

    I'm building a universal product trial reset tool for software that is no longer being made since the vendor is no longer in business and I'm hitting a snag:

    The idea is as follows:
    1. do the software's license control registry keys exist if so, where? store the registry path to the vendor key in a variable since all supported software keys are always under the one vendor key.
    1.1 if the software's keys exist, set a variable to 1, if not set to 0
    2. if they do exist, which one(s)? store the names of the keys for each product in the variables
    3. if none of the three possible keys exist, pop up a dialog telling the user no supported software was found and exit
    4. if the one or more of the supported software's license control keys are found, show a the radio buttons dialog with options for each of the three products or reset all. Depending on which products exist gray out the options on the dialog for the products that don't exist on the user's system.
    5. based on the user's selection in the radio button dialog, delete the appropriate registry key(s)

    I've got the radio button selection figured out so if a user chooses radio option #1 it deletes the vendor key thus resetting all supported installed products, if user choose any of the remaining options it deletes the key for the specific program but not the whole vendor key and its subkeys. where the snag I'm running into is items 1 through 3. Any idea how to accomplish this?

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: how to do an "if registry..." statement

    Hello,

    sorry for my late reply. Missed this thread.

    From the technical point-of-view, it's possible and no problem. But do you have all the registry key and value names? First step is always "how to do it without SetupBuilder". Then we can help to convert this to SetupBuilder.

    Friedrich

  3. #3
    Join Date
    Apr 2015
    Location
    CA, Unitedd States
    Posts
    130

    Default Re: how to do an "if registry..." statement

    Quote Originally Posted by linder View Post
    Hello,

    sorry for my late reply. Missed this thread.

    From the technical point-of-view, it's possible and no problem. But do you have all the registry key and value names? First step is always "how to do it without SetupBuilder". Then we can help to convert this to SetupBuilder.

    Friedrich
    Yes, I do know which Kees have to be gotten rid of to reset the trial period:
    On XP and previous: HKLM/Software/Chariot Software Group/App-specific kry(s)
    On vista and above: HKEY_CLASSES_ROOT/VirtualStore/Machine/Software/Chariot Software Croup/ app-specific key(s)

    If they exist, the trial counts down, if they don’t exist the trial resets to 30 days and effectively de-registers the product(s). I would love to build a key generator for these apps but that might take awhile as my budget just got a squeeze put on it. Long story, so for now I’ll have to build a trial reset until I can pay to outsource the building of a key generator

  4. #4

    Default Re: how to do an "if registry..." statement

    thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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