Old 15th December 2006, 13:41   #1
phyxeaux3020
Junior Member
 
Join Date: Dec 2006
Location: Austin, TX!
Posts: 3
installer per user or tagged installation?

I am faced with a situation where I need to add a user ID to some installer at the server level. Ie, login and then get a signed installer to your bits.

I see two ways to do this, and was wondering about input.

a) build an installer for each bundle of content dynamically at the server level. (on linux, ming-gw cross compile per user bundle - server load issue).

b) tag the installer to fetch the unique bits, but that would require replacing strings in a compressed executable.

Any suggestions? Any other options?
phyxeaux3020 is offline   Reply With Quote
Old 15th December 2006, 14:02   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Append a unique ID to the installer. That won't disturb the CRC check, won't require handling compressed data and will be readable by the installer itself.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 15th December 2006, 14:17   #3
phyxeaux3020
Junior Member
 
Join Date: Dec 2006
Location: Austin, TX!
Posts: 3
How? Example?
phyxeaux3020 is offline   Reply With Quote
Old 15th December 2006, 14:20   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
How what? Reading a file? FileOpen, FileSeek, FileRead and FileClose. The wiki is filled with such examples, for instance:

http://nsis.sourceforge.net/Reading_...iting_in_files

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 15th December 2006, 14:21   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
There's even a complete example:

http://nsis.sourceforge.net/ReadCustomerData

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 15th December 2006, 14:31   #6
phyxeaux3020
Junior Member
 
Join Date: Dec 2006
Location: Austin, TX!
Posts: 3
Thanks! FYI, I will be doing this from cmd line, web server and linux.... (pretty easy at this point, thank you very much from the heart of Texas)
phyxeaux3020 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump