How to set our own information at the time of installation

  • Thread starter Thread starter Mamatha
  • Start date Start date
M

Mamatha

Hi

i want to setup my VB.NET application like this:
At the time of installation,i want to take information
from the user like user name and copany name and Email
address and stored those information into database.
How can i do like this:
Is it possible to take details at the time of installation
and interacting with the database?
If possible,please let me know the solution.
Because i tried with the setup factory 5.0 and with .NET
setup wizard,but i was unable to do like that.

Thanks in advance.

Mamatha
 
Mamatha,
You need to create an Installer class that updates your database. This
installer class needs to have an instance variable on your project
installer. The assembly where the Installer class is needs to be a custom
action in your Setup Project.


For information on Custom Actions see:
http://msdn.microsoft.com/library/d...ry/en-us/vsintro7/html/vbconCustomActions.asp

For an example on using Context.Parameters & Custom Action see:
http://msdn.microsoft.com/library/d...vxwlkwalkthroughpassingdatatocustomaction.asp

In the Setup Designer for Custom Actions, set the CustomActionData property
to something like:

/CompanyName="[COMPANYNAME]" /UserName="[USERNAME]"

As both company name & user name may contain spaces.

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top