Old 8th January 2008, 06:43   #1
lovespy108
Member
 
Join Date: Sep 2007
Posts: 63
How to change abosulte path to relative path?

How to change abosulte path to relative path?
___________________________________________________
For instance:
When I install the two files.The output informations on the Label are:

Extract: C:\Program Files\my application\xx.dll
Extract: C:\Program Files\my application\myfiles\file1\xxx.dll

How to remove "Extract:" string?

If the absolute path is too long,the label cannot contain it in horizontal direction.It will add another line to output the absolute path completely.

How to change the long path to:

C:\...\myfiles\file1\xxx.dll
or
C:\...\file1\xxx.dll
lovespy108 is offline   Reply With Quote
Old 8th January 2008, 13:05   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
This function wasn't designed to work with paths but it is worth a try:
http://nsis.sourceforge.net/TrimText...fit_in_a_label

Stu
Afrow UK 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