Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 7th July 2008, 23:28   #1
-Gamah
Junior Member
 
Join Date: Jul 2008
Posts: 6
Setting a reg key with variables? And calling with batch?

Here's what my script uses to find someone's game directory (this is an automatic addon installer)

Quote:
Function .onInit

Call GetSteamAccountName
Pop $R0 ; CaDDy-
Pop $R1 ; E\Games\Steaaam

# Check if Steam is installed
StrCmp $R0 "" 0 +3
MessageBox MB_OK|MB_ICONSTOP $(SteamNotInstalled)
Abort

# It is installed so set INSTDIR
StrCpy $INSTDIR "$R1\SteamApps\$R0\garrysmod\garrysmod"
The "$R1\SteamApps\$R0\garrysmod\garrysmod is what i want written to a registry key.

This brings me to the second question, is it possible to call up a registry key as a variable in a batch file? If so, how would I do so?
-Gamah is offline   Reply With Quote
 
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