Autostart MSI file on CD

Does anyone have an example AUTORUN.INF that can run the MSI installer automatically when a user inserts a CD.

I am sure that this can be done, but I searched Google many times and did not find any working solution.

UPDATE: I have AUTORUN.INF similar to this, but it does not start the installer:

[autorun] open=MyInstaller-1.0.0.msi label=My CD Label icon=MyIcon.ico 
+4
source share
2 answers

Try shellexecute = instead of open =

  [autorun]
 shellexecute = MyInstaller-1.0.0.msi
 label = My CD Label
 icon = MyIcon.ico 
+5
source

I can answer my question. After reading articles related to Ray, I created the following AUTORUN.INF that works:

 [autorun] shellexecute=MyInstaller-1.0.0.msi label=My CD Label icon=MyIcon.ico 

The AUTORUN.INF file is placed in the root directory of the CD along with the icon file and the msi file.

0
source

All Articles