Follow

ClickOnce application creating multiple invalid shortcuts/icons on non-persistent VDI desktop

Product: ProfileUnity

Product Version: 5.5

Expires on: 365 days from publish date

Updated: May 29, 2013


Problem:
With each login when "Click Once" application "Loan Producer" is launched it creates multiple icons on desktop.

Symptoms:
When application is stated it asks for permission to install, thus creating another icon on redirected desktop.
 
Application Install - Security Warning
Do you want to install this application?
    • Name: Loan Producer
    • From: loanproducer.fics
    • Publisher: Financial Industry Computer Systems, Inc.
    • (Install) (Don't Install)
Example:
 
ClickOnce1.jpg
 
Each time user logs off the machine, the files and registry entries which were created by the install are cleared (desktop refreshing) thus rendering the install invalid. After logon, the only eminence of the previous install is invalid shortcut on the desktop.
 
Possible Resolution(s)
In this scenario above there was no rules setup for portability or redirection of Application Data and Local Application data.
 

First Option - Portability of registry entries and files created by application.

 
Files are found @ C:\Users\%username%\AppData\Local\Apps\2.0
Registry entries @ HKCU\Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment
 

Step 1. Create ClickOnce ruleset.

Open ProfileUnity Console>Portability Management>Create

Name: ClickOnce

Registry Rules: Merge Tree HKCU Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment

Filesystem Rules: Merge Local Application Data Apps\2.0

Save and Update

Example:
ClickOnce2.jpg
 

Step 2. Create Portability Setting of ClickOnce ruleset.

Open ProfileUnity Console>Configuration Management>Edit>Portability Settings>Create>Add Portability Setting Rule

Actions: Save & Restore

Ruleset: ClickOnce

Apply Registry Rules

Apply Filesystem Rules

Save Path: \\Servername\Share\%username%\Portability

UID: ClickOnce

Save and Update

Example:

ClickOnce3.jpg
Save, Update and download the Default.ini to your netlogon\ProfileUnity directory. Log off and log back in. Reinstall the application.
With next logon it should not attempt to install the application again or create any more icons.
 

Second Option - Portability of registry entries and folder redirection of Local Application Data.

 

Step 1. Create ClickOnce ruleset.

Open ProfileUnity Console>Portability Management>Create>

Name: ClickOnce

Registry Rules: Merge Tree HKCU Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment

Save and Update
 
Example:
ClickOnce4.jpg

Step 2. Create Portability Setting of ClickOnce ruleset.

 

Open ProfileUnity Console>Configuration Management>Edit>Portability Settings>Create>Add Portability Setting Rule

Actions: Save & Restore

Ruleset: ClickOnceApply Registry Rules

Save Path: \\Servername\Share\%username%\Portability

UID: ClickOnce

Save and Update

Example:

ClickOnce5.jpg
Step 3. Configure folder redirection of Local Application Data.
 
Note: This option (Step 2) is NOT compatible with Windows XP
 
There are 3 possible type of locations for Local Application Data (and Application Data) redirection
  • UNC path. - This type of location is least compatible with most of the applications
  • Mapped Drive Letter - Although more compatible some application would break because they will resolve this mapped drive letter to UNC path.
  • Attached VHD disk - Most compatible location for applications to accept and use as valid redirected path.(This is the option we will follow below)
 
Note: Because ProfileUnity can redirect Shell Folders it is not possible to redirect only one individual folder within "Local Application Data"
Note: Registry Shell Folders location: HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
 

A) Create Virtual Disk (where the Local Application Data will be redirected)

Open ProfileUnity Console>Configuration Management>Edit>Virtual Disks>Add Virtual Disk Rule

Mount Location: Mount to Path (default, but it could be drive letter)

Mount Path: %userprofile%\Profile-VHD

Virtual Disk Path: \\server\share\%username%\Profile-VHD\%username%-profile-VHD.vhd

Size in GB: 20

Format: Expandable

Save and Update

Example:

ClickOnce6.jpg

B) Configure Folder Redirection of Local Application Data to point to new location.

Open ProfileUnity Console>Configuration Management>Edit>Folder Redirection>Add Folder Redirection Rule

Shell Folder: Local Application Data

Redirect to Folder: %userprofile%\Profile-VHD\AppData\Local

Existing Files: Copy to New Location

Select: "Only Migrate Existing Files on Primary Client"

Save and Update
Example:
ClickOnce7.jpg
Save, Update and download the Default.ini to your netlogon\ProfileUnity directory. Log off and log back in. Reinstall the application.
With next logon it should not attempt to install the application again or create any more icons.

IMPORTANT: Please remember to test the configuration first with test users before deploying to production environment.

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.