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
Burn will use incorrect package if local #3640
Burn will use incorrect package if local #3640
Comments
Reading the local file for anything but copying is undesirable because the file may be on a network share. Such operations have a very high failure rate. That said, there currently is no way a BA can override the selection of the local source. Changing that would be disruptive right now but we should investigate for next version. |
I'm not understanding you 100% (then again I don't know anything that is going on under the hood). When it processes the msi doesn't it have to check the product code and version to determine whether to install it or not? How about if there is a newer version of the msi that's already installed? Or is burn that smart? Just to be clear: I have a downloadUrl attribute in burn for my MSI which is called Shellsetup.msi (my msi that installs my application). It works fine when the burn exe is in a folder by itself (it downloads the msi from the url) but if I put an old version of the Shellsetup.msi in the same folder as my bundle exe it always tries to install that msi. It looks like it only goes by the file name only to determine if its the correct msi. So I'm not sure where a network share comes into play. Even if it does once the local file is copied can't you inspect it's version then? If its not correct try the download url or fail. Just wanted to make sure I was understood correctly. |
Updating title to better reflect the root issue. |
|
|
Fixed for wix3: wixtoolset/wix3@cad7bf5 Need to port for wix4.
|
Fixed in wix4: wixtoolset/wix@466ac87
|
Incorrectly resolved. Not fixed by previous commits.
|
Not that it matters but I was the one who created this bug report.
|
We had an email conversation and discussion in triage about this and it requires further investigation. I did solve this problem internally (it was related to the original commits, but when migrating it to OSS I mixed the two related issues) but in a manner Rob didn't want (and it did cause perf issues): by checking the hash of the layout file. On a network, this was very slow (we took said code out), but that means that the hash is eventually verified only after the BA is given a chance to resolve source. Rob said he was going to think about how to proceed. IMO, the BA source resolution code needs to happen later, or the BA be given a second chance at resolving.
|
From a related email conversation on this bug, there's basically two aspects to this bug:
|
I'm not sure how practical this is, but in v3.x a BA could call |
If I have two versions of the same MSI file: an old version locally with the burn exe and one on our website. Burn exe will always call the old version which produces a hash error of course. It seems like burn is only going by the name and not checking the version of the MSI.
It should check the version of the MSI and if it is not correct do not use the local version, download the correct version.
The text was updated successfully, but these errors were encountered: