Archive: Problems with spaces withint directory


Problems with spaces withint directory
This works fine:

SectionGroup
..
..
Section ".NET Framework 2.0" Client_Framework

SetOutPath "$INSTDIR"

;FILES HERE...
File /r Framework\

ExecWait '"$INSTDIR\Framework\dotnetfx.exe"'

RMDir /r "$INSTDIR\Framework"

SectionEnd

SectionGroupEnd
Section creates folder $INSTDIR\Framework, but if i change directory names to somehting like "MS Framework", i can't make it work. It just don't create the folder and put the dotnetfx.exe just in $INSTDIR or prints error about "nothing found".

I tried "File /r Framework\" 'File /r Framework\' '"File /r Framework\"'. How should i do it? :)

P.S.yesteraday i posted other thread here (selecting node according to attribute value). May it be the same problem with quotes? Well, I use Notepad++ and "ANSI" encoding.

So, any sugestions?

SetOutPath "$INSTDIR"
->
SetOutPath "$INSTDIR\Framework"

Stu


Originally posted by Afrow UK
SetOutPath "$INSTDIR"
->
SetOutPath "$INSTDIR\Framework"

Stu
But this works fine:
Section "Open Office" Client_Office

SetOutPath "$INSTDIR"

;FILES HERE...
File /r OpenOffice\

ExecWait '"$INSTDIR\OpenOffice\OOo_2.2.0_Win32Intel_install_en-US.exe"'

RMDir /r "$INSTDIR\OpenOffice"

SectionEnd
And if I have spaces within directory name then i MUST write SetOutPath everytime to work like this:
Section ".NET Framework 2.0" Client_Framework

SetOutPath "$INSTDIR\MS .NET Framework 2.0"

;FILES HERE...
File /r "MS .NET Framework 2.0\"

SetOutPath "$INSTDIR"

ExecWait '"$INSTDIR\MS .NET Framework 2.0\dotnetfx.exe"'

SetOutPath "$INSTDIR"

RMDir /r "$INSTDIR\MS .NET Framework 2.0"

SectionEnd
Without 'SetOutPath "$INSTDIR"' catalog isn't removed and file isn't launched. I don't get it.

Thank you, Afrow UK, for your help :)

Perhaps it's that \ on the end in your File instruction.

Stu


Originally posted by Afrow UK
Perhaps it's that \ on the end in your File instruction.

Stu
But section "Oppen Office" also got "\" and works fine.

Maybe I don't understand your suggestion?