![]() |
#1 |
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 |
![]() |
![]() |
![]() |
#2 |
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. |
![]() |
![]() |
![]() |
#3 | |
Junior Member
Join Date: Dec 2022
Posts: 1
|
Optional Installation
Quote:
Never say to yourself that you'r an idiot man. Do not judge yourself in these kind of categories. Best wishes. |
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|