本文介绍了部署到Program Files目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我公司开发的C#应用​​程序,我想将其部署到 C:\Program Files\Company Name\Product 文件夹中。我没有看到在目标机器上创建了公司名文件夹中。

I have developed a C# application and I would like to deploy it to the C:\Program Files\Company Name\Product folder. I am not seeing the "Company Name" folder created on the target machine.

我从发布目录中的文件复制到记忆棒(U盘)。我把记忆棒到Windows NT计算机,双击的setup.exe 。 。该应用程序被安装,因为它出现在*开始菜单我不知道在哪里实际目的地是我知道这是不是在 C:\Program Files\Company Name\Product 文件夹中。

I copy the files from the "published" directory onto a memory stick (thumb drive). I take the memory stick to a Windows NT machine and double click on setup.exe. The application is installed, as it appears in the *Start Menu". I have no idea where the actually destination is. I know it is not in C:\Program Files\Company Name\Product folder.

我使用微软的Visual C#2008 Express Edition的版本3.5 SP1。这款产品采用严格限制的的ClickOnce 安装不幸的是,这是我给什么一起工作。

I am using MS Visual C# 2008 Express Edition Version 3.5 SP1. This product uses a severely restricted ClickOnce installer. Unfortunately, this is what I am given to work with.

我如何知道C#表达对我的应用程序部署到 C: \Program Files\Company Name\Product 文件夹?

How do I tell C# express to deploy my application into the C:\Program Files\Company Name\Product folder?

很抱歉,如果这是一个重复,因为我有困难的时候搜索。在这个问题上的任何信息。

Sorry if this is a duplicate, as I am having a difficult time searching for any information on this issue.

请注意:我正在开发的64位Windows 7平台。

Note: I am developing on 64-bit Windows 7 platform.

修改结果
我已经标题,公司,产品,版权,版本和GUID字段填写了大会信息对话框中的公司名称是两个词中间有空隙。 □是航天事业的问题?


I have the Title, Company, Product, Copyright, versions and GUID fields filled out on the Assembly Information dialog box. The company name is two words with a space between. Does the space cause problems?

推荐答案

您不能这样做,使用ClickOnce,因为它的主要优点是,它不需要写访问Program Files文件夹。

You cannot do that using ClickOnce, since its main advantage is that it doesn't require write access to the Program Files folder.

这篇关于部署到Program Files目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 09:33