This article describes how to patch an appset in Cloudpaging Studio, and the steps required to deploy the patched version of the app to both new and existing users via AppsAnywhere.
The patching feature in Cloudpaging Studio allows you to make changes to an existing appset (that may already be deployed and in use). The patched version of the app can then be pushed out to existing users as an automatic upgrade.
This functionality is most useful to:
Fix a small issue with an appset
Add a vendor patch or update
Incorporate a new license key
Patching is not recommended for large scale changes to an appset. For instance, this method should not be used to deploy an entirely new version of an app.
Patching an Appset
Open Cloudpaging Studio and click Patch.
See the Open for Patching dialog appear on screen. Navigate to and select the project file (.stw) for patching, then click Open.
From the Cloudpaging Studio menu toolbar, select Application | Extract Application and browse to the appset (.stp) file. Then click Open to start the extraction process.
Capture the vendor installer or custom script that you want to create a patch from; following the normal capture process. Changes cannot be made manually; they must be captured.
Finalize the capture when complete.
On the Project tab, change the title in the Revision information to “Version 1.1” or something descriptive such as “2019 License Update”.
Click Cloudify and then click OK to save the changes to your Cloudpaging Studio project file. A Save Project dialog will now appear on screen. Click Create a backup of the original project and then click OK. This will create a backup copy (.bak) of the original project file (.stw).
The output filename for the patched appset (.stp) will be the same as the original, so to distinguish between them, save to a new directory.
Edit the Output folder path to specify a new directory to store the patched appset – e.g. Rel1.1. Then click OK.
The Appset file (.stp) is the path to the original .stp file, and should not be changed.
Extract the patched appset to a local directory using a utility such as 7-Zip.
To test the patched version, rename the original AIB file e.g. add the extension .bak.
Then rename the patched AIB file to have the same name as the original. In this example Rel1.1 becomes Rel1.
Finally, to test the patched version of the app locally, double click on the .tok file on a machine with Cloudpaging Player installed.
Enabling the Patch via Cloudpaging Server
Note: The patched appset retains all versioning information. Users will be unaffected during this stage.
After testing the appset locally, copy the new .stp file into the Cloudpaging repository, overwriting the existing published .stp file.
Log in to the Cloudpaging admin portal (https://cloudpaging.uni.edu/jukeboxserver) and navigate to Manage Applications.
Click on the application to patch (or select the application).
Click on the Patch/Edit button.
Select the patch version from the drop down, then press Finish.
Patch Deployment to New Users
Open AppsAnywhere and Return to Admin.
Select Applications | Manage Applications.
Click Edit next to the app that you have patched.
Select Delivery Methods, and click Add Delivery Method to create a new delivery method for the patched application.
Note: Current Delivery Method shows the existing Cloudpaged delivery methods in use by the patched application. These should not be changed, a new delivery method must be added.
Select the Cloudpaging delivery method.
From the Deploy Version dropdown list, choose the patched version to deploy. If Deploy Version is not visible, click on Show Advanced Settings,
Configure the Restrictions and Operating System Compatibilities to match the settings for the original unpatched delivery method.
Click Save to publish the new version. The new delivery method will be listed in the Current Delivery Methods section.
Move the new delivery method above the old delivery method to give it a higher priority, then click Save Order.
The patched version will now be delivered to new users of the application.
Patch Deployment to Existing Users
Open AppsAnywhere and click Return to Admin.
Select Cloudpaging | Manage Upgrades.
Select the patched Application and set the Type of upgrade to Patch.
Under From Delivery Method select the original Delivery Method.
Under To Delivery Method select the new Delivery Method (for the patched version).
Ensure that Is Mandatory is selected.
Then click Save to apply the upgrade.
The patched version will now be delivered to existing users of the application.
The next time that an existing user launches the original app, they will be prompted that a minor upgrade is available.
The user must close the app to initiate the upgrade to the patched version.
If the user does not close the app they will see a 2-minute warning, and a subsequent 1-minute warning.
After 2 minutes the user is forced to close the app by clicking OK.
The app is then removed automatically, and the patched version virtualized and launched instead.