473,472 Members | 2,155 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

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
too.

The general step of building an installation are:
1.Add an install class to the deployed project and imperment the custom
action
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
DBPASSWORD)
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]
/dbpassword=[DBPASSWORD])
for detail refer to http://www.codeproject.com/dotnet/Se...Deployment.asp

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){
base.Install(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
in

http://www.codeproject.com/dotnet/Se...Deployment.asp
and found that it can work correctly!
I seem that the other content in my project impact the result, it's so
unreasonable!!
anyone has an ideal and has encount similar problem, drop a note pls,
thanks!!
Jun 12 '06 #1
0 1006

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bill Murray | last post by:
I am using VS.NET 2003 and trying to deploy a service program(c++) to a Windows 2000 Server system. I have also written a small DLL (USSsetup.dll) that is used to start/stop the service using a...
0
by: Arun Bhalla | last post by:
I'm having some inconsistency problems with my deployment project ("Setup") and its custom actions ("Installer"). I'm using Visual Studio .NET 2003 (.NET 1.1, no service pack) on Windows XPSP1. ...
19
by: Thom Little | last post by:
I developed a C# application and a windows installer application that properly installs the C# application on a new machine. After the C# application is installed I would like to automatically...
3
by: MovnOn | last post by:
I've created an installation package for my program. Before installation, I use the User Interface to get values that are added to the registry. One of the values that the user must add is a path...
3
by: DC Gringo | last post by:
Hi, I'm trying to use a custom action to modify a database (rather than create one) using the VS.NET '03's help example called "Custom Action to Create Database During Installation". I've made...
3
by: Mark Assousa | last post by:
Hi, I'm having trouble finding the right news group for this posting so here goes... I am attempting to execute some special actions within an installation project for a standard .Net Windows...
0
by: Kemin | last post by:
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 too. The general step of building an...
0
by: Kemin | last post by:
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 too. The general step of building an...
4
by: Davey | last post by:
Hi All, I am learning .NET. I am a little confusing about when do I need a customer installer. I can add the Installer class in my WinForm project. But I don't know what the purpose of that....
2
by: ashishjainism | last post by:
I am unable to install my windows service and the installutil is throwing the following error: Running a transacted installation. Beginning the Install phase of the installation. See the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.