简体   繁体   English

更改自定义 Wix Bundle 安装程序的 WixBundleExecutePackageCacheFolder

[英]Change the WixBundleExecutePackageCacheFolder for Custom Wix Bundle installer

I have a custom wixtoolset 3.10.2 bundle that installs 8 different .msi packages.我有一个自定义的 wixtoolset 3.10.2 包,它安装了 8 个不同的 .msi 包。 I need to have the extraction/cache folder for the bundle be a folder different than the the standard "C:\\Users\\myuser\\AppData\\Local\\Temp".我需要将包的提取/缓存文件夹设为不同于标准“C:\\Users\\myuser\\AppData\\Local\\Temp”的文件夹。 Is this possible?这可能吗? I need to do this because we are not allowing any executable to run from this standard temp folder for security reasons.我需要这样做,因为出于安全原因,我们不允许从这个标准临时文件夹运行任何可执行文件。 I would like the cache folder to be something like "C:\\MyCompany\\Install\\Temp" That way I can 'whitelist' that folder.我希望缓存文件夹类似于“C:\\MyCompany\\Install\\Temp” 这样我就可以将该文件夹“列入白名单”。

您可以重定向包缓存,但无法更改Burn从包中提取BA以在初始化期间使用的位置。

As part of the work done for #5830 and #5856 in v4, Burn can have separate locations for the extraction folder (where the clean room process and the elevated process will start from) and the acquisition folder (where payloads are copied/downloaded to before moving to the Package Cache folder).作为 v4 中为#5830#5856完成的工作的一部分,Burn 可以为提取文件夹(洁净室进程和提升进程将从这里开始)和获取文件夹(有效负载复制/下载到的位置)设置单独的位置在移动到包缓存文件夹之前)。 Note that none of these are WixBundleExecutePackageCacheFolder , which is a dynamic value that indicates where a specific package is currently executing from.请注意,这些都不是WixBundleExecutePackageCacheFolder ,它是一个动态值,指示特定包当前正在执行的位置。

The acquisition folder is still not configurable and uses %TEMP% .获取文件夹仍然不可配置并使用%TEMP% Burn should not execute files from here so that should be sufficient. Burn 不应该从这里执行文件,这样就足够了。

The extraction folder still defaults to %TEMP% but can be overridden on the command line ( -burn.working.directory=<path> ) or in the registry ( EngineWorkingDirectory in HKLM\\Software\\Policies\\WiX\\Burn ).提取文件夹仍默认为%TEMP%但可以在命令行( -burn.working.directory=<path> )或注册表( HKLM\\Software\\Policies\\WiX\\Burn EngineWorkingDirectoryEngineWorkingDirectory

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM