fgroup
9th June 2005 22:09 UTC
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?
kichik
10th June 2005 10:26 UTC
Yes, you can do it with NSIS. Use FileWrite, RegWriteStr or WriteINIStr.
fgroup
10th June 2005 10:54 UTC
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?
kichik
10th June 2005 11:00 UTC
You can read it from the setup file using FileRead. To get the path to setup.exe use this FAQ item.
fgroup
10th June 2005 12:29 UTC
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!