Skip to content
⌘ NSIS Forum Archive

add variable in to main section

5 posts

hanen.jomaa#

add variable in to main section

Hi,

I have a problem in my Section main,

i want adding a $var in to the path File to copy when install,

I have File /nonfatal /r "${varDir}\${TYPE}\test\$pathspecific"

but the script can't read the value of $pathspecific, how Can I specify this value please?

please can you help me ?
Anders#
This has been asked a million times before.

$variables are used at run-time on the end-users machine, you can only use ${defines} with the File instruction since it needs to find the file on the machine where makensis is running.

You can use SetOutPath "$instdir\$pathspecific" etc. to control where a file is written...
hanen.jomaa#
when i Use SetOutPath i will create my installer diretory

but my problem is how specify the path file to copy in my installer directory