WiX C# Custom action not working when MSI started from Add Remove Programs #8762
Unanswered
radu-solomon-dnsf
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
WiX Version: 5.0.1
.NET Framework: 4.8.0
OS: Windows 11 x64
I have a very strange issue and can't for the life of me track it down. We have a WiX based MSI installer that we run. When the MSI is run in Modify mode and the user selects the Remove option they are shown a UI asking them for a PIN to perform the removal.
I have my property, CA and Button all wired up but here is the strange part it works most flows except one.
If i run the MSI via cmd prompt using msiexec /i package, click Remove, input the pin - CA works and returns valid or invalid
If i run the MSI via appwiz.cpl, click Remove, input the pin - CA works and returns valid or invalid
If i start the modify via the new Add Remove programs, click Remove, input the pin - CA throws error 2896 and my installer ends
The only difference i can see in the MSI logs for the runs:
I tried to elevate the CA, generate more logs, etc i can't see what it happens and why it throws that error on the CA. As far as i can see it doesn't even start to execute it at all it just errors out but i could be wrong
All the CA does now for testing is this
And the way its linked to the button
Output when run from cmd prompt
Output when run from AddRemovePrograms
Beta Was this translation helpful? Give feedback.
All reactions