开发者

open file dialog not working in vista and 2008 envir

开发者 https://www.devze.com 2022-12-12 03:56 出处:网络
i am using Vista . I designed MSi file through Visual Studio 2008 Setup and deployment project in which I added one custom action. In the custom action, I am opening OpenFile dialog. This Open F开发者

i am using Vista . I designed MSi file through Visual Studio 2008 Setup and deployment project in which I added one custom action. In the custom action, I am opening OpenFile dialog. This Open F开发者_开发百科ile dialog is not showing mapped drive or network locations. so how can i make the open file dialog to mapthe network drives.


This is a known problem with Vista User Account Control. When your installation program is started, the non-admin session of the user is elevated to an admin session. The problem is: Network drives mapped in the non-admin session of the user do not automatically carry over to the admin session.

Unfortunately, there is not much you can do about it. (You can start an elevated command prompt prior to starting your setup project and manually net use the drive letters there, but I guess that's not something you can expect your customers to do.)

Related question: Preserve mapped drive letter information during UAC elevation

0

精彩评论

暂无评论...
验证码 换一张
取 消