Prev Previous Post   Next Post Next
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
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
command line options, nsis, shortcut

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