Announcement

Collapse
No announcement yet.

2.11 and components problem?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 2.11 and components problem?

    I've got a script that involves an optional component ... it has stopped working with 2.11. I reverted to 2.10 and it works ok.

    Is there a known problem with this, or a work-around, or something changed from 2.10 to 2.11? User error?

    If appropriate, I can strip down the script and attach.

  • #2
    More info ... this seems to only happen with the 8192 stringlen version of makensis

    Here is a sample script ... the optional WEB doesn't show up with 2.11-8192. It does show up with 2.10-8192 and 2.11-1024

    Name "MyApp"
    OutFile "MyAppStarterKitSetup_beta.exe"
    SetCompressor lzma
    CRCCheck on
    AutoCloseWindow true
    InstallDir "$PROGRAMFILES\MyApp"
    InstallDirRegKey HKLM SOFTWARE\MyApp "Install_Dir"

    ; Pages
    Page components
    Page instfiles

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    Section "MyApp (req s/w -- no modules)"
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    SectionIn RO
    SetOutPath $INSTDIR
    File MyApp.exe
    SectionEnd ; end the section

    Section "Optional: WEB"
    CreateDirectory $INSTDIR\MyApp\junk
    SectionEnd

    Comment


    • #3
      I tried compiling this with 2.11-8192 and it worked fine. Do you have anything in nsisconf.nsh? Can you attach a compiled installer as an example?
      NSIS FAQ | NSIS Home Page | Donate $
      "I hear and I forget. I see and I remember. I do and I understand." -- Confucius

      Comment


      • #4
        Thanks for your help on this.

        Can you attach a compiled installer as an example?
        I'm not sure what you are asking for, but I am attaching:
        MyAppStarterKitSetup_beta.exe

        This example doesn't actually use long strings over 1024 length ... the actual installer does, however .... but that doesn't seem to be part of what I am experiencing.

        Do you have anything in nsisconf.nsh?
        Just the "vanilla" version as installed from Feb, 2005.

        Comment


        • #5
          I'm asking for an example installer, compiled with 2.11, where I can see that the component doesn't show up. Your attachment didn't work, please try again.
          NSIS FAQ | NSIS Home Page | Donate $
          "I hear and I forget. I see and I remember. I do and I understand." -- Confucius

          Comment


          • #6
            ooops.... attachment was too large ... bigger than file size limit of 1 meg. Here is a link:



            Thanks for your help on this.

            Comment


            • #7
              Seems like you've mixed and matched makensis.exe and the Stubs folder. The data appended to the stub uses 8192 bytes long strings, but the stub treats them as though they were 1024 bytes long. When using a special build, you must copy over both makensis.exe and the Stubs folder as is.
              NSIS FAQ | NSIS Home Page | Donate $
              "I hear and I forget. I see and I remember. I do and I understand." -- Confucius

              Comment


              • #8
                I installed ver 2.12 and the script is working ok ... probably operator error on my part. Thanks for you help (and patience)

                Comment

                Working...
                X
                😀
                🥰
                🤢
                😎
                😡
                👍
                👎