Archive: Bug in 1.9a2?


Bug in 1.9a2?
Hi Justin, after defining NSIS_COMPRESS_WHOLE in NSIS 1.9a2 and building some installers, I recognize that there's always the error "error reading installer info block" when executing my installers.

I think the g_db_offset in loadHeaders isn't set properly for #ifdef NSIS_COMPRESS_WHOLE.

~ Florian


Is this bug still with you for NSIS 1.9b?

What compiler (and compiler version) are you using?

Are you doing debug or release builds?

Do you have Zlib or Bzip2 enabled?

-Justin


Hi Justin,

the problem is (sometimes) still in NSIS 1.9b. I use the compiler that ships with MS VC++ 6.0 (CL.EXE). The problem only occurs when using NSIS_COMPRESS_USE_BZIP2 with NSIS_COMPRESS_WHOLE.

I changed the the defines in config.h to NSIS_COMPRESS_USE_BZIP2 and NSIS_COMPRESS_WHOLE - release build - the problem occurs.

Then I changed to NSIS_COMPRESS_USE_BZIP2 without NSIS_COMPRESS_WHOLE - release build - all worked fine.

Then I switched back to NSIS_COMPRESS_USE_BZIP2 with NSIS_COMPRESS_WHOLE - release build - and all worked fine.

Maybe a linker problem? I don't know if it's a bug or a compiler prob ...

~ Florian


Hi Justin,

it seems to work now. I recompiled it with the other compression defines and all went fine. I can't reproduce the err ... sorry for the confusion!

~ Florian


i got the same error but the only thing i had to do to fix this was click teh Rebuild All.. it seems like if you Change the compression method.. it hink mine was from using bzip2 back to gzip and just hitting F7 i got this error when i built my installer.. but going back and doing a Rebuild all fixed this.


Hi Justin,

I've found a bug in the php-script that generates .nsi-scripts on the nsis webpage.
The problem is that the script uses the "UninstallExeName"-command, which doesn't exist anymore. Is it possible to change this in WriteUninstaller?


Originally posted by FreeNsisTweaker
Hi Justin,

I've found a bug in the php-script that generates .nsi-scripts on the nsis webpage.
The problem is that the script uses the "UninstallExeName"-command, which doesn't exist anymore. Is it possible to change this in WriteUninstaller?
Thanks for noticing this. Fixed. :)

-Justin