logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
dlloyd525  
#1 Posted : Tuesday, July 11, 2017 8:42:20 PM(UTC)
dlloyd525


Rank: Guest

Joined: 7/7/2017(UTC)
Posts: 1
United States

I would like add the ability to launch the support client from our .Net application. At the present time, we open a URL, to our support site, in a web browser on the user's computer. This is a potential security issue for customer's that have locked down computer's.

I tried using the webbrowser control and opening our support website. That works fine, however the click-once client will not install properly using the webbrowser control. It looks for the manifest in the wrong directory.

Is there a hardcoded link to the click once client application? I have found code that will allow me to perform a click once install. (I would be open to pushing a exe or msi with our package if that is the best way.)

Any recommendations will be welcomed.

Dan
Scott  
#2 Posted : Monday, July 17, 2017 11:36:38 AM(UTC)
Scott


Rank: Administration

Medals: Level 4: Wise Old Owl! Received 100 Thanks!

Joined: 3/28/2014(UTC)
Posts: 2,517
United States

Thanks: 3 times
Was thanked: 305 time(s) in 262 post(s)
From a .NET application, such as a C# WPF form, you can pretty easily invoke ClickOnce directly and pass the arguments to start a session.

Within the main class, make sure to import the dfshim library with:
Code:

[DllImport("dfshim", CharSet = CharSet.Auto)]


You can then make a call to the ConnectWise Control server to get the client launch parameters and pass it with the following:

Code:

Program.ShOpenVerbApplication(IntPtr.Zero, IntPtr.Zero, launchUrl, 0);


Where the launchUrl is the client launch parameters as defined here.
ScreenConnect Team
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.