Wednesday, January 6, 2010

NSIS (.nsi scripts) syntax highlighting feature request

Hello

Could the statement inside the back-tick quoted string in an ${If} ${Cmd}  condition also be highlighted ?

This condition is used like this in an NSIS installer script:

${If} ${Cmd} `MessageBox MB_YESNO|MB_ICONQUESTION "Install Visual C++ run-time redistributable components ?" ID_YES`
    GetTempFileName $R2
    File "/oname=$R2.exe" 'vcredist_x86.exe'
    ExecWait '"$R2.exe" /qb'
    Delete $R2
    Delete "$R2.exe"
${Else}
    DetailPrint "This application needs the Visual C++ redistributable components."
    DetailPrint "Please make sure you have the latest version of this components installed."
${EndIf}


You can see here that the MessageBox instruction is written inside a back-tick quoted string, as required by the ${Cmd} macro,
still it is a NSIS statement that could be highlighted for clear understanding.


Thank you,
Timothy Madden

No comments: