summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/wixl/wixl.vala8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/wixl/wixl.vala b/tools/wixl/wixl.vala
index a4ea371..e49636f 100644
--- a/tools/wixl/wixl.vala
+++ b/tools/wixl/wixl.vala
@@ -55,8 +55,12 @@ namespace Wixl {
}
if (output == null && !preproc) {
- GLib.stderr.printf (_("Please specify the output file.\n"));
- exit (1);
+ if (files[0].has_suffix (".wxs"))
+ output = files[0].slice (0, -4) + ".msi";
+ else {
+ GLib.stderr.printf (_("Please specify the output file.\n"));
+ exit (1);
+ }
}
try {