|
|
|
|
#1 |
|
Senior Member
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
|
How to get the parent directory
For example the script:
!include "MUI.nsh" SetCompressor /SOLID lzma InstallDir "$PROGRAMFILES\MYPROGRM" ...... Section Client ${GetParent} $INSTDIR $R0 ...... SetOutDir "$R0\TEST" ...... When compiling,it said: Invalid command: ${GetParent} How to use the function "${GetParent}"?Help me! The help give the follow code: Section ${GetParent} "C:\Program Files\Winamp\uninstwa.exe" $R0 ;$R0="C:\Program Files\Winamp" SectionEnd But I test it,it can't be compiled! |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
You must declare you'll be using this function before actually using it by adding !insertmacro GetParent at the top as explained in the introduction.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
|
Thank u very much!!!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|