Skip to content
⌘ NSIS Forum Archive

Finding a file path

3 posts

marksully75#

Finding a file path

Hello,

I am very new to using this installer. I am using the installer to install a set of files for employees in our company but I want to use a path that they already have that is defined in a environment variable.

For example %DemoPath%/customer/

I want the installer to use %DemoPath% to find the location to install the files, how do I do this in the script?
Anders#
You should probably start by looking in the help file for things related to environment variables, perhaps the instruction you are looking for is called Expand something something...
pkonduru#
Try using this:

ReadEnvStr $0 DemoPath

More here, this is a good read: