matthewbigdawg
7th August 2004 18:00 UTC
Installer Path Question
ok i make AMX installers and so on and the way i make them they have to add their e-mail in the install dir. im am wanting it to auto find there e-mail instead. now i know i have to look in regedit and find the install path and i did its "c:\valve\steam\steamapps\matthewwoods5@lycos.com\half-life" but now heres the problem i need my files to install to c:\valve\steam\steamapps\matthewwoods5@lycos.com\dedicated server" what should i do?
kichik
7th August 2004 18:03 UTC
Search the forum, this Steam question have already been asked and answered more than once. In short, GetParent.
Afrow UK
7th August 2004 18:29 UTC
Just like Kichik said, you need to do:
ReadRegStr $R0 "HKCU" "Software\Valve\Steam" "ModInstallPath"
;$R0 == 'c:\valve\steam\steamapps\[account]\half-life'
Push $R0
Call GetParent
Pop $R0
;$R0 == 'c:\valve\steam\steamapps\[account]'
StrCpy $R0 "$R0\dedicated server"
;$R0 == 'c:\valve\steam\steamapps\[account]\dedicated server'
I've been using my NSIS Self-Extractor kit to distribute maps. It checks for that registry entry, and if it does not exist, it searches for the SteamApps folder until found on either C: D: E: When that dir is found, it then finds hostileintent folder in the SteamApps folder to extract to.
Edit: Make sure you include the GetParent function in your script.
-Stu
matthewbigdawg
8th August 2004 03:10 UTC
hey Afrow UK do you have any kind of messenger say msn or aim we you could help me with this in live time if you dont mind
Afrow UK
8th August 2004 13:27 UTC
Yes I do, MSN: afrowuk at tiscali dot co dot uk
-Stu
BornAgainst
17th February 2005 16:09 UTC
Hi Afrow UK
can u add me to msn please bornagainst@sabaki.com.au
i need some help
thank you