Archive: 2.11 and components problem?


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.


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


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?


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.

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.


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

http://cleanspeech.sf.net/misc/MyApp...Setup_beta.zip

Thanks for your help on this.


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.


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