l_d_allan
12th December 2005 16:19 UTC
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.
l_d_allan
12th December 2005 16:50 UTC
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
kichik
13th December 2005 17:24 UTC
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?
l_d_allan
13th December 2005 23:30 UTC
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.
kichik
15th December 2005 17:12 UTC
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.
l_d_allan
19th December 2005 21:57 UTC
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.
kichik
23rd December 2005 13:10 UTC
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.
l_d_allan
24th December 2005 13:06 UTC
I installed ver 2.12 and the script is working ok ... probably operator error on my part. Thanks for you help (and patience)