Old 19th April 2007, 18:18   #1
grizadams73
Junior Member
 
Join Date: Apr 2007
Posts: 4
Exclamation Library.nsh bug

While trying to register an OCX file, I encountered a bug in Library.nsh. It only manifested when I used the InstalLib macro with REBOOT_*, and not with NOREBOOT_*. The code which causes the problem is in the macro __InstallLib_Helper_InitSession, around line 51:
code:

!define __InstallLib_Helper_InitSession_Label "${__FILE__}${__LINE__}"


Normally, this works, but my installer file is named 3D+PRO.NSI, and labels cannot start with numbers. A fix is to change the above line to:
code:

!define __InstallLib_Helper_InitSession_Label "LBL_${__FILE__}${__LINE__}"


The difference is the "LBL_" prefix. With this change, the code works with installers starting with a number (or any other character disallowed as an initial character in a label).
grizadams73 is offline   Reply With Quote
Old 19th April 2007, 18:23   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Thanks, fixed. Please submit a bug report in the future.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump