App-V Recipe: Evernote

Application Name: Evernote      unnamed

Application Version: 5.4.0.3698

Download: Evernote

Install Directory: C:\Program Files (x86)\Evernote

Sequencing OS used: Windows 7 64-bit

Sequencer Version: 5.0 SP2 Hotfix 4

Exclusions Added: [{System}], [{Windows}]\ServiceProfiles, [{Windows}]\Logs, [{Profile}], [{LocalAppDataLow}], [{Desktop}], REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Evernote

Preparing the Sequencing VM

Warning: It’s my personal opinion that for Evernote, I do not like the experience using this as a virtual application when deployed with App-V to a desktop. However, this is a fine solution for using the application in XenApp or RemoteApp. This is because I feel it loads slower in App-V then when local. Also this particular application has multiple integration points. It can integrate with Web Browsers and with Outlook which makes this one a little tricky. From everything I tried when sequencing this, I could not get the IE plug-in to work. The Outlook Add-in can work through traditional methods but it’s my opinion that deploying with the locally installed MSI is best if you want to leverage those integration points. Never the less, at the end of this post, I will suggest how to leverage the Outlook Add-in.

Before Sequencing. It’s a good idea to install Evernote on a different machine, log in, browse to Tools –> Options

Options

I suggest unchecking Show advertisements as above and you definitely want to uncheck ‘Automatically check for updates’.

Export

When you have configured these settings. Open regedit and browse to HKEY_CURRENT_USER\Software, right click and export the registry hive to a reg file e.g. Evernote.reg

Open Notepad, enter

Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Evernote]

Save the file as EvernoteRemove.reg, ensure it’s not saved a text file and IS an actual reg file.

Copy Evernote_5.4.0.3698.exe, Evernote.reg and EvernoteRemove.reg to your VM and ensure the above Exclusions are added to the sequencer

Begin Sequencing

Launch Sequencer and Click Next until you get to the below screen

Step1

 

Click ‘Perform a custom installation’ and Click Next >

Step2

 

Enter a name that adheres to your own naming standards. Enter a Primary Virtual Application Directory e.g. C:\ENDummy and Click Next >

Step3

 

When you get this dialog, you’re ready to install. Launch Evernote_5.4.0.3698.exe

Step4

 

Click ‘I accept the terms in the License Agreement’ and then click Install

Step5

 

Click Finish. Copy Evernote.reg and EvernoteRemove.reg to your PVAD e.g. C:\ENDummy

Step7

Click ‘I am finished installing’ and Click Next >

Step8

 

Click Next >

Step9

 

Click Next >

Step10

 

Click ‘Stop now’ and Click Next >

Step11

 

Click ‘Continue to modify package without saving using the package editor’ and Click Next >

Step12

 

Click Close

Step13

 

Enter your own name in the Description to track who sequenced the package

Step14

 

Under Package Files, navigate to Windows\Installer and Delete the cached MSI

Step15

 

Under the Advanced tab, check the ‘Allow virtual applications full write permissions to the virtual file system’

Step16

 

Under Shortcuts and FTA’s you may want to remove the Desktop shortcut. You could also add FTA’s for Evernote file types e.g. enex but personally I didn’t bother with this. With App-V 5.0, drag and drop now works. So if I want to open a note, I drag the enex file onto my Evernote application and it works great.

Next I suggest adding the following UserScripts to your Configuration, I opted to export the default configuration and add this to that (I place my scripts at the bottom between the end Subsystems tag and UserConfigurations tag:

<UserScripts>
<PublishPackage>
<Path>cmd.exe</Path>
<Arguments>/c regedit /s [{AppVPackageRoot}]\Evernote.reg</Arguments>
<Wait RollbackOnError=”true” Timeout=”30″/>
</PublishPackage>
<UnpublishPackage>
<Path>cmd.exe</Path>
<Arguments>/c regedit /s [{AppVPackageRoot}]\EvernoteRemove.reg</Arguments>
<Wait RollbackOnError=”false” Timeout=”30″/>
</UnpublishPackage>
</UserScripts>

If you have sequenced Office, you can create a Connection Group through the App-V Management Site or if you use SCCM you can use a Virtual Environment.  This will allow the Office Add-in to work. Alternatively if you use a locally installed Office you can either change the Outlook Shortcut to launch with the virtual Evernote e.g. Change the Outlook  shortcut to include the parameter appvve:/ApplicationID_VersionID (Which can be found if you run the Powershell cmd get-appvclientpackage *Evernote*) or just create a new shortcut within the Sequencer which points to a locally installed Outlook. (You’ll need Office installed on your VM for this).

Updating or Un-publishing this application is a little challenging also, as it spawns a child process. That child process needs to be killed before the update or unpublished can proceed. Log-off or restart will kill the task and the action will complete on next refresh so it’s not a huge deal. It’s just annoying. I attempt to use the TerminateProcess feature but this has not worked in some cases for me and has not worked here.

This application creates directories under AppData\Local and AppData\LocalLow during run-time. Also, there’s obviously many settings stored under HKEY_CURRENT_USER\Software\Evernote . This may be useful to those of you using the likes of RES Workspace Manager, AppSense or UE-V

Leave a Comment