Menu

#557 NSIS compiler issues erroneous warning on uninstall sections

closed-fixed
5
2007-01-19
2007-01-10
Anonymous
No

Compile this script:

Name "Test"
OutFile "Test.exe"
Page instfiles
Function un.something
FunctionEnd
Section
SectionEnd

You will get a compiler warning that an uninstall section was found but WriteUninstaller was not used.

In fact, an uninstall _function_ was found, which is perfectly common.

Submitter: amayo (at) divxcorp [dotcom]

Discussion

  • Anonymous

    Anonymous - 2007-01-14

    Logged In: YES
    user_id=970495
    Originator: NO

    hmm, common?

    it is quite uncommon, that you code uninstaller functions without even use an uninstaller :D

     
  • Anonymous

    Anonymous - 2007-01-14

    Logged In: YES
    user_id=970495
    Originator: NO

    ok, found it:

    build.cpp, lines 2211 to 2217:

    if (ubuild_entries.getlen())
    {
    if (!uninstaller_writes_used)
    {
    warning("Uninstall section found but WriteUninstaller never used - no uninstaller will be created.");
    return PS_OK;
    }

    the problem is, that only the length of the uninstall code is checked, not the type of it.

    the message should be changed to something like
    "Uninstall script code found but ..."

     
  • Amir Szekely

    Amir Szekely - 2007-01-19
    • status: open --> closed-fixed
     
  • Amir Szekely

    Amir Szekely - 2007-01-19

    Logged In: YES
    user_id=584402
    Originator: NO

    Thanks, fixed.

     

Log in to post a comment.