View Single Post
Old 12th April 2018, 07:00   #1
OliverM
Junior Member
 
Join Date: Apr 2018
Posts: 6
Create shortcut optionally by commandline

Hi,

I try to add a command line option to enable Shortcut Creation in my NSIS script - but it's not working as expected.

I use the SHOWREADME options to show the checkbox in the last page of the installation wizard - and add the following line to Init function

code:

Function .onInit

${GetOptions} $CMDLINE "/NoShortcut" $commandLineNoShortcut
${If} $commandLineNoShortcut == "=1"
!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
${EndIf}



But it seems that the command

code:
!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED


do not work at this part of the script - the checkbox is always checked! Also if if use the checked command line option - how can I customize my script that it use my command line option? Can I set the value for MUI_FINISHPAGE_SHOWREADME_NOTCHECKED?

Thanks in advance
Oliver
OliverM is offline   Reply With Quote