By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,870 Members | 1,189 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,870 IT Pros & Developers. It's quick & easy.

Why cann't pass the database login infomation to the Installer class during the custom installation

P: n/a

Recently I built an ASP.NET application Installation program for deployment.
The ASP.NET app use a Sql Server db, I package it into the installation file

The general step of building an installation are:
1.Add an install class to the deployed project and imperment the custom
2.Add a "Data Entry Dialog Boxes" in the User Interface Editor of the
deployment project(my examply has two textbox,thier property are DBUSER and
3.Add a install custom action in Custom Actions view and select the main
output program which inherit install class to perform that action, set the
"CustomActionData"(my examply the CustomActionData is /dbuser=[DBUSER]
for detail refer to

I can sure the steps of my installation project has no error, because I can
throw the parameter data
passed from the "Custom Actions" (installer class couldn't be debug). But
the problem is the parameter
data is the defaul value of textbox, not the value set in "Data Entry Dialog
Boxes" during
installation running, what's up?
the debug code below:
public override void Install(IDictionary stateSaver){
throw new InstallException("installing the database fail, please
check.." + Context.Parameters

["dbuser"] + Context.Parameters["dbpassword"] );

I am so confused, later i build a simple test project following the example
and found that it can work correctly!
I seem that the other content in my project impact the result, it's so
anyone has an ideal and has encount similar problem, drop a note pls,
Jun 11 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.