Skip to content

Commit

Permalink
- Added sample for "Issuae #324: Capture Msi error in bootraper"
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-shilo committed Mar 25, 2018
1 parent 74ec069 commit d4a336f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ static public void Main(string[] args)
// bootstrapper.Application.LicensePath = null; //HyperlinkLicense app with no license

bootstrapper.Application.AttributesDefinition = "ShowVersion=yes; ShowFilesInUse=yes";

bootstrapper.IncludeWixExtension(WixExtension.Util);
// bootstrapper.Application.Bo
bootstrapper.Include(WixExtension.Util);

// The code below sets WiX variables 'Netfx4FullVersion' and 'AdobeInstalled'. Note it has no affect on
//the runtime behavior and 'FileSearch' and "RegistrySearch" are only provided as an example.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,19 @@ public MainViewModel(BootstrapperApplication bootstrapper)
this.IsBusy = false;

this.Bootstrapper = bootstrapper;
this.Bootstrapper.Error += this.OnError;
this.Bootstrapper.ApplyComplete += this.OnApplyComplete;
this.Bootstrapper.DetectPackageComplete += this.OnDetectPackageComplete;
this.Bootstrapper.PlanComplete += this.OnPlanComplete;

this.Bootstrapper.Engine.Detect();
}

void OnError(object sender, ErrorEventArgs e)
{
MessageBox.Show(e.ErrorMessage);
}

bool installEnabled;

public bool InstallEnabled
Expand Down

0 comments on commit d4a336f

Please sign in to comment.