Disclaimer : This blog post is meant to provide conversion steps for an Office 2010 and Office 2007 CAS package to App-V Sequence using Citrix CAS2APPV converter tool. Readers are recommended to go through the Citrix blog link, before proceeding further.

Please Note: This blog post takes into account most of the Office 2010 sequencing steps from the Microsoft blog and adds certain configurations for converting Office 2010 CAS packages.

OFFICE 2010 – Sequencing WITH INTEGRATION steps for converting Office 2010 – 32 bit CAS TARGET created on a 32 bit OS hosting a Streaming Profiler.

 

At sequencer : [ 32 bit OS ]

Pre-Reqs: Install vc++ 2010 runtime x86 , copy CAS2APPV.exe on sequencer machine

  1. Download office deployment kit for x86. and extract to c:\deploy_x86 : Contents extracted are Folder:”Catalog” and Executable:”OffVirt.msi
  2. From an elevated command prompt – run the commandline : “msiexec /i OffVirt.msi ADDLOCAL=OSpp,OSpp_Core PROPLUS=1 WORD=1 EXCEL=1 POWERPOINT=1For Activation flags above : One needs to check this linkThe FeatureFlags for 32 bit OS are ADDLOCAL=OSpp,OSpp_Core and the activation flags are PROPLUS=1 WORD=1 EXCEL=1 POWERPOINT=1 (with default KMS Host settings).
  3. Download sequencing kit and extract to C:\Sequencing_x86 : Contents extracted are App-V_Seq_Kit.msi, Integrator.exe, ManifestUpdater.exe and Microsoft.AppV.Modernizer.csharp.dll
  4. Open sequencer and browse to Tools\Exclusions. Create exclusion for [{Common AppData}]\Microsoft\Windows and [{Common AppData}]\Microsoft\OfficeSoftwareProtectionPlatform with mapping to VFS.
  5. Start Windows Search service and allow sequencer to proceed to choose installer page
  6. Choose custom install and select package name and select virtual app dir = [INSTALLDIR] -> C:\Program Files\Microsoft Office [Sequencing Kit can’t handle paths with spaces but still this needs to proceed as it is. Keeping a different PVAD is a risk, as we can’t change the destination of files to be unpacked to a different location. Registry values holding file paths are bound to the location that was selected as installation dir during Streamed profile creation.The OFFICE_INSTALL_DIR location is hence “C:\Program Files\Microsoft Office”]
  7.  When the monitoring starts, open command prompt and run the CAS_APPV tool using the standalone method [CAS2APPV.exe “……\.profile”]
  8.  After the unpacking, run the command Icacls “C:\Program Files\Common Files\Microsoft Shared\OfficeSoftwareProtectionPlatform” /grant “NETWORK SERVICE:F” /t
  9.  Wait for a few seconds then open “C:\Program Files\Common Files\Microsoft Shared\Office14\Office Setup Controller” and run Setup.exe [Add new features]. This should complete smoothly, but if the prompt for setup files comes up, simply cancel and allow the config setup to terminate gracefully . Rerun the Setup.exe. The setup.exe is found to cache the LIS files to c:\msocache and at times completes in the first iteration, if not then in the second iteration.
  10.  Launch Word and Excel and allow the configuration setup for these to complete. Word and Excel will be usable soon after the configuration finishes. Check for File->Help Product Activated information. [This would confirm Licensing to be working post unpacking of a CAS profile.] Do not save any word or excel files right now, as the sequencer will pick them up in the list of discovered apps.
  11.  From an elevated command shell, browse to C:\Sequencing_x86 , run command msiexec /i App-V_Seq_Kit.msi PACKAGEROOT=”C:\Program Files\Microsoft Office”  (PACKAGEROOT=INSTALL_DIR) Then copy the OffVirt.msi from c:\deploy_x86 to C:\Program Files\Microsoft Office\Integration\x86 folder.
  12.  On sequencer, click on “I’m Finished installing. Discover Apps. Launch word. Launch, excel , powerpoint , (not onenote )etc. Close and press next to “Collect System changes”
  13.  Press Next and at “Create your basic package or customize further” page, press STOP NOW.  Select “Continue to modify package without saving using the package editor” and Next.
  14.  Select close , browse to Package Files Tab-> Scripts. Choose Add Script and add the binary “integrator.exe” from C:\sequencing_x86\integrator.exe. From an elevated command shell run the command ManifestUpdater.exe LICENSE=”PROPLUS=1 USEROPERATIONS=1 WORD=1 EXCEL=1 POWERPOINT=1″
  15.  Save As.. the appv profile and upload to apphub

