Archive: How to cose installation after clicking on a link


How to close installation after clicking on a link
Hi,

I added a link with MUI_FINISHPAGE_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,
Mike


I'm not sure, but you could set the install to autoclose(i.e. no finish page), and just do a shell open of that link as one of the last things in the installation. That way as soon as the installation finished it automatically opens the page and closes the installer. Maybe that will give you the affect you are looking for, but I realize that's not exactly what you are asking.


If you are using MUI(1), you could probably have MUI_PAGE_CUSTOMFUNCTION_PRE for the finish page clear the state value and add the notify flag for the link control, then handle the link click yourself in MUI_PAGE_CUSTOMFUNCTION_LEAVE