windowsinstallationautorundvd

Autorun.inf cannot deal with the sub-folders with space in their folder name?


I am trying to use an autorun.inf to run my executable file under a sub-folder with space in its folder name. Like this:

H:\
    autorun.inf
    FOLDER NAME 1
        file.exe
    FOLDER NAME 2
        some other stuffs

If there's no space in the folder name, it works well. But if there are some, it's not work for me.

Is this a restrict? or I am doing something wrong?

My autorun.inf:

[autorun]
open=FOLDER NAME 1\Setup.exe
icon=FOLDER NAME 1\Setup.exe

Solution

  • With some trials I have found that pairs of double quotes are needed. Sounds strange though.

    open=""FOLDER NAME 1\Setup.exe""