Archive: Get Parent of Currently compiling Script


Get Parent of Currently compiling Script
All--

Working on integrating installers into our build process. Since our installer source is under source control, some of the parent directories may be mapped differently on the build machine. Is there any way to get the parent of the currently compiling script so that some !system commands can be run? ${___FILE___} only returns the file name, not the full path, so ${GetParent} won't work.

Thanks for any help.

Allen


Most build systems support setting environment variables. You can read those using the $%var% syntax from the script. You can also pass defines on the command line to makensis using the /D parameter.

But those shouldn't be required since makensis automatically changes the working directory to that of the script, so you can just use relative paths.