Archive: Compile Error in simple install script


Compile Error in simple install script
So I got this chunk of installer script:

72  Section "Wire"
73 AddSize 10397
74 SetOutPath "$INSTDIR/orangebox/garrysmod/addons"
75 File /r "addons/wire"
76 SetOutPath "$INSTDIR"
77 ExecWait "'$TEMP/gmodserverinstallersvn/svn.exe' up $INSTDIR/orangebox/garrysmod/addons/wire"
78 SectionEnd


Basically, what I'm trying to do is move into a specific directory in the installation that's already been put in, and copy the folder 'wire' into that folder on the target machine.

However, I have something wrong on line 75, as evidenced by the compile log:
Section: "Wire"
AddSize: 10397 kb
SetOutPath: "$INSTDIR/orangebox/garrysmod/addons"
File: Returning to: "."
File: "addons/wire" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
/oname=outfile one_file_only)
Error in script "C:\gmod server\srcds installer.nsi" on line 75 -- aborting creation process


I've looked through the docs, and I can't figure out what's wrong, mostly because I can't find anything that describes exactly how makensisw is getting the files. Right now, I'm working from the assumption that I should move to a directory I want to output to on the target machine, then specify the path to the files I want to output relative to the .nsi file on my machine. Obviously, however, I'm missing something. Care to enlighten me?

You should probably be using backslashes, not forwards?

Also you're missing quotes around $INSTDIR/orangebox/garrysmod/addons/wire in line 77.


Oh ffs, what possessed MS to make backslashes the separator for folders? Thank you, it compiles now. If you'll excuse me, I need to go hit something. Preferably a person. From Microsoft. ;)

As for adding quotes, you're right. If they installed to a directory with spaces in the name, the update process would fail. Good catch!:up:

Thanks for your help.