Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Product ID verification - can't get to work

Status
Not open for further replies.

cdickson

Programmer
Feb 27, 2002
1
US
I am confused about using ProductID. I want it to prevent a user without the right serial number from installing the product (just like the MS Office install discs do.) I put a 9-digit ProductID proerty into my file, and set the PID template to <#########>

When I run the install, it does ask for a product ID. However, it accepts ANY 9-digit number, not only the one I specified in the ProductID property. It will reject shorter or longer numbers though, so it is doing some checking!

What am I doing wrong??

Thanks for your help.
 
Yupp, same here... kan anyone post how to write a dll so verify the product id? ...Or is it a better way to do this?

Regars,
/Stefan
 
I fixed it by adding a custom event that checked the string. For instance, in the &quot;Next&quot; command button I put the events

Event: ValidateProductID
Argument: 0
Condition: Serial=&quot;123456789&quot;

Event: Custom Dialog
Argument: DialogName that should show
Condition: Serial=&quot;123456789&quot;

Although, I don't think this is how it should be done, and of course you have to realize that it only works if your serial number is hardcoded. Luckly for me I could customize this idea this to make my serial numbers work. I too was having the very same issue.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top