Old 29th May 2008, 13:48   #1
Protagonist
Junior Member
 
Join Date: Jul 2004
Location: Frankfurt , Germany
Posts: 13
CAB Setup - Variable Source Path in Installer Script

Hello Everybody,

I have problem with the CAB Setup Plugin. In the _setup.nsi , the "real installer script", the source path for the cab files is defined as

!define SOURCE_PATH "D:\CAB\${DATASET_NAME}"

As my installer needs to run on any computer we have, this path may vary (at least the drive number). The installer is located in an SVN repository, so I know how the filesystem is structured. Is it possible to use a relative pat, e.g.
!define SOURCE_PATH "..\..\Cabs\found\here" ?

Thanks
Protagonist is offline   Reply With Quote
Old 1st June 2008, 01:23   #2
Mr Inches
Member
 
Join Date: Jan 2006
Location: Canberra, Australia
Posts: 76
Hi

There should be no problem changing the path in this variable; that was one of the major reasons for making them variables in the first place, the same as the dataset name is a variable.

Duncan
Mr Inches is offline   Reply With Quote
Old 19th June 2008, 09:28   #3
Protagonist
Junior Member
 
Join Date: Jul 2004
Location: Frankfurt , Germany
Posts: 13
Changing the path in the variable is not the problem. I want to run the installer script on any PC without altering the code. As this is not possible with the current build of the plugin, I have to make sure, that everybody who needs to create an installable version of our software knows how to alter the path in the script.

But thanks anyway :d

Protagonist
Protagonist 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