<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Clickonce Application in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Clickonce-Application/m-p/19198#M17503</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out after enough poking around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;web("&lt;SPAN style="color: #800080; font-family: Consolas;"&gt;clickonce application.appref-ms");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2016 21:16:05 GMT</pubDate>
    <dc:creator>kyle_lamson</dc:creator>
    <dc:date>2016-06-23T21:16:05Z</dc:date>
    <item>
      <title>Clickonce Application</title>
      <link>https://community.jmp.com/t5/Discussions/Clickonce-Application/m-p/19196#M17501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have the syntax needed to run a clickonce application. I've tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000dd; font-size: 10pt; font-family: Consolas;"&gt;RunProgram&lt;/SPAN&gt;&lt;STRONG style=": ; font-size: 10pt; font-family: Consolas;"&gt;(e&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;xecutable&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Consolas;"&gt;"clickonce application"&lt;SPAN style="color: #000000;"&gt;))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Consolas;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;Which I figured wouldn't work. Are there any other options? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 18:51:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Clickonce-Application/m-p/19196#M17501</guid>
      <dc:creator>kyle_lamson</dc:creator>
      <dc:date>2016-06-23T18:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Clickonce Application</title>
      <link>https://community.jmp.com/t5/Discussions/Clickonce-Application/m-p/19197#M17502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following might be of use, it was taken from:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.brad-smith.info/blog/archives/535" title="http://www.brad-smith.info/blog/archives/535"&gt;http://www.brad-smith.info/blog/archives/535&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Starting ClickOnce applications&lt;/H2&gt;&lt;P&gt;Unlike normal executables, applications deployed using ClickOnce are started using a bootstrapper (which is normally handled by the shell). This includes applications written in Windows Forms, WPF or Silverlight. Shortcuts to ClickOnce apps have the extension &lt;SPAN class="fixed-width"&gt;.appref-ms&lt;/SPAN&gt; (rather than &lt;SPAN class="fixed-width"&gt;.lnk&lt;/SPAN&gt; for regular shortcuts), and these files are not recognised by the start command (as in the previous example).&lt;/P&gt;&lt;P&gt;Thankfully, they can be run using the following syntax:&lt;/P&gt;&lt;P class="syntaxhighlighter"&gt;&lt;/P&gt;&lt;DIV class="bar"&gt;&lt;P class="lines"&gt;&lt;/P&gt;&lt;DIV class="alt1 line"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="number"&gt;&lt;CODE&gt;1&lt;/CODE&gt;&lt;/TD&gt;&lt;TD class="content"&gt;&lt;CODE class="plain"&gt;rundll32.exe dfshim.dll,ShOpenVerbShortcut [path to appref-ms file]&lt;/CODE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Where &lt;SPAN class="fixed-width"&gt;[path to appref-ms file]&lt;/SPAN&gt; is the full path to the ClickOnce shortcut file. The path may include environment variables such as &lt;SPAN class="fixed-width"&gt;%USERPROFILE%&lt;/SPAN&gt; if, for example, you want to point to a shortcut on the user’s desktop.&lt;/P&gt;&lt;P&gt;How does this work?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The &lt;SPAN class="fixed-width"&gt;rundll32&lt;/SPAN&gt; command executes a function in a Win32 DLL as if it were an executable file. You might want to use this when you have a function which is predominantly called from code (but still operates independently), if you want to avoid creating many executables when a single DLL will suffice, or to deliberately obfuscate a command that users are not intended to start.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="fixed-width"&gt;dfshim.dll&lt;/SPAN&gt; is responsible for much of the functionality in ClickOnce; it contains functions to install, remove, start and update applications, and is distributed as part of the .NET Framework.&lt;/LI&gt;&lt;LI&gt;The name of the function we want is &lt;SPAN class="fixed-width"&gt;ShOpenVerbShortcut&lt;/SPAN&gt;, which is the same function that the windows shell uses to run .appref-ms shortcut files. You simply pass a path to the function and it takes care of the rest.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 20:53:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Clickonce-Application/m-p/19197#M17502</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2016-06-23T20:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Clickonce Application</title>
      <link>https://community.jmp.com/t5/Discussions/Clickonce-Application/m-p/19198#M17503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out after enough poking around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;web("&lt;SPAN style="color: #800080; font-family: Consolas;"&gt;clickonce application.appref-ms");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 21:16:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Clickonce-Application/m-p/19198#M17503</guid>
      <dc:creator>kyle_lamson</dc:creator>
      <dc:date>2016-06-23T21:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Clickonce Application</title>
      <link>https://community.jmp.com/t5/Discussions/Clickonce-Application/m-p/216553#M43267</link>
      <description>&lt;P&gt;The rundll32 method works by itself but I cannot find a way to pass parameter to the .appref-ms.&amp;nbsp; I eventually solved the problem by using the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;RunProgram(
	executable( "cmd.exe" ),
	options(
		{"/c",
		"\!"PathToShortcut.appref-ms\!"",
		"parameter"}
	),
	readfunction( "text" )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I added the double quotes to my&amp;nbsp;PathToShortcut.appref-ms because it has spaces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 17:14:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Clickonce-Application/m-p/216553#M43267</guid>
      <dc:creator>pzang</dc:creator>
      <dc:date>2019-07-08T17:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Clickonce Application</title>
      <link>https://community.jmp.com/t5/Discussions/Clickonce-Application/m-p/216848#M43328</link>
      <description>&lt;P&gt;Using the rundll32 method, the parameter can be passed to the clickonce program like below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;RunProgram(
	executable( "rundll32.exe" ),
	options( {"dfshim.dll,ShOpenVerbShortcut","PathToShortcut.appref-ms|parameter"} ), 
	readfunction( "text" )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 01:26:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Clickonce-Application/m-p/216848#M43328</guid>
      <dc:creator>pzang</dc:creator>
      <dc:date>2019-07-10T01:26:13Z</dc:date>
    </item>
  </channel>
</rss>

