Using RunVirtual to Present Excel Addins

Related Posts
18 Comments

Good post, But in your situation where you are creating a Connection group you don’t need the dummy app as you can use the connection group packageid and versionid in the RunVirtual Key.

I came across this article when trying to find out how you determine what SCCM 2012 with use as a package and version ID when creating a connection group from an virtual environment. It appears that this is random so the dummy package will definitely help in this situation.

Hi Rich.  Thanks for your comment!  And it’s an interesting point.   When you say “you can use the connection group packageid and versionid” do you mean the connection group AppConnectionGroupId and VersionId?  Or do you mean the PackageId and VersionId of an arbitrary connected package within the connection group?

Yeah, i guess the intention of the dummy package is to maintain a static PackageId and VersionId, so we can manage the connected packages and the connection group separately.

Yes I meant the AppConnectionGroupId and VersionId of the connection group.

I’m using Virtual Environments through SCCM and thought that when the connection group gets created on deployment those id’s would be static. But they don’t appear to be from my testing.

My scenario is a couple of IE add-ons which I’ve created applications for I then add them both to a virtual environment in CM 2012.

when either is published the connection group also gets generated on the client by sccm running powershell.

I was thinking then I could obtain the groupid and versionid and manage that in a RunVirtual key. But it appears not.

I think I understand where you’re coming from, although I don’t currently use SCCM here so am unable to fully test your scenario.  How are you setting the RunVirtual registry key?  Does the connection group Name remain static or does that get given a dynamic name when published?  If the name remains static you could potentially use the powershell approach documented here but tweak it slightly replacing ‘Get-AppvClientPackage‘ with ‘Get-AppvClientConnectionGroup’ and ‘$_.PackageId.toString()‘ with ‘$_.AppConnectionGroupId.toString()‘.  Disclaimer: Untested!! 🙂

Note that the suggestion that the dummy package is not needed only applies to deployments using SCCM virtual environments. Delivery via App-V server requires at least one non-ootional package.

 

Tim

 

Thanks Tim, and thanks Rich. I’ve added some comments at the end of Step 1 for reference. Hopefully I’ve understood correctly! And thanks Tim for all your work in the App-V field! It’s helped me immeasurably in the past and I’m sure it will in the future!

Gary Coyle

Hi Kae

I have been testing the Dummy package and connection group method.

Do I have to ref the PackageId and VersionId of the Dummy Package in my 2 x Outlook addin packages for the RunVirtual keys as below:

<appv:Package DisplayName=”RunVirtualDummyPackage” PackageId=”58cc1eb5-cc96-49ca-9527-3a2edefc3eee” VersionId=”c5452e9e-b63e-4774-aa68-e7e11862b8f7″ IsOptional=”false” />
<appv:Package DisplayName=”Symantec_Enterprise_Vault_11.0.7802_V01″ PackageId=”e7804b49-f033-4999-8724-acbe7bbfc62b” VersionId=”*” IsOptional=”true” />
<appv:Package DisplayName=”NewsGator_SocialSites_5.0.0_V01″ PackageId=”feda7c7c-0ffe-4cbc-9d78-92720275b50c” VersionId=”*” IsOptional=”true” />

Hi Gary.  That looks about right for your connection group XML.  You don’t have to reference anything from your packages – connection groups are managed separately from your packages (it’s not like the old .OSD/DSC days!).  You either manage them directly on your publishing server, or for local testing, generate a connection group XML like the above article explains.  Thanks.

Gary Coyle

..so what PackageID_VersionId gets copied to the Registry..? Only one entry will get populated in the registry. Does that not need to be the Dummy Package values..?

Gary

Correct – the RunVirtual registry points to the ‘dummy’ package PackageId/VersionId, and you connect that ‘dummy’ package to all your addins using the connection group.

Gary Coyle

Hi Kae..another question..!

In testing I have published several apps to the user and utilised the dummy package method/appxmanifest.xml

