I've been using !searchparse for years (most recently using v2.46) but it no longer works in 3.0a0 as it did before.
; Get the Fiddler version # out of AssemblyInfo.cs
!searchparse /file ..\application\assemblyinfo.cs '[assembly: AssemblyVersion("' VER_FIDDLER '"')
Here's what AssemblyInfo.cs contains:
[assembly: AssemblyVersion("2.4.4.7")]
The AssemblyInfo.cs file is ASCII; removing the UTF-8 BOM from the top doesn't help. Adding Unicode True to the install NSI didn't help.
Output:
MakeNSIS v3.0a0 - Copyright 1999-2013 Contributors
See the file COPYING for license details.
Credits can be found in the Users Manual.
Processing config: C:\src\NSIS3\nsisconf.nsh
Processing script file: "FiddlerCap.nsi" (ACP)
!searchparse: starting string "[assembly: AssemblyVersion("" not found in file!
Error in script "FiddlerCap.nsi" on line 10 -- aborting creation process
Changing the script command from
!searchparse /file ..\application\assemblyinfo.cs
'[assembly: AssemblyVersion("' VER_FIDDLER '"')
to:
!searchparse /ignorecase /file ..\fiddlercap2\properties\assemblyinfo.cs
'[assembly: AssemblyVersion("' VER_FIDDLER '")'
Whereby the closing parenthesis is inside the single-quotes appears to resolve the script error.
However, the original line of script didn't cause problems with the 2.46 installer, so this is definitely a change in behavior.
Already fixed in SVN
Last edit: Anders 2013-06-22