Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I'm making a web setup in VS2005 and I'm new on this kind of projects.
I am thinking in using a serial code in the setup.
This app is customized for each customer for their needs, (such deparments, names, etc).
So I was thinking to use a Serial Number for each customer, so let's say for example:
I made this serial number for CompanyA: AAA-AAA-AAA-AAA,
And I want the setup to continue if the user of CompanyA puts the
AAA-AAA-AAA-AAA serial code. If the user puts the BBB-BBB-BBB-BBB or any other code will display the error and cannot continue the installation until he puts the customized serial code for that setup. This is like a password to continue the installation.

I googled and I found custom actions, but this can only be done after the installation, but is useless for my purposes.

So, I can do to make this?
Thank you :)
Posted

1 solution


Here
[^] is possible solution of your problem. :)
 
Share this answer
 
Comments
Juub 1-Jul-10 18:40pm    
Hi Hristo, thanks for your reply.
I was reading it, and it explains how the custom action works, however, I would like to know how I can make this custom action before install.
I don't know exactly if the dll can contain the serial key and compare it with the one the user gives in the dialog.
Thank you
[no name] 2-Jul-10 6:26am    
The article demonstrates how to customize MSI package which is not simple task unfortunately.You could use article idea, Visual C++ DLL and Orca MSI editor to customize your package.Of course you are able to use third party products(InstallShield) to simplify the process, but when we are talking about developing for Windows Installer nothing is easy.Afterwards you read the article you could continue studying WI from here http://msdn.microsoft.com/en-us/library/aa372860(VS.85).aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900