Search code examples
c++cdautoplay

How do I have an icon displayed when a setup CD is autoplayed in Windows


I have a setup CD to install a visual studio C++ application I made. It has three files: setup.exe, AUTORUN.INF, and app.msi. When I insert the CD the Windows AutoPlay popup shows a generic icon. How do I have my own icon displayed for setup.exe. I also want this for the drive icon after I insert the CD, I think they're related.


Solution

  • I hate autostart.

    In AUTORUN.INF, you can specify the drive icon just next to the setup program:

    [AutoRun]
    open=setup.exe
    icon=*youricon*.ico