使用ClickOnce时如何将安装文件夹指定为C:\ program文件? [英] How to specify the Installation folder to C:\program files while using ClickOnce?

查看:143
本文介绍了使用ClickOnce时如何将安装文件夹指定为C:\ program文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我们正在使用Visual Studio 2010开发基于C#4.0 Windows的应用程序.现在,我们希望使用clickonce制作该exe的可安装版本,以部署我们的应用程序.我是.NET平台的新手.因此,请给我逐步的过程,以使用clickonce部署我的应用程序.

在执行以下步骤时:项目属性->发布窗口:

我需要在安装文件夹URL框(第二个文本框)中输入以下内容:例如,我想在安装文件夹中输入c:\ program文件.我该怎么办?

我将使用USB/CDROM部署我的应用程序...

Hi All,

We are developing C# 4.0 windows based application using visual studio 2010. Now we want to make an installable version of the exe using clickonce to deploy our application. I am new to .NET platform. So, please give me a step by step procedure to use clickonce to deploy my application.

While following steps :Project properties->publish window :

What should I need to give in Installation Folder URL Box(2 nd text Box):For example I want to give the c:\program files on installation folder. How do I do it?

I am going to deploy my application using USB/CDROM...

推荐答案

恐怕ClickOnce无法做到这一点. ClickOnce应用程序始终安装在本地应用程序数据的Apps子目录中.在此处查看概述;

单击一次部署概述 [控制单击一次安装的位置 [ ^ ]

在msdn中单击一次;

MSDN单击一次部署 [
I am afraid this is not possible with ClickOnce. ClickOnce applications are always installed in the Apps subdirectory of local application data. See the overview here;

Overview of Click Once Deployment[^]

You can check this link it is similar to your question for more help;

Control the location of the click once installation[^]

Click once in msdn ;

MSDN Click Once Deployment[^]

If you really need to specify the location where the application is going to be installed, you will have to use another method, like an .msi file.


这篇关于使用ClickOnce时如何将安装文件夹指定为C:\ program文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