Skip to content
⌘ NSIS Forum Archive

Close installation after clinking on a link

4 posts

mayPol#

Close installation after clinking on a link

Hi,

I added a link to the finish page. How can I close the installation after user pressed on the link ? For now, the link is opened, but the installation also remains opened.

Thanks,
May
mayPol#
Well, sorry for not understanding 😕 , but where exactly should I put the Quit? What I have is a MUI_PAGE_CUSTOMFUNCTION_PRE function where I set the link and a main section.

Thanks.
zeeh3#edited
You can set at MUI_PAGE_CUSTOMFUNCTION_PRE function:

!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field X" "Flags" "NOTIFY" ;X=number of Link Field 
and Quit command should be at MUI_PAGE_CUSTOMFUNCTION_SHOW:

  !insertmacro MUI_INSTALLOPTIONS_READ $0 "ioFile.ini" "Settings" "State"
  StrCmp $0 X link nolink ;X=number of Link Field
  link:
  Quit
  
  nolink: