Solved

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

Posted on 2002-06-02
6
261 Views
Last Modified: 2013-11-14
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?
0
Comment
Question by:Monchanger
  • 4
6 Comments
 
LVL 4

Author Comment

by:Monchanger
ID: 7049997
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 ...
0
 
LVL 5

Expert Comment

by:dgorin
ID: 7050385
0
 
LVL 4

Author Comment

by:Monchanger
ID: 7050400
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.
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
LVL 4

Author Comment

by:Monchanger
ID: 7050628
Never mind.
I decided to take the serial number in my software and validate it there.

I hate those things anyway :-)
0
 
LVL 4

Author Comment

by:Monchanger
ID: 7050631
Oops. Never deleted a question before (stupid newbies ... ;-)
0
 
LVL 1

Accepted Solution

by:
Moondancer earned 0 total points
ID: 7081674
Once comments have been added, you cannot delete a question without a request in Community Support with the question link and your request.  Prior to deleting, it is always fair to give any participants a 3 day notice of your intentions to delete and why.  The actions you took here "pended" this item for deletion, but won't clear.

Since you posted the solution you found, rather than deleting this, I have refunded your 200 points to you for this question and moved it to our PAQ (Previously Asked Questions database) where it can help others.


Item closed.

Moondancer - EE Moderator
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question