选择安装文件位置 [英] Choosing installation file location

查看:78
本文介绍了选择安装文件位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




当我为我的应用程序创建一个设置时,它会为应用程序安装所有文件

in C:\Program Files \ MyCo \ MyApp文件夹。我怎样才能将一些文件安装到:\ Program Files \ Common Files \ ...文件夹下呢?


谢谢


问候

Hi

When I create a setup for my application, it installs all files for the app
in C:\Program Files\MyCo\MyApp folder. How can I have some of the files to
be installed under :\Program Files\Common Files\... folder instead?

Thanks

Regards

推荐答案

*" John" <乔** @ nospam.infovis.co.uk> scripsit:
* "John" <jo**@nospam.infovis.co.uk> scripsit:
当我为我的应用程序创建设置时,它会在C:\Program Files \ MyCo\MyApp文件夹中安装应用程序的所有文件。我怎样才能将一些文件安装在:\ Program Files \ Common Files \ ...文件夹下呢?
When I create a setup for my application, it installs all files for the app
in C:\Program Files\MyCo\MyApp folder. How can I have some of the files to
be installed under :\Program Files\Common Files\... folder instead?




In安装项目选择目标计算机上的文件系统;并且

选择添加特殊文件夹...来自上下文菜单。


-

Herfried K. Wagner

MVP·VB Classic,VB.NET
< http://www.mvps.org/dotnet>



In the setup project select "File System on Destination Computer" and
choose "Add Special Folder..." from the context menu.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>


谢谢。一个相关的问题;如何处理应用程序

需要显式路径到某些类型的文件;访问数据库,单词/电子邮件

模板,配置文件?开发和安装路径通常是不同的,如何计算文件位置的变化与应用程序预期的
相比?


谢谢


问候

" Herfried K. Wagner [MVP]" <喜*************** @ gmx.at>在消息中写道

news:O3 **************** @ TK2MSFTNGP11.phx.gbl ...
Thanks. A related question; How to deal with the fact that the application
needs explicit paths to certain types of files; acess database, word/e-mail
templates, config files? The development and installation paths are normally
different, how to account for change in location of files against what is
expected by app?

Thanks

Regards
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:O3****************@TK2MSFTNGP11.phx.gbl...
*"约翰" <乔** @ nospam.infovis.co.uk> scripsit:
* "John" <jo**@nospam.infovis.co.uk> scripsit:
当我为我的应用程序创建设置时,它会在C:\Program Files \ MyCo\MyApp文件夹中安装
应用程序的所有文件。如何将一些文件
安装在:\ Program Files \Common Files \ ...文件夹中?
When I create a setup for my application, it installs all files for the app in C:\Program Files\MyCo\MyApp folder. How can I have some of the files to be installed under :\Program Files\Common Files\... folder instead?



在安装项目中选择目标计算机上的文件系统并选择添加特殊文件夹...来自上下文菜单。

-
Herfried K. Wagner
MVP·VB Classic,VB.NET
< http://www.mvps.org / dotnet>



In the setup project select "File System on Destination Computer" and
choose "Add Special Folder..." from the context menu.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>



*" John" <乔** @ nospam.infovis.co.uk> scripsit:
* "John" <jo**@nospam.infovis.co.uk> scripsit:
谢谢。一个相关的问题;如何处理应用程序需要显式路径到某些类型的文件的事实;访问数据库,word / e ->
模板,配置文件?开发和安装路径通常是不同的,如何根据应用程序的预期来考虑文件位置的变化?
Thanks. A related question; How to deal with the fact that the application
needs explicit paths to certain types of files; acess database, word/e-mail
templates, config files? The development and installation paths are normally
different, how to account for change in location of files against what is
expected by app?




你必须在您的应用程序中使路径动态化。

安装的文件在哪里?


-

Herfried K. Wagner

MVP· VB Classic,VB.NET

< http://www.mvps.org/dotnet>



You will have to make the paths dynamic in your application. Where are
the files installed?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>


这篇关于选择安装文件位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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