Old 30th January 2004, 08:45   #1
Joke
Junior Member
 
Join Date: Jan 2004
Posts: 4
Fetching Internet Explorer version

Hi,

This is my first time building an installer with NSIS and I'm completely stuck at this point.
I'd like to read the IE version from the registry and i searched this forum for examples.
Now i got this:

ReadRegStr $IEVERSION HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" "User Agent"

But when I want to compile i get an error on that line:

Usage: ReadRegStr $(user_var: output) rootkey subkey entry
root_key=(HKCR|HKLM|HKCU|HKU|HKCC|HKDD|HKPD)
Error in script "C:\Documents and Settings\Unknown User\Desktop\Installer\test.nsi" on line 49 -- aborting creation process

Any help how to fix?
Joke is offline   Reply With Quote
Old 30th January 2004, 10:27   #2
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,354
Send a message via ICQ to deguix
I think this is not the line with problems, try to find it, or attach the script.

My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Old 30th January 2004, 10:33   #3
Joke
Junior Member
 
Join Date: Jan 2004
Posts: 4
here's the full script.

Thx in advance
Joke is offline   Reply With Quote
Old 30th January 2004, 10:35   #4
Joke
Junior Member
 
Join Date: Jan 2004
Posts: 4
good this time.
Attached Files
File Type: nsi test.nsi (2.9 KB, 103 views)
Joke is offline   Reply With Quote
Old 30th January 2004, 10:41   #5
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,354
Send a message via ICQ to deguix
You forgot to define the variable $IEVERSION first. Use the "Var" command out of Sections and Functions before using the variable:

code:
Var IEVERSION


But is recommended to use the original $1-$9, $R1-$R9 variables.

My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Old 30th January 2004, 10:52   #6
Joke
Junior Member
 
Join Date: Jan 2004
Posts: 4
Thx, guess i didn't read all documentation that well
Works like a charm now
Joke 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