Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Attach Autorun.inf to setup

Attach Autorun.inf to setup

Scheduled Pinned Locked Moved Visual Studio
questioncsharpvisual-studiocomtools
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lukeer
    wrote on last edited by
    #1

    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

    A 1 Reply Last reply
    0
    • L lukeer

      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

      A Offline
      A Offline
      Albert Holguin
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups