Solved

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

Posted on 2002-06-02
6
258 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
Comment Utility
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
Comment Utility
0
 
LVL 4

Author Comment

by:Monchanger
Comment Utility
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 4

Author Comment

by:Monchanger
Comment Utility
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
Comment Utility
Oops. Never deleted a question before (stupid newbies ... ;-)
0
 
LVL 1

Accepted Solution

by:
Moondancer earned 0 total points
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you don't know how to downgrade, my instructions below should be helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now