如果不存在,则使用安装程序创建用户文件夹
Create User Folders with Installer if not existing
我有一个正在通过安装程序分发的应用程序。该应用程序使用 EnterpriseLibrary.Caching。我的问题概述here。如果 IIS 用户帐户尚不存在文件夹,我是否可以使用安装程序为它们创建文件夹?
如果您使用 WIX 作为安装程序创作工具,则可以使用 CreateFolder 元素。
http://wixtoolset.org/documentation/manual/v3/xsd/wix/createfolder.html
两个相关链接:
Detecting the presence of a directory at install time
Wix - how to prevent overwrite entire directory?
编译后,在MSI的CreateFolder table中会有一个入口
您也可以编写自定义操作并在 CA 中执行此操作。
我有一个正在通过安装程序分发的应用程序。该应用程序使用 EnterpriseLibrary.Caching。我的问题概述here。如果 IIS 用户帐户尚不存在文件夹,我是否可以使用安装程序为它们创建文件夹?
如果您使用 WIX 作为安装程序创作工具,则可以使用 CreateFolder 元素。 http://wixtoolset.org/documentation/manual/v3/xsd/wix/createfolder.html
两个相关链接:
Detecting the presence of a directory at install time
Wix - how to prevent overwrite entire directory?
编译后,在MSI的CreateFolder table中会有一个入口
您也可以编写自定义操作并在 CA 中执行此操作。