PDA

View Full Version : how to do an "if registry..." statement



lmodern1878
11-15-2018, 11:03 AM
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?

linder
12-11-2018, 10:37 AM
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

lmodern1878
12-14-2018, 05:16 PM
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

matt55
04-04-2019, 06:48 AM
thank you