In a Visual Studio setup project, you define a Program Files output (amongst other things of course).
在Visual Studio安装项目中,您可以定义Program Files输出(当然还有其他内容)。
Is there any way to output this to a folder directly, i.e. get that output without actually building and installing the msi to Windows?
有没有办法直接将它输出到文件夹,即获得该输出而不实际构建和安装msi到Windows?
What I am looking for is something similar to the "File System" publish method for web projects.
我正在寻找的东西类似于Web项目的“文件系统”发布方法。
Alternatively, I could do with a "portable install" option in the msi (similar for instance to the Firefox portable install), or an switch in msiexec (I did not find anything like this in the documentation), or a way to extract this folder structure from the msi via a third-party tool.
或者,我可以使用msi中的“可移植安装”选项(类似于Firefox便携式安装),或者msiexec中的交换机(我在文档中没有找到这样的内容),或者提取此方法来自msi的文件夹结构通过第三方工具。
1 个解决方案
#1
0
Take a look at Administrative Installation. You run a postbuild command like:
看看管理安装。你运行一个postbuild命令,如:
msiexec /a "$(TargetPath)" /qn TARGETDIR="$(OutDir)\Extract"
Please note that I didn't test that command but that's the general concept. This will extract your MSI to a directory.
请注意,我没有测试该命令,但这是一般概念。这会将您的MSI解压缩到一个目录。
#1
0
Take a look at Administrative Installation. You run a postbuild command like:
看看管理安装。你运行一个postbuild命令,如:
msiexec /a "$(TargetPath)" /qn TARGETDIR="$(OutDir)\Extract"
Please note that I didn't test that command but that's the general concept. This will extract your MSI to a directory.
请注意,我没有测试该命令,但这是一般概念。这会将您的MSI解压缩到一个目录。