New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Root Certificate install fails with code 26352 #4875
Comments
Please provide a minimal example and a verbose log showing the error.
|
Relevant code from Product.wxs:
Relevant section of verbose log file:
|
The same issue with 3.10
|
@wixbot any update on this? This is still reproducible with v3.9 |
The bug is open and waiting for someone to start working on a solution. Perhaps you would like to start doing so? |
@robmen, who can I, or where should I, ask about the relevant area of WiX? I wouldn't mind giving this a go, if it's in C#. I unfortunately am not very comfortable in C++, but if it's in C#, I think this should be as simple as just checking to see if the certificate is in the store, and if so, moving on? I'm happy to work on it if someone points me to the appropriate area in the source folder. Thanks! |
It'll need to be in C++. Too many problems using managed custom actions in platform custom actions. Take a look at: |
Is this bug expected to be fixed anytime soon? |
The bug is open and waiting for someone to start working on a solution. Perhaps you would like to start doing so? |
is this resolved? |
This issue is open and unassigned. That means it is waiting for someone to investigate the root problem, discuss possible solutions to that problem then implement the decided solution. If you are interested in doing so yourself, our developer documentation provides a great checklist for getting started. If you are not interested then you are waiting for someone else to become interested. If this issue has been open for a long time then there probably isn't much interest in this particular issue. In that case, you'll want to consider how to motivate others to fix it for you. This is a pretty good list of support options. |
I have bumped into this issue and have extracted the failing code path out of dutil.lib. I can consistently reproduce this using a simple.exe (https://pastebin.com/b0RJZANN) Steps to reproduce:
The crux of this problem is that if a certificate already exists in these locations then the Should this be the case? I don't think so. Would it ever be fixed if raised as a MS issue? Unlikely. Given the following facts:
I believe it is safe to use
To this end I have spent most of the weekend and all of today trying to get WiX running with my own dutil.lib code. Sadly, to no avail.I have got as far as compiling However, I'm at a loss on how to proceed further as if I attempt to reference WixToolset.Iis.wixext.dll from within my .wixproj I get:
Ideally if someone is able to provide guidance on how to proceed I may be able to put this issue to bed once and for all. Failing that, if someone with a working build system could compile me a test WixIIsExtension.dll with my aforementioned change I could confirm whether my fix works. Many thanks, |
So, an update. I've managed to figure out how to build the correct WixIIsExtension.dll using MSBuild and this repo.. I made my change, then referenced this dll in my project instead of the production dll. To my surprise the issue was still present. What is more surprising is that even if I change the error log lines they appear unaltered in the MSI log. My changes:
And the log output still shows:
Anyone any idea's why this may be the case? @robmen ? |
Please move these questions to the wix-devs mailing list. How is The v3 build system sometimes has problems with incremental builds. You should clean and then build again. Once again, please move this discussion to wix-devs. |
|
I have created a WIX installation MSI that installs certificates to machine store. It is supposed to install a root certificate, but the installation fails if the cert already exists in the store.
I'm using Wix 3.9 R2.
This seems to have been a long running issue.
It was raised back in 2008:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Certificate-install-to-local-machine-fails-with-code-26352-td1121050.html
and again in 2010:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/WiX-cannot-install-certificate-Error-26352-installing-certificate-td4864389.html
and other people have been having the problem more recently:
http://stackoverflow.com/questions/26932405/wix-installation-fails-to-install-certificate-to-root-certification-authorities
What (if anything) is the fix for this. In all those enormous threads, there doesn't seem to be an actual fix at all - it certainly isn't working in Wix 3.9? Some people seem to suggest that it was working with Wix 3.5? Do I need to revert back to that version to get this to work? Or was it never actually fixed at all?
Can anyone suggest a specific version of Wix which will not cause this issue, or any other workaround. This is causing a significant headache for my organisation at present - users are having to manually go in and delete the root cert before installing our product - not good...
Thanks in advance for any help...
The text was updated successfully, but these errors were encountered: