![]() |
#1 |
Junior Member
Join Date: Mar 2013
Posts: 23
|
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 ? |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,333
|
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... IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Mar 2013
Posts: 23
|
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 |
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,333
|
SetOutPath $instdir
File "abc.ext" SetOutPath "$instdir\foo\$bar" File "xyz.ext" IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Mar 2009
Posts: 41
|
Have you even populated your $pathspecific before that point?
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|