Link to home
Start Free TrialLog in
Avatar of Monchanger
MonchangerFlag for United States of America

asked on

VS Installer - Validation of PIDKEY & persistence for post-installation use

In the UserNameForm, I collect the Serial number for my application. I understand that after passing validation it appears in the PIDKEY property.

The first part of the question is:
How do I change the validation action to my own validation method ? The default method only checks the entire string (8 characters) is complete. I have a product code and a few check digits which I have to calculate. Also - can this validation action be understood by someone opening the MSI file with Orca, thus breaking my protection ?

Next, I need to store this information so that my application can find it later. I normally assume that it should go to the registry, but at this point, I don't care where I'll have to send the application to find it. (Even the event log if necessary!)

If you do not know if how, or if this is not possible, please don't bother suggesting Installshield or others.

P.S. Is there any documentation in between the worthless "How to find and click the "Save" option from the menu" and the Platform SDK's api functions for this tool?
Avatar of Monchanger
Monchanger
Flag of United States of America image

ASKER

Never mind the PIDKEY persistence - I found that out. The installation writes it down under a subdirectory of HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall which is named after the Product Code GUID (as seen in the menu - Project => Properties => "Product Information" tab => "Product Code")

I'm still searching for validation info ...
dgorin - Yeah, I've been through all the MS propaganda. I'm not really getting started with it. Just finding new ways for it to kick me in the butt.
Never mind.
I decided to take the serial number in my software and validate it there.

I hate those things anyway :-)
Oops. Never deleted a question before (stupid newbies ... ;-)
ASKER CERTIFIED SOLUTION
Avatar of Moondancer
Moondancer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial