Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autorun an MSI file on CD

Does anyone have an example AUTORUN.INF which can launch an MSI installer automatically when the user inserts the CD.

I'm sure this can be done but I've been Googling around for ages and have not found any working solution.

UPDATE: I have an AUTORUN.INF similar to this but it won't launch the installer:

[autorun]
open=MyInstaller-1.0.0.msi
label=My CD Label
icon=MyIcon.ico
like image 756
Adam Pierce Avatar asked Nov 26 '08 05:11

Adam Pierce


People also ask

How do I make an autorun CD in Windows 10?

In the Control Panel, type DVD in the search box. Click on the Play CDs or other media automatically under the AutoPlay category. In the AutoPlay window, scroll down until you see the DVD category. Choose an action for all different types of the DVD media.


1 Answers

Try shellexecute= instead of open=

[autorun]
shellexecute=MyInstaller-1.0.0.msi
label=My CD Label
icon=MyIcon.ico
like image 86
Ray Avatar answered Sep 23 '22 08:09

Ray