Skip to content
⌘ NSIS Forum Archive

Adding ID to setup

5 posts

fgroup#

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:


Can I do it with NSIS?
How?
fgroup#
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#
You can read it from the setup file using FileRead. To get the path to setup.exe use this FAQ item.
fgroup#
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!