Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   How to use ${un.GetParent} ? (http://forums.winamp.com/showthread.php?t=282381)

mergisius 30th November 2007 07:52

How to use ${un.GetParent} ?
 
I need to remove parent directory of installation directory if it's empty. After searching the forum i foundthis code.

${un.GetParent} $INSTDIR $R0
RMdir $R0

I've found out, that I need to include FilfeFunc.nsh.

But the error message didn't changed:
"Invalid command: ${un.GetParent}
Error in script "MC_Client_Install_client.template" on line 183 -- aborting crea
tion process"

How to call it in the correct form?

kichik 30th November 2007 08:34

You also need to declare you're going to use GetParent by insert the un.GetParent macro after including FileFunc.nsh.

mergisius 30th November 2007 12:17

thank you, kichik ;)


All times are GMT. The time now is 04:19.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.