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.' ) } ?>