Search code examples
syntaxscriptingsyntax-errornsis

What is the right Syntax for SetOutPath in NSIS script?


i want to use SetOutPath, but I'm have problem with the Syntax,

can anyone tell me what I'm doing wrong?

Function InstallIbmGrpFiles

  SetOutPath $ibmGrpFolder

  File /r "/BuildFolder/ ${build.counter}/Bin/IBM_Report" 

FunctionEnd

Solution

  • Var ibmGrpFolder
    Section
    StrCpy $ibmGrpFolder "$programfiles\Ibm\Foo\Bar"
    SetOutPath $ibmGrpFolder
    DetailPrint "File xyz to $outdir" ; File /r xyz
    SectionEnd