1

Good morning, I have a problem with a Wix installer (it is the first time I use wix) it turns out that when I start everything is fine, and it asks me for administrator permissions, in the "install" button it shows me the icon that I will need those permissions

Img 1

when I click on Install, I get the windows to notice to provide the permissions. Until there everything is fine. Then I run the installer again, and it gives me three options, Change - Repair- Remove

Img 2

I click on remove (which also has the icon that needs Admin Privileges), but it doesn't ask me for Administrator permissions and it executes the uninstall badly, it doesn't delete registry keys and other things.

Img 3

I need you to always ask me for the permits. Can someone tell me what's going on? Thanks

  • What dialog set are you using? – Stein Åsmul Feb 28 '20 at 20:16
  • I using MaintenanceTypeDlg – Ariel Octavio D'Alfeo Feb 28 '20 at 20:37
  • I meant the ***`UIRef`*** element? For example ***``***. – Stein Åsmul Feb 28 '20 at 20:39
  • Is a Custom dialog, – Ariel Octavio D'Alfeo Feb 28 '20 at 20:47
  • OK, when I test with Mondo I get mostly expected results. The ***Remove*** elevates, but ***Change*** and ***Repair*** does not (regular users can service the existing installation, but not remove it). Do you have the sources in github.com so we can look? You need to look at the Mondo dialog set and its configuration and replicate - I guess. If I were you I would first test using Mondo to verify that it works properly? – Stein Åsmul Feb 28 '20 at 20:53
  • How did you go with this? You have the links to [the dialog sources in WiX github](https://github.com/wixtoolset/wix3/tree/develop/src/ext/UIExtension/wixlib)? More links in [this comment](https://stackoverflow.com/questions/60390664/how-does-the-msi-installer-from-wix-decide-what-to-run#comment106859538_60390664). – Stein Åsmul Mar 01 '20 at 19:25
  • Any luck with this? There are many issues to test here beyond the obvious with regards to elevation for non-admin users and AD deployment, but most people never test it. Application packages may work to redesign the MSI to support it. – Stein Åsmul Mar 02 '20 at 15:10

0 Answers0