diff --git a/MSI.wsf b/MSI.wsf
index e3be444..f4dca2e 100644
--- a/MSI.wsf
+++ b/MSI.wsf
@@ -359,6 +359,7 @@
+
@@ -391,57 +392,21 @@
throw new Error(err.number, "" + stream_path + ": " + err.description);
}
- // Commit database
- database.Commit();
- } catch (err) {
- // In case of error, delete output file.
- if (fso.FileExists(msi_path))
- fso.DeleteFile(msi_path);
+ if (WScript.Arguments.Named.Exists("L") && WScript.Arguments.Named("L") != false) {
+ // Get platform.
+ var
+ sumInfo = database.SummaryInformation(1),
+ template = sumInfo.Property(PID_TEMPLATE),
+ idx_delim = template.indexOf(";"),
+ platform = idx_delim >= 0 ? template.substring(0, idx_delim + 1) : ";",
+ languages = idx_delim >= 0 ? template.substring(idx_delim + 1).split(new RegExp("\\s*,\\s*")) : new Array();
- throw err;
- }
-
- WScript.Quit(0);
- ]]>
-
-
-
- Sets language transform MST list in MSI file.
-
-
-
-
-
-