wix - How to show erros occuring during installation of prerequesites -


using wix 3.10

when installing .net 4.6 on windows 8.0, microsoft package returns error since computer missing anothger kb microsoft. that's ok far, want show message net-installer in custom wpf-ui, didn't figured out event trigger.

in viewmodel have current instance of bootstrapperapplication , first approach not log anything:

 internal mainviewmodel(bootstrapperapplication model, action<loglevel, string> onloggeraction, (....)) {   this.model = model;   this.model.detectpackagecomplete += this.detectpackagecomplete;   this.model.detectrelatedbundle += new eventhandler<detectrelatedbundleeventargs>(this.model_detectrelatedbundle);   this.model.detectpriorbundle += new eventhandler<detectpriorbundleeventargs>(this.model_detectpriorbundle);   this.model.detectrelatedmsipackage += new eventhandler<detectrelatedmsipackageeventargs>(this.model_detectrelatedmsipackage);   this.model.detecttargetmsipackage += new eventhandler<detecttargetmsipackageeventargs>(this.model_detecttargetmsipackage);   this.model.error += this.setuperror;   [...] }  public void setuperror(object sender, erroreventargs args) {    this.onloggeraction(loglevel.standard, string.format("error occured. message: {0}", args.errormessage));    this.onloggeraction(loglevel.standard, string.format("error occured. errorcode: {0}", args.errorcode));    this.onloggeraction(loglevel.standard, string.format("error occured. type: {0}", args.errortype));    this.dispatcher.begininvoke((action)(() => this.showerrorview(args))); } 

the log file shows error:

[07d0:06d4][2016-05-09t09:16:36]i301: applying execute package: netfx4fullinternal, action: install, path: c:\programdata\package cache\3049a85843eaf65e89e2336d5fe6e85e416797be\ndp46-kb3045557-x86-x64-allos-enu.exe, arguments: '"c:\programdata\package cache\3049a85843eaf65e89e2336d5fe6e85e416797be\ndp46-kb3045557-x86-x64-allos-enu.exe" /passive /norestart' [07d0:06d4][2016-05-09t09:18:11]e000: error 0x800713ec: process returned error: 0x13ec [07d0:06d4][2016-05-09t09:18:11]e000: error 0x800713ec: failed execute exe package. [0928:09ac][2016-05-09t09:18:11]e000: error 0x800713ec: failed configure per-machine exe package 

but how can handle error?

you have "/norestart" , "/passive" arguments in use, try using "/log c:\pathtolog\yourlog.log" aswell can see goes wrong.

before shipping installer should have fixed errors, not display them all.

imagine installing , thousands of errors show up....


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -