定制安装路径

发布于 2024-12-16 17:28:24 字数 324 浏览 1 评论 0原文

我正在使用 vs2010 创建一个 Visual Studio 设置项目。我希望我的应用程序安装在 c:\manufacturer\ProductName 中。我使用[HOMEDRIVE]作为“ApplicationFolder”的默认位置,它将在安装时指向c:\。但是,当我将 [HOMEDRIVE][Manufacturer]\[ProductName] 设置为 defaultLocation 时,它会在安装时引发错误,提示“无法访问网络位置Manufacturer\ProductName”。我很感激任何形式的帮助或建议。

I am creating a visual studio setup project using vs2010. I want my application to be installed in c:\manufacturer\ProductName. I used [HOMEDRIVE] as the defaultLocation of "ApplicationFolder" which will points to c:\ at the installation time. However, when i put [HOMEDRIVE][Manufacturer]\[ProductName] as the defaultLocation, it raises an error at the installation time saying "Could not access network location Manufacturer\ProductName". I appreciate any kind of help or suggestion.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小嗲 2024-12-23 17:28:24

您可以使用此默认路径:

[WindowsVolume][Manufacturer][ProductName]

WindowsVolume 属性自动解析为 Windows 分区(通常为 C:)。此外,所有预定义的文件夹属性值均以反斜杠 () 结尾。所以WindowsVolume后面不需要加一。

You can use this default path:

[WindowsVolume][Manufacturer][ProductName]

WindowsVolume property is automatically resolved to the Windows partition (usually C:). Also, all predefined folder property values are ended with a backslash (). So you don't need to add one after WindowsVolume.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文