We are working on converting the wiki to a static website controlled by markdown files in https://github.com/nsis-community. You can already see there how plug-ins will be posted. The end-user interface will still be a website but with a fresh coat of paint. Come meet us at Discord to talk about it.
Show installation success on web page
From NSIS Wiki
Jump to navigationJump to search
| Author: pfluger (talk, contrib) |
Description
You can create HTTP cookies with one single line of code in your installation script. You may use this to detect from your web pages whether installation of your software product has succeeded.
The Code
System::Call "wininet::InternetSetCookie(t,t,t) (t'http://www.domain.com', t'', \ t'softwareinstalled = true; expires = Fri, 31-Dec-2004 00:00:00 GMT')"
Using PHP for example you can now easily detect whether your software has already be installed.
<?php if( $_COOKIE['softwareinstalled'] == 'true' ) { echo( 'Software has been successfully installed.' ) } else { echo( 'Please download and install our software.' ) } ?>