包括带有 vb.net 安装的文件 [英] including files with vb.net installation

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

问题描述

当我构建安装文件时,我需要包含一些 jpeg,我需要将它们保存到特定位置

when i am building the installation file i need to be including some jpegs and i need them to be saved to a specific location

  1. 如何在安装中包含 jpeg?
  2. 如何将它们提取到特定目录?

推荐答案

您应该通过应该添加到现有项目中的安装项目来做到这一点.

You should do that via Setup Project that should be added to your existing project.

创建后,打开目标机器上的文件系统"上的上下文菜单,选择添加特殊文件夹"->自定义文件夹"

After you created it, open context menu on "File system on target machine", select "Add special folder" -> "Custom folder"

下一步是添加您的 jpeg 文件.右键单击您的新文件夹并选择添加文件".选择所有 jpeg.

Next step is to add your jpeg files. Right click on your new folder and select "Add file". Select all your jpegs.

现在,您需要选择带有 jpegs 的文件夹所在的位置您需要打开该新文件夹的属性并为 DefaultLocation 属性选择适当的目录.

Now, you need to select the location where that folder with jpegs will be You need to open properties for that new folder and select appropriate directory for DefaultLocation property.

请记住,将文件存储在已安装的应用程序中是一种很好的做法.这就是 DefaultLocaiton 不允许您只输入您想要的任何自定义路径的原因.您将只有有限的文件夹列表,但这应该足够了.

Keep in mind, that its good practice to store your files within the installed application. That's why the DefaultLocaiton does not allow you to just enter any custom path you want. You will have only limited list of folders, but that should be enough.

编译项目后,它将为您创建一个包含所有内容的安装文件

After you compile the project it will create you an installation file that will contain all your stuff

这篇关于包括带有 vb.net 安装的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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