Attach Autorun.inf to setup
-
Hi experts, there is an application for which I created a setup project in Visual Studio 2008 Standard Edition. The setup is to be burnt onto CD. After being inserted in a CD drive, setup shall start automatically. I created an "Autorun.inf" that should be in the CD root directory along with the setup.exe. I can manually copy it there before burning the CD, but I would prefer it to be copied automatically during setup project build. How can I make a file to be copied to setup project's bin\release directory (Not the application directory but the one with setup.exe, setup.msi, DotNetFX and WindowsInstaller3_1)? Richard MacCutchan told me to set "build properties to custom and use a copy statement which is executed during the project build process." I added my "Autorun.inf" file to the setup project, but haven't found such a property in its properties list.
Ciao, luker
-
Hi experts, there is an application for which I created a setup project in Visual Studio 2008 Standard Edition. The setup is to be burnt onto CD. After being inserted in a CD drive, setup shall start automatically. I created an "Autorun.inf" that should be in the CD root directory along with the setup.exe. I can manually copy it there before burning the CD, but I would prefer it to be copied automatically during setup project build. How can I make a file to be copied to setup project's bin\release directory (Not the application directory but the one with setup.exe, setup.msi, DotNetFX and WindowsInstaller3_1)? Richard MacCutchan told me to set "build properties to custom and use a copy statement which is executed during the project build process." I added my "Autorun.inf" file to the setup project, but haven't found such a property in its properties list.
Ciao, luker
You can use a "post build event" to copy the file, the build event options are in your project properties. The build events are just typed in as if they were being executed from the cmd prompt (you can have more than one). Alternatively, you can make a simple script that'll set up the cd for you and even do the cd burning outside of your dev environment.