Menu

#1073 SearchParse fails in 3.0a0

2.0 Series
closed-fixed
nobody
None
5
2013-06-22
2013-06-17
No

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

Discussion

  • Eric Lawrence

    Eric Lawrence - 2013-06-17

    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.

     
  • Anders

    Anders - 2013-06-22

    Already fixed in SVN

    • status: open --> closed-fixed
     

    Last edit: Anders 2013-06-22

Log in to post a comment.