Burn setup project to CD

筅森魡賤 提交于 2019-12-11 06:16:10

问题


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!


回答1:


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.



来源:https://stackoverflow.com/questions/4584967/burn-setup-project-to-cd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!