View Single Post
Old 7th August 2020, 11:10   #2
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 891
I guess you could do this with a components page and relevant sections instead:

PHP Code:
!include "Sections.nsh"

RequestExecutionLevel user
ShowInstDetails show

Page Components
Page InstFiles

SectionGroup 
"File associations for mrViewer" SecAssoc

Section 
".tiff (TIFF file)"
  
DetailPrint ".tiff (TIFF file)"
SectionEnd

Section 
".tga (Targa file)"
  
DetailPrint ".tga (Targa file)"
SectionEnd

Section 
".bmp (Windows/OS2 Bitmap)"
  
DetailPrint ".bmp (Windows/OS2 Bitmap)"
SectionEnd

SectionGroupEnd

Function .oninit
  SectionGetFlags 
${SecAssoc} $0
  IntOp 
$$| ${SF_EXPAND}
  
SectionSetFlags ${SecAssoc} $0
FunctionEnd 

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote