Archive: CAB Setup - Variable Source Path in Installer Script


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


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


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