简体   繁体   English

如何为wix安装程序基本对话框序列指定默认目录

[英]How to specify a default directory for wix installer basic dialog sequence

我正在为wix工具集生成的msi指定一个自定义默认目录,原因是程序/安装不需要任何管理权限,只需要将程序文件复制到程序文件目录即可,并且我正在考虑允许安装到漫游-能够的目录。

In general you specify a directory tree that includes your components/files. 通常,您指定包含组件/文件的目录树。 Something like this: 像这样:

    <Directory Id="TARGETDIR" Name="SourceDir">
        <Directory Id="ProgramFilesFolder">
            <Directory Id="INSTALLDIR" Name="MyExample">
                <Component Id="ApplicationFiles" Guid="12345678-1234-1234-1234-222222222222">

will put whatever components etc you have into Programfiles\\MyExample. 会将您拥有的所有组件等放入Programfiles \\ MyExample中。

Is that what you're trying to do? 那是你想做的吗? You start with one of the standard installer properties, such as roaming AppDataFolder if that's where you want it: 您从标准安装程序属性之一开始,例如在需要的地方漫游AppDataFolder:

http://msdn.microsoft.com/en-us/library/aa367565(v=vs.85).aspx http://msdn.microsoft.com/en-us/library/aa367565(v=vs.85).aspx

the WIXUI_INSTALLDIR is basically what I was looking for, once I figured what I was looking for: https://stackoverflow.com/a/3302238/832705 一旦我确定了要寻找的东西, WIXUI_INSTALLDIR基本上就是我要寻找的东西: https : WIXUI_INSTALLDIR

For reference, the Wix v3 install target directory input dialog (wix documentation link) that uses the WIXUI_INSTALLDIR default directory xml structure. 作为参考,使用WIXUI_INSTALLDIR默认目录xml结构的Wix v3 安装目标目录输入对话框WIXUI_INSTALLDIR文档链接)。

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

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