如何在客户端PC上安装clickonce应用程序.

问题描述:

朋友,我已经从Microsoft网站下载了bootstrapper软件包并进行了安装.

现在,我需要在部署WinForms应用程序时使用它,该应用程序将首先安装.net框架作为先决条件.

根据MSDN我应该;

在解决方案资源管理器中右键单击项目部署;
点击属性;
单击引导程序选项卡
并将其设置为none

但是我没有在任何属性中看到任何项目部署选项或引导程序选项卡.

如何将其设置为none,以便它将首先安装.net框架,然后在客户端PC上安装我的应用程序.

我需要在客户端PC上安装.net framework 2.0和sql express r2 2k8.

我创建了一个引导程序包&在先决条件中选择从与我的应用程序相同的位置安装"即可在我的PC上成功构建,并且我正在使用smo通过获取数据库实例名称在客户端pc上创建数据库.

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.

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



但是它不是先安装sql express,而是直接安装我的应用程序,它会正确打开,但是在运行时,我会收到一个与SQL有关的异常.

在此先感谢您的帮助.



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.

如果这是一次单击,为什么还要创建一个引导程序?我只是部署到网络共享.

SQL 2008的安装程序可能不会立即启动数据库实例. IIRC,我需要在机器上重新编程.在运行应用程序之前,您是否已验证实例已启动?检查services.msc对话框中的MSSQL.
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.