SourceDir property is incorrect for non-cached MsiPackage called from a bootstrapper #6332
-
Description
Version 3.11.
Visual Studio 2019, Version 16.7.6
Version 1.0.0.4
If this is referring to the version installed on my development machine, then 4.8.
Windows 10 Pro, Version 1909, OS Build 18363.1256.
I am creating a bootstrapper and some MSI packages. Some of the MSIs need to install files over 2GB, so I cannot achieve this with a When I use Looking at the logs in %TEMP%, I noticed that the MSI is copied to the Package Cache before being executed and SourceDir is set to that location in the Package Cache, so I set
I expected SourceDir to be set to the original location of the MSI, since that is the only relevant location in this case. Reproduction stepsHere's a minimal solution structure that reproduces the problem. Directory structure: The SetupProject1 project is an MSI installer project, while Bootstrapper1 is a bootstrapper. file1.txt is a "small file" which gets included in SetupProject1 as a SetupProject1\SetupProject1\Product.wxs:
SetupProject1\SetupProject1\SetupProject1.wixproj: (Copies file2.txt manually to output folder)
SetupProject1\Bootstrapper1\Bundle.wxs:
For good measure, I put copies of file2.txt in
but none of these were copied when I ran the bootstrapper. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
The WiX Toolset does not use GitHub issues for support. I have converted this issue into a discussion item, which is an experiment that we're trying out. Alternatively, you may want to ask your question on the wix-users mailing list or Stack Overflow. For security reasons, the bootstrapper will only execute packages from the package cache after it has verified that all of its files are exactly the same as when the bundle was built. You need to add the loose file(s) as a |
Beta Was this translation helpful? Give feedback.
The WiX Toolset does not use GitHub issues for support. I have converted this issue into a discussion item, which is an experiment that we're trying out. Alternatively, you may want to ask your question on the wix-users mailing list or Stack Overflow.
For security reasons, the bootstrapper will only execute packages from the package cache after it has verified that all of its files are exactly the same as when the bundle was built.
Cache="no"
means that the package should be removed from the cache at the end of execution.You need to add the loose file(s) as a
Payload
element as a child of theMsiPackage
element, withCompressed="no"
if you never it want it compressed into the bundle.