I would like my application to look for update from a shared drive. So if a new version is published to a shared drive, all users get an update message when they start the application.
I am using visual studio publish feature. It ask for Installation Folder URL. When I choose a folder, it gives error "The string must be a fully qualified URL or UNC path".
What will be the UNC path for following folder?
D:\InstallationFolder\
I tried \\\D\InstallationFolder\
,` and it gives me warning
"Warning: Unable to view published application at \\D\InstallationFolder."
Help
First:See Publishing ClickOnce Applications on MSDN.
In the How will users install the application? page, select the location where users will go to install the application:
UNC path
UNC
stands for universal (or consistent, uniform) naming convention, and is a syntax used to access folders and files on a computer network. The syntax is as follows:Followed by any number of directories, and end with a directory or file name.
Last:
Find UNC path of a network drive
Refer to dlauzon's answer:
Or use
net use
:Refer to Lachlan Dowding's answer here:
In Windows, if you have mapped network drives and you don't know the UNC path for them, you can start a command prompt (Start → Run → cmd.exe) and use the
net use
command to list your mapped drives and their UNC paths:Note that this shows the list of mapped and connected network file shares for the user context the command is run under. If you run
cmd.exe
under your own user account, the results shown are the network file shares for yourself. If you runcmd.exe
under another user account, such as the local Administrator, you will instead see the network file shares for that user.