我正在使用 IfFileExists 函数,但我认为它只包含跳转后的第一行。我怎样才能做类似于 C 的事情,比如 {..../.../....}?!
IfFileExists "$PROGRAMFILES\InduSoft Web Studio v7.0\Bin\RunStartUp.exe" StartUpExists PastStartUpExists
StartUpExists:
StrCpy $Text "$PROGRAMFILES\InduSoft Web Studio v7.0\Bin\RunStartUp.exe"
PastStartUpExists:
nsDialogs::Create 1018
Pop $Dialog
nsDialogs::SelectFileDialog open "$PROGRAMFILES\InduSoft Web Studio v7.0\Bin\RunStartUp.exe" "*.exe"
Pop $Text
${NSD_CreateText} 0 13u 100% -13u $Text
Pop $Text
${NSD_CreateText} 0
${NSD_GetText} $Text $0
CreateShortCut "$SMPROGRAMS\Advanlab\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
CreateShortCut "$SMPROGRAMS\Advanlab\Uninstall.lnk" "$INSTDIR\uninst.exe"
CreateShortCut "$SMPROGRAMS\Advanlab\Advanlab.lnk" "$0"
CreateShortCut "$DESKTOP\Advanlab.lnk" "$0"