Old 14th April 2011, 15:57   #1
Safe60
Junior Member
 
Join Date: Apr 2011
Posts: 3
Relatve path

Hello from a newbie ! This is my first post and I apologize if my question has been already posted in the past. In thsi case any reference to that thread will be appreciated.

Using one of the examples of the distribution I was quickly able to set up an installation program that writes files in many directories below $INSTDIR.
Setting the output path with

SetOutPath "$INSTDIR\HERE"
File *.something

SetOutPath "$INSTDIR\THERE"
File *.something_else

It works fine. But now I have to put some files in a directory which is above $INSTDIR and I can't guess how to do.

Let's say that $INSTDIR has been set to "C:\myapp\myapp_folder"
how to set the output to "C:\myapp" and create a directory there ?
I couldn't find any reference in the doc about how to parse $INSTDIR content to build
the full path I need.

Any suggestion ??
Thanks a lot !

Sandro
Safe60 is offline   Reply With Quote
Old 14th April 2011, 16:36   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,163
"E.1.15 GetParent" in the helpfile, or you could probably just get away with "$instdir\..\new folder"

But you need to think about what happens if someone runs your installer with "setup.exe /D=c:\rootfolder"

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump