You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When canceling an uninstallation of a package that installs certificates the certificates are still deleted. I expect that the rollback action should re-install the certificates if uninstallation is canceled/fails.
Looking at the code it seems that the FindExistingCertificate function in scacert.cpp is not using the suffix created when installing the certificates (_wix_certX) when comparing against the installed certificates. Therefore not finding that the certificate is installed and not scheduling a rollback custom action.
This can be tested by having the in the package (and also some certificate
<iis:Certificate Id='someId' Name='someName'
StoreName='root' StoreLocation='localMachine'
BinaryKey='someBinary
Overwrite='yes'
Request='no' /> )
and using the command line:
It seems my xml-snippets were eaten by the formatter. What I meant to write was that I used WixFailWhenDeferred to test this. And when uninstalling specifying WIXFAILWHENDEFERRED=1
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.
When canceling an uninstallation of a package that installs certificates the certificates are still deleted. I expect that the rollback action should re-install the certificates if uninstallation is canceled/fails.
Looking at the code it seems that the FindExistingCertificate function in scacert.cpp is not using the suffix created when installing the certificates (_wix_certX) when comparing against the installed certificates. Therefore not finding that the certificate is installed and not scheduling a rollback custom action.
This can be tested by having the in the package (and also some certificate
<iis:Certificate Id='someId' Name='someName'
StoreName='root' StoreLocation='localMachine'
BinaryKey='someBinary
Overwrite='yes'
Request='no' /> )
and using the command line:
msiexec /lv* setup.log /x msipackage.msi WIXFAILWHENDEFERRED=1
The text was updated successfully, but these errors were encountered: