# Start Folder for WIX actions

**URL:** https://www.finalbuilder.com/forums/t/start-folder-for-wix-actions/966
**Category:** Discussion
**Created:** [September 12, 2008, 3:02am UTC](https://www.finalbuilder.com/forums/t/start-folder-for-wix-actions/966 "2008-09-12T03:02:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [September 12, 2008, 3:02am UTC](https://www.finalbuilder.com/forums/t/start-folder-for-wix-actions/966/1 "2008-09-12T03:02:25Z")

</div>

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

&nbsp;

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [September 15, 2008, 12:24pm UTC](https://www.finalbuilder.com/forums/t/start-folder-for-wix-actions/966/2 "2008-09-15T12:24:08Z")

</div>

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)
