Talk:Count how many times your installer package has been executed

From NSIS Wiki
Jump to navigationJump to search

Counting total installations of package globally

I'm thinking of using NSISdl together with a server-side script (most likely written in PHP) to count installations the same way the Winamp installer does (I know it's Winamp.exe which does it in that case).

The PHP script should be easy to write. Just increments a counter in a data file (or maybe even a mySQL DB) and sends back an INI file which can be read by NSIS's ini file functions. It would be started at the end of install and present the count in the finish page of the Modern UI based installer (easy to modify ioSpecial.ini in a pre function).

So what do you think? -- Saivert 12:48, 30 Jun 2005 (PDT)