If I publish oracle smartview after the dummy package that then shows in the excel ribbon. I then publish acrobat pro and the pdf plugins do not show..

If I start from scratch and reverse the order then the pdf addins show but smartview does not. Get-Appvclientpackage shows the apps as “in use”

Connect group.xml below..

<?xml version=”1.0″ encoding=”UTF-16″?>
<appv:AppConnectionGroup xmlns=”http://schemas.microsoft.com/appv/2014/virtualapplicationconnectiongroup” xmlns:appv=”http://schemas.microsoft.com/appv/2014/virtualapplicationconnectiongroup” AppConnectionGroupId=”4c41e1f7-43c3-46b7-a2fd-1e59e4abf3e8″ VersionId=”091392ea-b906-42c6-a1c7-2922b6476893″ Priority=”0″ DisplayName=”Office_Suite_Addins_Connection_Group”>
<appv:Packages>
<appv:Package DisplayName=”DummyPackageOfficeSuite” PackageId=”92636c8e-cc51-469f-856d-b389b209a3b0″ VersionId=”6ff31596-ee18-47bc-b62f-213d71cbb2a7″ IsOptional=”false” />
<appv:Package DisplayName=”Adobe_Acrobat_Pro_X_10.1.16_V01″ PackageId=”b8c914a5-7183-4b08-99a9-0b9b8e92da3f” VersionId=”*” IsOptional=”true” />
<appv:Package DisplayName=”Adobe_Acrobat_Standard_11.0.11_V01″ PackageId=”f201fa4d-936f-470f-a063-0878a4adeaa9″ VersionId=”*” IsOptional=”true” />
<appv:Package DisplayName=”Oracle_SmartView_11.1.2.5.600_V01″ PackageId=”f2f71d48-49fd-4a63-90d6-de5d154f582a” VersionId=”*” IsOptional=”true” />
<appv:Package DisplayName=”PoliteMailSoftware_PoliteMail_4.60.12.0351_V01″ PackageId=”2c1743b5-b451-4fa6-a67f-890dfb2dadfa” VersionId=”*” IsOptional=”true” />
</appv:Packages>
</appv:AppConnectionGroup>

 

Hi Gary.  It’s difficult to say without debugging, but I suspect it’s due to isolation levels of registry keys and/or folders.  You may have to set them to merged as opposed to isolated/override.  Tim refers to a similar thing here: http://www.tmurgent.com/TmBlog/?p=2240.  Please post back if this is the case as I can add it to my blog.

Gary Coyle

Update…one thing we found when using the Dummy Package method was that none of the Connection groups were created on the client if the “Ignore Version” option was ticked. Once we removed that tick all the groups appeared on the client..

Thanks for the update, Gary….I’ll look into it if I get a second.

Hi Kae

Another thing we are noticing when using the App-V Console to publish the “dummy package” and the “Office addins” apps via the office connection group, we get an Office 2016 activation window. We publish to the user. Office is local to the VDI. Weirdly if we remove ourselves from this connection group we no longer get the activation window. We are going to try and use Tim’s script to then publish the Dummy app to the machine and see the results.

Keep you posted…

Gary

Thanks Gary. It’s been a while since I visited this so your feedback is really helpful….

Prakash

Hi Kae,

We have the above solution in place and so far it has worked. However we now have an issue our Office Dummy Suite package has only Allow virtual applications full write permissions to the virtual system but the application Morningstar needs Allow all COM objects to interact with the local system checked and this obliviously fails in that the connection group is not aligned, although the application works but in event viewer there are errors.

Do you know anyway around this?

Thanking you in advance for your help.

Prakash

 

Hi. You probably need to have the same configuration in all package in the connection group. You have to allow all COM objects in the dummy package aswell.

Leave a Reply
Send us a message

Send your message any time you want.

Our usual reply time: 2 Business Hours
Send us a message

Have a question? Send us a message.

Our usual reply time: 2 Business Hours