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:
Can I do it with NSIS?
How?
Adding ID to setup
5 posts
Yes, you can do it with NSIS. Use FileWrite, RegWriteStr or WriteINIStr.
Originally posted by kichikOk.
Yes, you can do it with NSIS. Use FileWrite, RegWriteStr or WriteINIStr.
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 kichikGreat!
You can read it from the setup file using FileRead. To get the path to setup.exe use this FAQ item.
Thanks!