问题描述
我开发了一个插件,其中的安装程序是使用wix构建的.安装安装程序时,我需要在该appdatatfolder中包含许多文件,例如helpdocument,logs和 Mainly Templates .文件和文件夹将安装程序安装后会自动创建.
我的需要是
所有对所有用户可见的内容都应保存到"CommonAppDataFolder"中,仅当前用户的所有内容都应保存到"AppDataFolder"中./p>
只需创建一个ID设置为适当值的Directory元素,如下所示:
< Fragment><目录ID ="TARGETDIR"名称="SourceDir"><目录ID ="=" CommonAppDataFolder><目录ID ="=" INSTALLDIR名称=" CommonTemplates"/></目录><目录ID ="AppDataFolder"><目录ID ="=" INSTALLDIR2名称=" UserSpecificTemplates"/></目录></目录></片段>
有关其他常见位置,请参考此列表:https://msdn.microsoft.com/zh-CN/library/aa370905(VS.85).aspx#system_folder_properties
i have developed an addin where its setup was build using wix.When the setup being installed i need to have many files like helpdocument ,logs and Mainly Templates in that appdatatfolder .The files and folder will be automatically created when the setup got installed.
My need is
Anything that needs to be visible to all users should be saved into 'CommonAppDataFolder', and anything for just the current user should be saved into 'AppDataFolder'.
Just create a Directory element with the id set to the appropriate value as illustrated below:
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="CommonAppDataFolder">
<Directory Id="INSTALLDIR" Name="CommonTemplates"/>
</Directory>
<Directory Id="AppDataFolder">
<Directory Id="INSTALLDIR2" Name="UserSpecificTemplates"/>
</Directory>
</Directory>
</Fragment>
Refer to this list for other common locations: https://msdn.microsoft.com/en-us/library/aa370905(VS.85).aspx#system_folder_properties
这篇关于AppdataFolder中的文件对所有用户均不可见-Wix的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!