将安装项目刻录到 CD

发布于 2024-10-10 13:36:40 字数 416 浏览 2 评论 0原文

我以前从未将 Visual Studio 程序刻录到 CD 上。我已经用我的所有程序文件创建了一个安装项目,并且运行良好。我是否只需将以下安装程序文件刻录到 CD 上并将其交给某人?

安装程序是一个文件夹,其中包含:

-DotNetFX35(文件夹):包含我的程序的 .net 要求。

-WIndowsInstaller3_1(文件夹):WindowsInstaller-KB893803-v2-x86.exe

-setup.exe

-My Installer.msi

抱歉,这个问题看起来很简单。我正在仔细检查,因为我有一张 CD 和一个不耐烦的雇主。

谢谢!

I've never burnt a visual studio program to a CD before. I've made a setup project with all my program files, and it works fine. Do I simply need to burn the following installer files onto the CD and give it to someone?

The installer is a folder containing:

-DotNetFX35 (Folder): Contains .net requirements for my program.

-WIndowsInstaller3_1 (Folder): WindowsInstaller-KB893803-v2-x86.exe

-setup.exe

-My Installer.msi

Sorry for the seemingly easy question. I'm double checking as I have one CD and an impatient employer.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

温馨耳语 2024-10-17 13:36:41

如果您希望自动运行正常工作,您将需要添加 autorun.inf。将安装文件夹的内容放在磁盘根目录下,在磁盘根目录下创建一个名为“autorun.inf”的简单文本文件,并添加以下内容:

[autorun] 
open=setup.exe 

这将指示操作系统在安装时运行 setup.exe磁盘已插入(并同意)。

您还可以使用 autorun.inf 执行其他技巧。正如许多人在评论中提到的,测试这一点的最佳方法是创建 ISO 并对其进行测试,或者购买一堆空白磁盘。这些天它们非常便宜。

如果您不关心自动运行,那么您可以在磁盘本身上放置任何内容,这只是内容,用户只需要自己进入内容并单击设置即可。

You will need to add an autorun.inf if you want autorun to work. Put the contents of the install folder at the root of the disk, create a simple text file called "autorun.inf" at the root of the disk and add the following contents:

[autorun] 
open=setup.exe 

This will instruct the operating system to run setup.exe when the disk has inserted (and consented to it).

There are other tricks you can do with autorun.inf too. As many have mentioned in the comments, the best way to test this is by creating an ISO and testing it, or buying a stack of blank disks. They are pretty cheap these days.

If you don't care about auto run, then you can put anything on the disk itself, it's just content, the user would just need to go into the contents himself and click setup.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文