Start Folder for WIX actions

Hi,

I'm moving an existing build procedure from bat files to Finalbuilder. In the project we use WIX to build msi files, and have a number of .wxs configuration files which alle have relative file references.

I added the WIX candle and Light actions to my project, but since I can not specify a starting folder, all file references in my .wxs files must either be absolute or relative to the WIX executables to work. Is there a way around this, so I don't need to change all the file references in my existing .wxs files?

Thanks,

Rasmus Aaen

 

Hi Rasmus,

In the BeforeAction script event of the Wix actions you can set the “current directory” for Windows which should solve this problem. The script would be something like:

SetCurrentDir(“c:\my dir”);

(javascript code)