سؤال

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!

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top