At Client: [ 32 bit OS]

  1. Ensure the package scripts are enabled by running the powershell cmdlet Set-AppVClientConfiguration -EnablePackageScripts 1
  2. Add the Package using elevated privileges [Add-AppVClientPackage] and publish the sequence GLOBALLY [Publish-AppVClientPackage]

————————————————————————————————————————————————————————————————————————————–

OFFICE 2010 – Sequencing WITH INTEGRATION steps for converting Office 2010 – 64 bit CAS TARGET created on a 64 bit OS hosting a Streaming Profiler.

 

At Sequencer : [ 64 bit OS ]

Pre-Reqs: Install vc++ 2010 runtime x86 , copy CAS2APPV.exe on sequencer machine

  1. Download office deployment kit for x64. and extract to c:\deploy_x64 : Contents extracted are Folder:”Catalog” and Executable:”OffVirt.msi”
  2. From an elevated command prompt  – run the commandline : “msiexec /i OffVirt.msi ADDLOCAL=OSpp,OSpp_Core,OSppWoW64 PROPLUS=1 WORD=1 EXCEL=1 POWERPOINT=1” For Activation flags above, one needs to check this linkThe featureflags for 64 bit OS are ADDLOCAL=OSpp,OSpp_Core,OSppWoW64 and the activation flags are PROPLUS=1 WORD=1 EXCEL=1 POWERPOINT=1 (with default KMS Host settings)
  3. Download sequencing kit and extract to C:\Sequencing_x64 : Contents extracted are App-V_Seq_Kit.msi, Integrator.exe, ManifestUpdater.exe and Microsoft.AppV.Modernizer.csharp.dll
  4. Opened sequencer and browse to Tools\Exclusiongs. Creat exclusion for [{Common AppData}]\Microsoft\Windows and [{Common AppData}]\Microsoft\OfficeSoftwareProtectionPlatform with mapping to VFS.
  5. Start Windows Search service and allow sequencer to proceed to choose installer page.
  6. Choose custom install and select package name and select primary virtual app dir = [INSTALLDIR] -> “C:\Program Files\Microsoft Office” [Sequencing Kit can’t handle paths with spaces but still this needs to proceed as it is. Keeping a different PVAD is a risk, as we can’t change the destination of files to be unpacked to a different location. Registry values holding file paths are bound to the location that was selected as installation dir during Streamed profile creation. For the time being we will keep the OFFICE_INSTALL_DIR location as “C:\Program Files\Microsoft Office”]
  7. When the monitoring starts, open command prompt and run the CAS_APPV tool using the standalone method [CAS2APPV.exe “……\.profile”]
  8. After the unpacking, run the command Icacls “C:\Program Files\Common Files\Microsoft Shared\OfficeSoftwareProtectionPlatform” /grant “NETWORK SERVICE:F” /t
  9. Wait for a few seconds then open “C:\Program Files\Common Files\Microsoft Shared\Office14\Office Setup Controller” and run Setup.exe [Add new features]. This should complete smoothly, but if the prompt for setup files comes up, simply cancel and allow the config setup to terminate gracefully . Rerun the Setup.exe. The setup.exe is found to cache the LIS files to c:\msocache and at times completes in the first iteration, if not then in the second iteration.
  10. Launch Word and Excel and allow the configuration setup for these to complete. Word and Excel will be usable soon after the configuration finishes. Check for File->Help Product Activated information. [This would confirm Licensing to be working post unpacking of a CAS profile.] Do not save any word or excel files right now, as the sequencer will pick them up in the list of discovered apps.
  11. From an elevated command shell, browse to C:\Sequencing_x64. , run command msiexec /i App-V_Seq_Kit.msi PACKAGEROOT=”C:\Program Files\Microsoft Office”  (PACKAGEROOT=INSTALL_DIR) This MSI creates folders titled CLIENT and INTEGRATION in C:\Program Files(x86)\Microsoft Office\.. location. [32 bit version of file system.] Then copy the OffVirt.msi from c:\deploy_x64 to C:\Program Files (x86)\Microsoft Office\Integration\x64 folder.
  12. Special configuration for Office 2010 x64. Copy the two folders CLIENT and INTEGRATION from “C:\Program Files (x86)\Microsoft Office” to “C:\Program Files\Microsoft Office”. [These two folders are created by App-V_Seq_Kit.msi] Further copy the two files JitV.dll and Interceptor.dll from “C:\Program Files (x86)\Microsoft Office\Office14” to “C:\Program Files\Microsoft Office\Office14 [These two files are also created by the App-V_Seq_Kit.msi . The above step is required because the Office Sequencing Kit creates 64 bit specific folder inside the 32 bit version of Program Files. In the absence of this extra step, one might encounter licensing issues on App-V client. 
  13. On sequencer, click on “I’m Finished installing. Discover Apps. Launch Word, Excel , Powerpoint. Close and press next to “Collect System changes”
  14. Press Next and at “Create your basic package or customize further” page, press STOP NOW. Select “Continue to modify package without saving using the package editor” and Next.
  15. Select close , browse to Package Files Tab-> Scripts. Choose Add Script and add the binary “integrator.exe” from C:\sequencing_x86\integrator.exe. From an elevated command shell run the command ManifestUpdater.exe LICENSE=”PROPLUS=1 USEROPERATIONS=1 WORD=1 EXCEL=1 POWERPOINT=1″
  16.  Save As.. the AppV profile and upload to apphub

At Client: [ 64 bit OS]

  1. Ensure the package scripts are enabled by running the powershell cmdlet Set-AppVClientConfiguration -EnablePackageScripts 1
  2. Add the Package using elevated privileges [Add-AppVClientPackage] and publish the sequence GLOBALLY [Publish-AppVClientPackage]

OFFICE 2007 – Sequencing steps for converting Office 2007 – 32 and 64 bit CAS TARGET.

At Sequencer:

Pre-Reqs:

  • Install vc++ 2010 runtime x86 , copy CAS2APPV.exe on sequencer machine
  • Ensure the OS bitness and platform matches the specific Target type of CAS package meant for conversion.

Steps

  1. Open App-V 5.0 SP2 Sequencer, stop Windows Defender and Windows Search Services (if running) and proceed to choose installer page.
  2. Choose custom install and enter package name and select primary virtual app dir = [INSTALLDIR] -> “C:\Program Files\Microsoft Office”
  3. When the monitoring starts, open command prompt and run the CAS_APPV tool using the standalone method [CAS2APPV.exe “……\.profile”]
  4. Once this completes, run the Office Setup Configuration Wizard and allow it to complete. Run Word, Excel and Powerpoint applications and allow any configuration setup to complete gracefully.
  5. On sequencer, click on “I’m Finished installing. Discover Apps. Launch Word, Excel , Powerpoint. Close and press next to “Collect System changes. Press Next and at “Create your basic package or customize further” page, press STOP NOW.
  6. Save As.. the AppV profile and upload to apphub.

At Client

  1. Add the Package using elevated privileges [Add-AppVClientPackage] and publish the sequence GLOBALLY [Publish-AppVClientPackage]