Archive: Is there a way to dynamically change the start shortcut from the finish_page ?


Is there a way to dynamically change the start shortcut from the finish_page ?
Depending on the selected component of my setup I need to display (or not) a start shortcut within my finish page.
For now it is always displayed:

!define MUI_WELCOMEFINISHPAGE_BITMAP "${IMAGES_FOLDER}\Wizard.bmp"
!define MUI_FINISHPAGE_RUN "$INSTDIR\myprog.exe"
!define MUI_FINISHPAGE_RUN_PARAMETERS "/arg"
!define MUI_FINISHPAGE_RUN_TEXT $(FINISHPAGE_START_CONFIG)

!define MUI_FINISHPAGE_LINK $(FINISHPAGE_VISIT_WEBSITE)
!define MUI_FINISHPAGE_LINK_LOCATION "http://www.mywebsite.com/"

but I don't know how to display the finish page without any program shortcuts depending on my coponent selection...


You'd need to remove the INI section with DeleteINISec. The INI file is $PLUGINSDIR\ioSpecial.ini
Run the installer and when you get to the finish page, check the %TEMP% folder for a ns*.tmp folder which will contain the INI file. You can then open it to find out which INI section needs to be removed.
You can use the SectionFlagIsSet macro from Sections.nsh or ${SectionIsSelected} in LogicLib.nsh

-Stu


Thx a lot it's working perfectly !