Possible bug in 2.45 !searchparse
I have a script that works fine in 2.44 and fails on a call to !searchparse after upgrading to 2.45. I don't remember the exact error message because I downgraded back to 2.44 to double check, and it compiled just fine on 2.44, but it was something about the search token was not found in the file. Here are the script and the text file it is parsing, both from the beginning until the relevant line and then one line after.
!define BUILDSCRIPTVERSION `version="1.3.4.0"`
!searchparse /file AppInfo.cfg `AppInfoVersion="` CFG_VER_MAJOR `.` CFG_VER_MINOR `.` CFG_UPDATE `.` CFG_REVISION `"`
!searchparse ${BUILDSCRIPTVERSION} `version="` SCRIPT_VER_MAJOR `.` SCRIPT_VER_MINOR `.` SCRIPT_UPDATE `.` SCRIPT_REVISION `"`
!if "${CFG_VER_MAJOR}.${CFG_VER_MINOR}" != "${SCRIPT_VER_MAJOR}.${SCRIPT_VER_MINOR}"
!error "Incompatible AppInfo.cfg file. Please use AppInfo.cfg version ${SCRIPT_VER_MAJOR}.${SCRIPT_VER_MINOR}.${SCRIPT_UPDATE}.x"
!endif
!if ${CFG_UPDATE} < ${SCRIPT_UPDATE}
!error "Incompatible AppInfo.cfg file. Please use AppInfo.cfg version ${SCRIPT_VER_MAJOR}.${SCRIPT_VER_MINOR}.${SCRIPT_UPDATE}.x"
!endif
!searchparse /file AppInfo.cfg `LauncherSourceFile="` PROGRAMSCRIPT `"` <<<HERE IS WHERE IT FAILS
!searchparse /file AppInfo.cfg `MainAppEXE="` APPEXE `"`
. . .
It fails on parsing `LauncherSourceFile="` so apparently it is making it through `AppInfoVersion="` just fine. Here's the text file it is parsing:
AppInfoVersion="1.3.4.0"
#***REQUIRED LINES***
AppName="PortableApps Launcher Wizard"
LauncherSourceFile="PALauncherWizard.nsi"
#MainAppEXE is the exe of the actual app, not the launcher
#Include its relative path within the U3 Package
#i.e. Device\MainAppEXE.exe
MainAppEXE="Device\PALauncherWizard.exe"
. . .
As I said, it compiles just fine with 2.44, but not with 2.45. I noticed in the 2.45 changelog that there was a bugfix for searchparse, so perhaps that broke something else...
If this is the wrong place to post this, please just point me in the right direction.