-
Notifications
You must be signed in to change notification settings - Fork 288
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
DotNetCompatibilityCheck: don't abort install on incompatible platform #459
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
Thanks. This looks good. We'll triage the issue at our meeting next week. My gut says |
Yeah, I wasn't sure about that. I guess the main thing is that the value shouldn't be something that the NetCoreCheck.exe authors might use in the future, which I don't really know how to predict. However, https://github.com/dotnet/deployment-tools/blob/main/src/clickonce/native/projects/NetCoreCheck/NetCoreCheck.h does make it look like any additional error codes will probably just increment from the current ones that are defined, around 0x3000. So 65535 should be safe. Maybe they could conceivably use +1 if they come up with some "successful, but ..." result code? So I guess I'd vote for 65535, but I'm happy to do whatever you think is best. |
Yeah, that was my thinking too. I left a comment on the issue so triage makes a recommendation. |
Triage team says |
…r code ERROR_EXE_MACHINE_TYPE_MISMATCH or ERROR_BAD_EXE_FORMAT then don't abort the installation, just set the property to 13. Fixes issue #7737
@barnson OK, I've updated my code to use 13. Also updated wixtoolset/web#229 to reflect this change |
Thanks! |
If running NetCoreCheck.exe fails with error code ERROR_EXE_MACHINE_TYPE_MISMATCH or ERROR_BAD_EXE_FORMAT then don't abort the installation, just set the property to -1. Fixes wixtoolset/issues#7737