定制安装路径
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用此默认路径:
WindowsVolume 属性自动解析为 Windows 分区(通常为 C:)。此外,所有预定义的文件夹属性值均以反斜杠 () 结尾。所以WindowsVolume后面不需要加一。
You can use this default path:
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.