Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friend I have downloaded the bootstrapper package from Microsoft site and installed it.

Now I need to use it in deploying a WinForms application which will install the .net framework first as a prerequisite.

According to MSDN I should;

Right click on project deployment in solution explorer;
Click on properties;
Click on bootstrapper tab
And set it to none

But I do not see any project deployment option or bootstrapper tab in any property.

How may I set it to none so that It will install .net framework first then my application on client pc.

I need to install .net framework 2.0 and sql express r2 2k8 on client pc.

I have created a bootstraper package & built successfully on my pc by selecting "install from same location as my application" in prerequistes and I am using smo to create database on client pc by gaining database instance name.

C#
DataTable dataTable = SmoApplication.EnumAvailableSqlServers(true);
constr2 = dataTable.Rows[1].ItemArray.GetValue(0).ToString();


But it is not installing sql express first it directly installs my application it opens properly but when it runs, I get an SQL-related exception.

Thanks in advance for your help.
Posted
Updated 1-Nov-11 6:57am
v2

1 solution

If this is a click-once, why do you need to crete a bootstrapper? I just deploy to a network share.

The installer for SQL 2008 likely does not start the database instance immediately. IIRC, I needed to rebot on my machine. Have you verified that the instance has started before you run your applicaiton? Check the services.msc dialog for MSSQL.
 
Share this answer
 

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