Closed ghost closed 2 years ago
I can't reproduce this.
C:\Users\admin\AppData\Local\Temp\CustomV3Theme_20220120085511.log
[05A8:0BE8][2022-01-20T08:55:11]i001: Burn v3.11.2.4516, Windows v10.0 (Build 19041: Service Pack 0), path: C:\Users\admin\AppData\Local\Temp\{837AFC19-230A-4EA5-A4AD-AF30B56F991E}\.cr\CustomV3Theme.exe
...
[1A78:1DC8][2022-01-20T08:55:16]i305: Verified acquired payload: NetFx452Redist_local at path: C:\ProgramData\Package Cache\.unverified\NetFx452Redist_local, moving to: C:\ProgramData\Package Cache\89F86F9522DC7A8A965FACCE839ABB790A285A63\redist\\NDP452-KB2901907-x86-x64-AllOS-ENU.exe.
...
[1A78:11E8][2022-01-20T08:55:16]i301: Applying execute package: NetFx452Redist_local, action: Install, path: C:\ProgramData\Package Cache\89F86F9522DC7A8A965FACCE839ABB790A285A63\redist\\NDP452-KB2901907-x86-x64-AllOS-ENU.exe, arguments: '"C:\ProgramData\Package Cache\89F86F9522DC7A8A965FACCE839ABB790A285A63\redist\\NDP452-KB2901907-x86-x64-AllOS-ENU.exe" /q /norestart /ChainingPackage "CustomV3Theme" /log "C:\Users\admin\AppData\Local\Temp\CustomV3Theme_20220120085511_000_NetFx452Redist_local.log.html"'
Burn manifest
<Payload Id="NetFx452Redist_local" FilePath="redist\\NDP452-KB2901907-x86-x64-AllOS-ENU.exe" FileSize="69999448" Hash="89F86F9522DC7A8A965FACCE839ABB790A285A63" Packaging="embedded" SourcePath="a1" Container="WixAttachedContainer" />
<ExePackage Id="NetFx452Redist_local" Cache="yes" CacheId="89F86F9522DC7A8A965FACCE839ABB790A285A63" InstallSize="69999448" Size="69999448" PerMachine="yes" Permanent="yes" Vital="yes" RollbackBoundaryForward="WixDefaultBoundary" LogPathVariable="NetFx452FullLog" RollbackLogPathVariable="WixBundleRollbackLog_NetFx452Redist_local" DetectCondition="NETFRAMEWORK45 >= 9979893" InstallArguments="/q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx452FullLog].html"" UninstallArguments="/uninstall /q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx452FullLog].html"" RepairArguments="/q /norestart /repair /ChainingPackage "[WixBundleName]" /log "[NetFx452FullLog].html"" Repairable="yes" Protocol="netfx4"><PayloadRef Id="NetFx452Redist_local" /></ExePackage>
I can reproduce this in v3.11.2 if the value of the WixVariable is an absolute path.
<WixVariable Id="NetFx452RedistPackageDirectory" Value="C:\path\to\redist\" Overridable="yes" />
This was already fixed in v4 in https://github.com/wixtoolset/Core/pull/201.
I'm bundling the .NET 4.5.2 embedded exe into my installer using the following code:
During installation of the resulting .exe, the bundled
NDP452-KB2901907-x86-x64-AllOS-ENU.exe
file is extracted into a folder with the same path as the machine which built the installer:Changing the
SourceFile
file to a hardcoded string fixes the issue.The
NDP452-KB2901907-x86-x64-AllOS-ENU.exe
file is still bundled, but isn't extracted to the same source directory:I would expect the WixVariable based value to behave in the same way, rather than have the absoluteURI of the source file prepended.
This is the output from from installer build script: