Skip to content

Commit e3f220a

Browse files
committed
wix: add more Wix elements
1 parent 0e496d5 commit e3f220a

File tree

2 files changed

+93
-1
lines changed

2 files changed

+93
-1
lines changed

src/builder.vala

+15
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,21 @@ namespace Wixl {
491491
MsiTableShortcut.set_working_dir (rec, shortcut.WorkingDirectory);
492492
}
493493

494+
public override void visit_install_execute_sequence (WixInstallExecuteSequence sequence) throws GLib.Error {
495+
}
496+
497+
public override void visit_condition (WixCondition condition) throws GLib.Error {
498+
}
499+
500+
public override void visit_upgrade (WixUpgrade upgrade) throws GLib.Error {
501+
}
502+
503+
public override void visit_upgrade_version (WixUpgradeVersion version) throws GLib.Error {
504+
}
505+
506+
public override void visit_remove_existing_products (WixRemoveExistingProducts remove) throws GLib.Error {
507+
}
508+
494509
public override void visit_create_folder (WixCreateFolder folder) throws GLib.Error {
495510
}
496511

src/wix.vala

+78-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ namespace Wixl {
2323
public abstract void visit_create_folder (WixCreateFolder folder) throws GLib.Error;
2424
public abstract void visit_fragment (WixFragment fragment) throws GLib.Error;
2525
public abstract void visit_directory_ref (WixDirectoryRef ref) throws GLib.Error;
26+
public abstract void visit_install_execute_sequence (WixInstallExecuteSequence sequence) throws GLib.Error;
27+
public abstract void visit_condition (WixCondition condition) throws GLib.Error;
28+
public abstract void visit_upgrade (WixUpgrade upgrade) throws GLib.Error;
29+
public abstract void visit_upgrade_version (WixUpgradeVersion version) throws GLib.Error;
30+
public abstract void visit_remove_existing_products (WixRemoveExistingProducts remove) throws GLib.Error;
2631
}
2732

2833
public abstract class WixElement: Object {
@@ -349,17 +354,89 @@ namespace Wixl {
349354
}
350355
}
351356

357+
public class WixCondition: WixElement {
358+
static construct {
359+
name = "Condition";
360+
}
361+
362+
public string Message { get; set; }
363+
364+
public override void accept (WixElementVisitor visitor) throws GLib.Error {
365+
visitor.visit_condition (this);
366+
}
367+
}
368+
369+
public class WixRemoveExistingProducts: WixElement {
370+
static construct {
371+
name = "RemoveExistingProducts";
372+
}
373+
374+
public string After { get; set; }
375+
376+
public override void accept (WixElementVisitor visitor) throws GLib.Error {
377+
visitor.visit_remove_existing_products (this);
378+
}
379+
}
380+
381+
public class WixInstallExecuteSequence: WixElement {
382+
static construct {
383+
name = "InstallExecuteSequence";
384+
385+
add_child_types (child_types, {
386+
typeof (WixRemoveExistingProducts),
387+
});
388+
}
389+
390+
public override void accept (WixElementVisitor visitor) throws GLib.Error {
391+
visitor.visit_install_execute_sequence (this);
392+
}
393+
}
394+
395+
public class WixUpgrade: WixElement {
396+
static construct {
397+
name = "Upgrade";
398+
399+
add_child_types (child_types, {
400+
typeof (WixUpgradeVersion),
401+
});
402+
}
403+
404+
public override void accept (WixElementVisitor visitor) throws GLib.Error {
405+
visitor.visit_upgrade (this);
406+
}
407+
}
408+
409+
public class WixUpgradeVersion: WixElement {
410+
static construct {
411+
name = "UpgradeVersion";
412+
}
413+
414+
public string Minimum { get; set; }
415+
public string Maximum { get; set; }
416+
public string IncludeMinimum { get; set; }
417+
public string IncludeMaximum { get; set; }
418+
public string OnlyDetect { get; set; }
419+
public string Property { get; set; }
420+
421+
public override void accept (WixElementVisitor visitor) throws GLib.Error {
422+
visitor.visit_upgrade_version (this);
423+
}
424+
}
425+
352426
public class WixProduct: WixElement {
353427
static construct {
354428
name = "Product";
355429

356430
add_child_types (child_types, {
431+
typeof (WixCondition),
357432
typeof (WixDirectory),
358433
typeof (WixFeature),
359434
typeof (WixIcon),
435+
typeof (WixInstallExecuteSequence),
360436
typeof (WixMedia),
361437
typeof (WixPackage),
362-
typeof (WixProperty)
438+
typeof (WixProperty),
439+
typeof (WixUpgrade),
363440
});
364441
}
365442

0 commit comments

Comments
 (0)