Archive: Making an installer go to 2 directories


Making an installer go to 2 directories
ok i need to have some files go to C:/Steam/SteamApps/matthewwoods%@lycos.com/dedicated server/cstrike/addons
and some too
C:/Steam/SteamApps/matthewwoods%@lycos.com/counter-strike/cstrike/addons

and i tried puting the install path as C:/Steam/SteamApps/matthewwoods%@lycos.com so i could set some to go to one and some to the other folder but when i do it dont work it give me an error ....

SetOutPath expects 1 parameters, got 2.
how can i fix this

try to put whole dir in quotes ("C:/Steam/SteamApps/matthewwoods%@lycos.com/dedicated server/cstrike/addons")..maybe it would work


set install directory as below:
InstallDir C:\Steam\SteamApps\matthewwoods%@lycos.com\

for stuff to go to dedicated server do this:
Section "section name here e.g. Dedicated Server Stuff"
SetOutPath "$INSTDIR\dedicated server\cstrike\addons"
File "file location here"
SectionEnd

for stuff to go to counter-strike folder do this:
Section "section name here e.g. CS Stuff"
SetOutPath $INSTDIR\counter-strike\cstrike\addons
File "file location here"
SectionEnd

the reasson i have ""$INSTDIR\dedicated server\cstrike\addons" with "" on it is becasue ther is a space in one of the folder name and unless u specify the folder with "" it wont compile propearly

and btw stop putting the forwald slash there ment to be backslash on harddrive and forwaldslash on internet :P

hope this helps


ya i meant "\" dont know why when posting this i put a / slash


wouldn't it be easier like this?

VAR INSTDIR_CS
VAR INSTDIR_SVR

InstallDir C:\Steam\SteamApps\matthewwoods%@lycos.com

StrCpy $INSTDIR_CS "$INSTDIR\counter-strike\cstrike\addons"
StrCpy $INSTDIR_SVR "$INSTDIR\dedicated server\cstrike\addons"

Section "section name cs"
SetOutPath $INSTDIR_CS
File "file location here"
SectionEnd

Section "section name svr"
SetOutPath $INSTDIR_SVR
File "file location here"
SectionEnd


thanks for the help guys i got it working


why dont you check the registery for the default steam install path. that might help ya out. im not sure how that all works with steam, but im sure that all the info on email addresses and install folder is in the directory.

you can also use the
File /r location\*.*
command for storing the info and extracting it the same way.

hope that helps