Jump to content


Photo

seamless Clickonce

Started by RJ Riemensnider , 06 February 2014 - 01:47 PM
17 replies to this topic

RJ Riemensnider Members

RJ Riemensnider
  • 55 posts

Posted 06 February 2014 - 01:47 PM

Hi, now that 2012R2 supports clickonce apps I have successfully deployed a seamless Clickonce app via remoteapp but am having trouble doing the same with XenDesktop 7.1 on the same 2012R2 session host server.  The only info I can find is an outdated article that states that Clickonce apps are not supported in terminal services which of course now they are on 2012R2.

 

I atemted to publich the .application file which worked for remoteapp but not in Citrix.  Has anyone had success publishing cliclonce apps in 2012R2 OS based Citrix?



Roger Eklund Members

Roger Eklund
  • 268 posts

Posted 06 February 2014 - 02:05 PM

I think you cant publish the .application files through citrix, you have to publish IE with a link to the app. As the app installs itself in the users profile make sure its part of the users roaming profile or redirected, otherwise it will install itself everytime he starts a new session.

 

-rog



RJ Riemensnider Members

RJ Riemensnider
  • 55 posts

Posted 06 February 2014 - 02:10 PM

Thanks for the reply.  I have had no luck with that.  With remoteapp, I can publich the .application file that is downloaded from the browser and it works fine but with citrix, using the same 2012R2 session host, I cant even launch the .application file if I publish iexplore.exe.  I can run the .application file if I publish the full desktop though.



Roger Eklund Members

Roger Eklund
  • 268 posts

Posted 06 February 2014 - 02:42 PM

i found this kb from citrix about clickonce problems. Its regarding 2k8r2 thou but might be aplicable to you problems aswell.

 

http://support.citrix.com/article/CTX125453

 

More then that im out of ideas. =)

 

Cheers

-rog



RJ Riemensnider Members

RJ Riemensnider
  • 55 posts

Posted 06 February 2014 - 03:35 PM

Thanks Rog, that was the article I was referring to as outdated, it states that Clickonce apps are not supported in a terminal services environment however now with 2012R2, they are.  Thanks again for the info.

 

Here is what I have tried.....

 

 

Publish the .application file          app failed to start message

 

Publish a .bat file                         app failed to start message

 

Publish iexplore/click on link         Running security scan, then nothing

 

Publish iexplore/downloads/         Nothing

Click on download                       

 

Publish dir with explorer/click        Works

on .application file



Carl Stalhood CTP Member

Carl Stalhood
  • 11,621 posts

Posted 06 February 2014 - 03:55 PM

If you want to publish a non-standard File Type, run the following commands to determine the actual executable:

  • assoc .application - which returns Application.Manifest
  • ftype Appilcation.Manifest - which returns application.manifest="C:\Windows\System32\rundll32.exe" "C:\Windows\System32\dfshim.dll",ShOpenVerbApplication %1

     



RJ Riemensnider Members

RJ Riemensnider
  • 55 posts

Posted 06 February 2014 - 04:14 PM

I get the same for assoc .application but I get the following for ftype Application.Manifest:

 

File type 'Appilcation.Manifest' not found or no open command associated with it

 

 

However, if I double click on the .application, it does run.
.



Carl Stalhood CTP Member

Carl Stalhood
  • 11,621 posts

Posted 06 February 2014 - 04:28 PM

Typo. You have l and i backwards.



RJ Riemensnider Members

RJ Riemensnider
  • 55 posts

Posted 06 February 2014 - 04:43 PM

Sorry, I was lazy and cut and pasted.  I get exactly what you posted.  So in troubleshooting if I use the following, I can launch the app via cli:

 

C:\Users\administrator.CONTEC01>"C:\Windows\System32\rundll32.exe" "C:\Windows\S
ystem32\dfshim.dll",ShOpenVerbApplication C:\IFSInstall\IFS-App8-Prod\Ifs.Fnd.Ex
plorer.application

 

 

However if I use C:\Windows\System32\rundll32.exe as the exe and "C:\Windows\System32\dfshim.dll",ShOpenVerbApplication C:\IFSInstall\IFS-App8-Prod\Ifs.Fnd.Explorer.application as the command line argument, I get nothing.

 

