Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   CAB Setup - Variable Source Path in Installer Script (http://forums.winamp.com/showthread.php?t=292459)

Protagonist 29th May 2008 13:48

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

Mr Inches 1st June 2008 01:23

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

Protagonist 19th June 2008 09:28

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


All times are GMT. The time now is 17:54.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.