Start a Conversation

Unsolved

This post is more than 5 years old

M

1748

January 25th, 2018 23:00

Clickonce applications will not start on Wyse clients

Hi.
We have problem with launching our ClickOnce applications in a Wyme enviorment.

Any known problems with that?

1 Rookie

 • 

56 Posts

September 21st, 2018 08:00

Can you describe the method that you are launching the application?

I am able to run an application that is managed by the Microsoft OneClick Deployment platform within my environment when a user launches the application from either a desktop shortcut or programs menu entry. Normally, applications deployed through Microsoft OneClick are stored within the User's AppData folder (%USER_PROFILE%/AppData/Local/Apps/...) with an application reference in the User's Start Menu (not available to other users). 

Try copying the application reference link to another location (like Common Desktop or WDA CCM Policy list). Code example below is in VB.NET and copies to User Desktop.

    Public Sub CreateAppShortcut()
        'Copy Application Reference from Start Menu to Desktop
        If Debugger.IsAttached = False Then
            Try
                System.IO.File.Copy(CurrentUserStartMenu + "\" + My.Application.Info.CompanyName.ToString + "\" + My.Application.Info.ProductName.ToString + ".appref-ms", CurrentUserDesktop + "\" + My.Application.Info.ProductName.ToString + ".appref-ms", True)
            Catch ex As Exception
                'Ignore if could not create/update desktop shortcut
            End Try
        End If

    End Sub

Public ReadOnly Property CurrentUserStartMenu() As String
'Get Filepath of Current User's Start Menu
Get
Dim RegKey As RegistryKey
Try
RegKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders", False)
CurrentUserStartMenu = RegKey.GetValue("Programs")
Catch ex As Exception
If Debugger.IsAttached Then MsgBox("DEBUG MESSAGE" + vbCrLf + vbCrLf + "Could not locate Current User's Desktop")
CurrentUserStartMenu = ""
End Try
End Get
End Property

Public ReadOnly Property CurrentUserDesktop() As String
'Get Filepath of Current User's Desktop
Get
Dim RegKey As RegistryKey
Try
RegKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders", False)
CurrentUserDesktop = RegKey.GetValue("Desktop")
Catch ex As Exception
If Debugger.IsAttached Then MsgBox("DEBUG MESSAGE" + vbCrLf + vbCrLf + "Could not locate Current User's Desktop")
CurrentUserDesktop = ""
End Try
End Get
End Property

You may also want to explore security permissions with the OneClick application. If the application requires full trust, then you must disable UAC (and set registry key EnableLUA to "0").

No Events found!

Top