summaryrefslogtreecommitdiffstats
path: root/tools/wixl/builder.vala
diff options
context:
space:
mode:
Diffstat (limited to 'tools/wixl/builder.vala')
-rw-r--r--tools/wixl/builder.vala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/wixl/builder.vala b/tools/wixl/builder.vala
index 65c97bd..368b6c2 100644
--- a/tools/wixl/builder.vala
+++ b/tools/wixl/builder.vala
@@ -171,6 +171,11 @@ namespace Wixl {
}
if (db.table_service_install.records.length () > 0)
add (MSIDefault.Action.InstallServices);
+ if (db.table_create_folder.records.length () > 0) {
+ add (MSIDefault.Action.RemoveFolders);
+ add (MSIDefault.Action.CreateFolders);
+ }
+
table.add_sorted_actions ();
// InstallUISequence
@@ -828,6 +833,9 @@ namespace Wixl {
}
public override void visit_create_folder (WixCreateFolder folder) throws GLib.Error {
+ var component = folder.parent as WixComponent;
+ var dir = get_directory (component);
+ db.table_create_folder.add (dir.Id, component.Id);
}
public override void visit_fragment (WixFragment fragment) throws GLib.Error {