[banshee] windows: Use the 'WIX' environment variable to find heat.exe
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] windows: Use the 'WIX' environment variable to find heat.exe
- Date: Tue, 1 Feb 2011 02:38:57 +0000 (UTC)
commit 16158356c8caf842db4603fee778c0511b04c9ed
Author: Dustin C. Hatch <admiralnemo gmail com>
Date: Fri Jan 28 18:19:45 2011 -0600
windows: Use the 'WIX' environment variable to find heat.exe
On x64 systems, WIX installs itself in "Program Files (x86)" instead of
"Program Files," so the build-installer script cannot find `heat.exe`
in these cases. Using the `WIX` environment variable to locate the
binary solves this problem.
Signed-off-by: Gabriel Burt <gabriel burt gmail com>
build/windows/build-installer.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/build/windows/build-installer.js b/build/windows/build-installer.js
index ac0fd51..82b8203 100644
--- a/build/windows/build-installer.js
+++ b/build/windows/build-installer.js
@@ -6,8 +6,10 @@ var version = "1.9.3";
var sh = new ActiveXObject("WScript.Shell");
var fs = new ActiveXObject("Scripting.FileSystemObject");
+var env = sh.Environment("Process");
+
// FIXME if heat isn't here, it might be at v3.x\bin
-var heat = "\"C:\\Program Files\\Windows Installer XML v3.5\\bin\\heat.exe\"";
+var heat = "\"" + env("WIX") + "bin\\heat.exe\"";
// Build Banshee
//build ("..\\..\\Banshee.sln");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]