Thanks again for the help.



RJ Riemensnider Members
  • #10

RJ Riemensnider
  • 55 posts

Posted 06 February 2014 - 04:54 PM

I published cmd.exe.  In seamless, when I launch the .application, nothing happens, in a published desktop, in a cmd.exe window I can successfullt launch the .application file.



RJ Riemensnider Members
  • #11

RJ Riemensnider
  • 55 posts

Posted 06 February 2014 - 06:33 PM

Ok, I found the culprit.  It's dfsvc.exe.  In a full session, when I click on the .application file, this exe starts and manages the version checking for the actual executable for the application manifest.  In a seamless window, this dfsvc does not start.  I published a cmd session and attempted to start the .application with no luck.  So then from the cmd prompt I started explorer and still couldn't start the .application by double clicking on it.  So I right clicked, did an open with, and selected keep using oncclick and then I could start it.  So not I am attempting to script starting dfsvc.exe before the .application file is run. 



RJ Riemensnider Members
  • #12

RJ Riemensnider
  • 55 posts

Posted 06 February 2014 - 07:45 PM

This has proven more difficult than I expected.  From a command prompt I can run C:\Windows\Microsoft.NET\Framework64\v4.0.30319\dfsvc.exe

then run the application file just fine but If I try to run dfsve.exe from a batch file, it hangs there and won't go any further.



Carl Stalhood CTP Member
  • #13

Carl Stalhood
  • 11,621 posts

Posted 06 February 2014 - 07:49 PM

Try "start dfsvc". Then you'll probably need LogoffChecksysModules registry key to kill it.

RJ Riemensnider Members
  • #14

RJ Riemensnider
  • 55 posts

Posted 06 February 2014 - 08:05 PM

Success!  Thank you!

 

I ended up having to issue the start command, then sleep 1, then the .application file otherwise the dfsvc.exe want available then the .application started. 

 

Thanks again for the help.  Any idea why the file association is different in a full desktop vs seamless?  I compared the ftype Application.Manifest in seamless and full and both were the same.



Nikos Zafirakis Members
  • #15

Nikos Zafirakis
  • 17 posts

Posted 23 March 2015 - 11:00 AM

Success!  Thank you!

 

I ended up having to issue the start command, then sleep 1, then the .application file otherwise the dfsvc.exe want available then the .application started. 

 

Thanks again for the help.  Any idea why the file association is different in a full desktop vs seamless?  I compared the ftype Application.Manifest in seamless and full and both were the same.

 

 

 

Hi, 

can you please share the full command that you used? 

 



Braxton Koppelman Members
  • #16

Braxton Koppelman
  • 12 posts

Posted 27 April 2015 - 06:02 PM

I was able to successfully publish this in XenApp 6.5 referencing this article here:

 

http://jonspallone.com/2012/02/08/admins-click-once-twice-three-times-for-clickonce/

 

It also works with XenDesktop MCS or PVS with PvD enabled after testing.  Essentially you're just removing the .exe and manifest files from where the ClickOnce install is located in the profile and then hosting them in a shared location on a server or desktop.  The only wrench that's thrown into this configuration is that the files must be manually updated when they are released for the ClickOnce application.  May not work for all apps but this worked for me.



Nikos Zafirakis Members
  • #17

Nikos Zafirakis
  • 17 posts

Posted 28 April 2015 - 08:50 AM

I was able to successfully publish this in XenApp 6.5 referencing this article here:

 

http://jonspallone.com/2012/02/08/admins-click-once-twice-three-times-for-clickonce/

 

It also works with XenDesktop MCS or PVS with PvD enabled after testing.  Essentially you're just removing the .exe and manifest files from where the ClickOnce install is located in the profile and then hosting them in a shared location on a server or desktop.  The only wrench that's thrown into this configuration is that the files must be manually updated when they are released for the ClickOnce application.  May not work for all apps but this worked for me.

 

 

Thank you for your time. It seem that this method works ok. Of course. as you said the negative is that the application is static and not automatically updated from a remote location.



jsconsultoria Members
  • #18

Jeff MacKenzie
  • 3 posts

Posted 16 February 2017 - 11:13 PM

I have the same problem you did and would like to know what the full command is but the link you shared is no longer valid. Can you post it here please?