The release of XenApp and XenDesktop 7.11 gives administrators the ability to publish various types of content to StoreFront that can be consumed directly by end-users. There was previously a similar feature in IMA versions of Citrix XenApp.
The type of content that can be published include:
- HTML web sites.
- Documents such as PDF, DOCX, JPEG, XLS from FTP servers, web servers or file servers.
- Directories on FTP servers.
- Directories on file servers.
Such content is published using the StoreFront PowerShell SDK at the current time and consumed either by using Receiver client or Receiver for Web. The option to publish content through the Studio GUI may come in a later release. You can also publish the same type of content using Citrix Clouds XenApp and XenDesktop Service.
To get started launch PowerShell, connect to a Delivery Controller and load the Citrix snap-ins. To add an HTML webpage as published content run command New-BrokerApplication -ApplicationType PublishedContent -Name YourAppName -CommandLineExecutable YourWebAddress -DesktopGroup YourDeliveryGroupName.
Once complete you’ll be presented with the PublishedContent application settings.
The Pulbished Content application will appear under Applications in Citrix Studio as normal. There are some properties you can change if you right-click on the application and select Properties.
You can specify keywords just like you can with any other published application.
You can change the web address later down the line if for example the address changes.
You can also limit the application to certain groups or users. By default what is set at the Delivery Group defines which users can access the application.
You’ll notice that by default the Published Content application is set with an icon. That icon will probably not be one you want to use going forward, but you cannot change the icon via the GUI. To change the application icon, you first need to upload the icon and then associate that icon with the Pulished Content application using PowerShell. To upload an icon click Add Applications.
Create a dummy application, before you finish adding the application click on Properties within the Applications screen.
Click on Delivery -> Change.
Check Choose an icon from a file on a representative machine and click Browse.
Browse for an add the icon of your choice. The icon can be in JPEG, PNG format for example as most pictures are.
Finish off adding the application by clicking Finish. Doing this will upload the icon to the Citrix site database.
Now you should delete the dummy application as it is no longer needed.
Launch PowerShell and run command Get-BrokerIcon | fl Uid. The highest Uid number will be the icon you just uploaded. In my case, Uid 8.
Since we now have the Uid number, run command Set-BrokerApplication -Name YourAppName -IconUid YourIconUidNumber.
Refresh Applications within Citrix Studio and your Published Content app will display the new icon.
Log on to StoreFront and you’ll also see the new Published Content application and desired icon. Click on the app to launch.
The application will launch within your own local browser and browse to the website you specified. If you want to add a document Published Content application run command New-BrokerApplication -ApplicationType PublishedContent -Name YourAppName -CommandLineExecutable \\yourshare\yourfile.extension -DesktopGroup YourDeliveryGroup.
If you want to add a share as Published Content run command New-BrokerApplication -ApplicationType PublishedContent -Name YourAppName -CommandLineExecutable \\yourshare -DesktopGroup YourDeliveryGroup.
Note: If you receive a Only HTTP and HTTPS URLs can be opened error when launching file shares from Citrix Receiver, enable the Receiver policy setting Allow/Prevent users to publish unsafe content. Download the latest Citrix Receiver ADMX files to view this setting within Group Policy.
Published Content may not start successfully when launched through Citrix Receiver client. Content launched through Receiver for Web works fine. (XenApp and XenDesktop 7.13-7.14).