Archive: Adding ID to setup


Adding ID to setup
Hi!

I have setup on server.
If someone try to download this setup my script will adds a random number (ID) to the tnd of this file (for example - to the end of the file).

During installation I need to place this ID into registry or into file - where my installed program can find this ID and use for web links: Home page:
http://www.fgroupsoft.com/?ID=MyID

Can I do it with NSIS?
How?


Yes, you can do it with NSIS. Use FileWrite, RegWriteStr or WriteINIStr.


Originally posted by kichik
Yes, you can do it with NSIS. Use FileWrite, RegWriteStr or WriteINIStr.
Ok.
But how I can access to this ID?
Is there a variable or function to get this string from setup.exe?

You can read it from the setup file using FileRead. To get the path to setup.exe use this FAQ item.


Originally posted by kichik
You can read it from the setup file using FileRead. To get the path to setup.exe use this FAQ item.
Great!
Thanks!