如何在.msi安装期间为文档文件夹设置自定义路径 [英] How to set a custom path for a document folder during .msi setup

查看:367
本文介绍了如何在.msi安装期间为文档文件夹设置自定义路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个Excel加载项,我无法让msi包在正确的位置创建文档文件夹。

I am building an Excel Add-in and I am having trouble getting the msi package to create document folder in the right place.

我想要的是什么:

将加载项文件安装到程序文件文件夹(这按计划工作),然后创建一个doc文件夹(例如c:\ data \ XLDoc),然后放入.xlsx文件在该文件夹中。

Install the add-in files to the program files folder (this works as planned) and then create a doc folder (for example c:\data\XLDoc) and then put an .xlsx file in that folder.

发生了什么:

无论我为自定义文件夹的默认路径设置指定了什么,它总是将doc文件夹作为Program Files文件夹中的子文件夹。我真的不希望用户试图从程序文件文件夹中使用电子表格。

No matter what I specify for default path settings for my custom folder it always puts the doc folder as a sub-folder in the Program Files folder. I don't really want the user trying to use a spreadsheet out of the program files folder.

作为一个附带问题:任何人都可以指出关于构建Windows Installer项目的一些CURRENT文档?我在VS 2017社区中使用Microsoft的安装程序扩展。我找到了很多文档,但它们似乎都已经过时了。我在MSDN上找到了
,但是UI与我正在使用的安装程序项目不匹配。它帮助我解决了一些其他问题,但我无法理解这一点。

As a side question: Can anyone point me to some CURRENT documentation on building Windows Installer projects? I am using the installer extension from Microsoft in VS 2017 Community. I have found a number of docs but they all seem to be outdated. I found one pretty thorough walk through on MSDN but the UI does not match the installer project I am using. It has helped me solve some other issues but I can't get past this last thing.

任何建议都将受到赞赏。

Any advice would be appreciated.

DK

推荐答案

你好DMK_WA,

Hi DMK_WA,

你在哪里创建了这个文件夹。我已创建一个安装程序项目并设置自定义文件夹,如下图所示。安装完成后,将创建自定义文件夹并将工作簿放入文件夹中。

Where did you create the folder. I have create a installer project and set custom folder like below picture. After installing, the custom folder is created and the workbook in put in the folder.

最好的问候,

Terry


这篇关于如何在.msi安装期间为文档文件夹设置自定义路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