Old 24th May 2022, 14:56   #1
Cran0g
Junior Member
 
Join Date: May 2022
Posts: 8
Optional Installation

Hi Folks,

Me, again!

I'm enjoying using NSIS and have (with Anders' help) been quite successful. I now have a little installation program which can install the main components of a compiler on to a target machine and set a couple of environment variables. I have tested the resultant compiler and all works just fine. Brilliant.

Now I want to add some optional files to the installation. So, I added another 3 sections underneath the SectionEnd of the one which was working well. These other fiels/directories are in the same directory as those I can successfully install, so there should be no access issues. I am using the "/o" option to the Section header.

Here's one of them:

Section /o "OpenSrc"
SectionIn 1 RO

SetOutPath "$INSTDIR"
; Put these file there
File /r OpenSrc
SectionEnd


These optional items appear in the "Choose Component" dialog when I run the installer, but the check boxes are greyed-out and cannot be selected to indicate I want to install them.

Here's what it looks like:



I'd be grateful for any help.

Many thanks
Cran0g is offline   Reply With Quote
Old 24th May 2022, 17:43   #2
Cran0g
Junior Member
 
Join Date: May 2022
Posts: 8
Optional Installation

Hi Again,

Please disregard my ramblings. I suddenly realised that I had left the "RO" on the SectionIn. Having deleted it, everything worked as expected.

I'm an idiot. I admit it.
Cran0g 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