Archive: problem with finishpage-link


problem with finishpage-link
Hello, it's me again.

I got a little problem with the finishpage-link. I think it's not a NSIS-failure, but maybe you can help.

Example:
The target of the link is a pdf-file on the user's hdd. If there's no pdf-reader installed on the user's system, nothing happens. In the decription of the link isn't mentioned, that a pdf should open, so the user thinks that the link is dead or something.

Sure it isn't your problem (we should unpack a txt-file or stuff), but maybe you can help me to show an error-message or something like that? Or how to modify the onclick-event?

mfg,

Huette.

P.S.: Thanks for your great support the past months!


To sort this out you'd need to add the NOTIFY flag to the link field in $PLUGINSDIR\ioSpecial.ini with WriteINIStr. Then in your MUI_PAGE_CUSTOMFUNCTION_LEAVE FinishLeave function, you check the Settings > State of the ioSpecial.ini file to see if the user has clicked on the link and in there you can check if Adobe Reader is installed (somehow).

Or you could find out if Adobe Reader is installed and then delete the link field before displaying the finish page.

-Stu


semi-safe way of checking whether there's a PDF reader installed is by checking HKEY_CLASSES_ROOT for the 'pdf' file extension. If it's there, some program is likely associated with the extension, and that's likely to be a reader/editor/thing.


Originally posted by Afrow UK
Then in your MUI_PAGE_CUSTOMFUNCTION_LEAVE FinishLeave function, you check the Settings > State of the ioSpecial.ini file...
That means that i can show a message after closing the installer like "You tried to open..., but no pdf-Reader is installed...", doesn't it? That would be better than showing nothing, but it would be great if i could show it directly after the click on the link. I wonder why the standard-windows-"Choose a program to open the (unknown) file"-message (don't know the English text exactly) doesn't appear. Isn't that possible?

My alternative would be: check if pdf-reader is installed (like Animaether described),unpack a txt-file if it is not and direct the link to the text-file.

But txt-files aren't that nice. A "please install acrobat reader"-message would be nicer.

thanks so far,

huette

You can modify the Modern UI to call a function when the Finish page link is clicked (@Joost: hint hint) but the ExperienceUI supports this already.

-dandaman32


Originally posted by dandaman32
You can modify the Modern UI to call a function when the Finish page link is clicked
Hmm...sounds complicated...don't know where i should start. Maybe i should invest more time, but i think i ain't got enough of it here on work. Or isn't it that difficult? A few further informations would be great. Or where can i read about it?

The ExperienceUI? Never heard about it. Sounds good, but i've done Setups/Updates for several products and i don't want to convert(?) them all to ExperienceUI.

Maybe my wishes overtop my commitment. :rolleyes: