[prev in list] [next in list] [prev in thread] [next in thread]
List: nsis-bugs
Subject: [NSIS-Bugs] [ nsis-Bugs-2778824 ] SectionIn and SetCurInstType
From: "SourceForge.net" <noreply () sourceforge ! net>
Date: 2009-04-22 17:51:47
Message-ID: E1Lwgbr-0002f7-Ls () h45xhf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]
Bugs item #2778824, was opened at 2009-04-22 17:51
Message generated for change (Tracker Item Submitted) made by davidnewcomb
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=373085&aid=2778824&group_id=22049
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: David Newcomb (davidnewcomb)
Assigned to: Nobody/Anonymous (nobody)
Summary: SectionIn and SetCurInstType numbers don't match
Initial Comment:
Version: MakeNSIS v2.43
InstType indexes number from 1 which fits with SectionIn.
However SetCurInstType numbers from zero.
This is a numeric mis-match and therefore a bug; that is, the same number refers to \
different installation types when plugged into different functions referring to the \
same object (sections).
Example:
;====================
!define APP_NAME 'InstTypeBug'
!include MUI.nsh
name ${APP_NAME}
outfile '${APP_NAME}.exe'
InstallDir 'c:\tmp\${APP_NAME}'
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_LANGUAGE "English"
InstType "Install App1"
InstType "Install App2"
InstType "Extract"
InstType /NOCUSTOM
# Nummerical position count of install options
!define INSTTYPE_A1 1
!define INSTTYPE_A2 2
!define INSTTYPE_EXTRACT 3
Function .onInit
SetCurInstType ${INSTTYPE_A2}
FunctionEnd
Section "In Both" sec_both
SectionIn ro ${INSTTYPE_A1} ${INSTTYPE_A2}
SectionEnd
Section "In A1" sec_a1_only
SectionIn ro ${INSTTYPE_A1}
SectionEnd
Section "In A2" sec_a2_only
SectionIn ro ${INSTTYPE_A2}
SectionEnd
;====================
If you run the script, "Extract" is selected as the installation type instead of \
"Install App2" however all the sections have been placed in the correct Installation \
Type.
I tried numbering the installation types from zero but SectionIn barfs if section is \
less than 1.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=373085&aid=2778824&group_id=22049
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
NSIS-Bugs mailing list
NSIS-Bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nsis-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic