14 Replies Latest reply on Feb 14, 2015 11:29 AM by detrakii9

    VMware ThinApp 5 and Office 2013

    mariu5 Novice

      [Best Practice] VMware ThinApp 5 and Office 2013

       

      Ever since I got my hands on ThinApp 5, I've been trying to thinapp Office 2013. I've tried it in various ways and I think I should give something back to the forum by sharing my experience.

      I captured Office 2013 by following this guide but also did some tweaking and tuning by myself.

       

      Let's start!

       

      1. Extract the Microsoft Office 2013 installation files.
      2. Edit the config.xml file located in the suite.WW directory where suite is the suite of Office you are installing. i.e. for professional plus it's proplus.ww
      3. Add these lines to the bottom of the file above </ Configuration>
        • For KMS licensing activation:

          <Setting Id="KMSSERVICENAME" Value="kmsserver.domain.com"/>
          <Setting Id="AUTO_ACTIVATE" Value="1"/>

          Note: Replace kmsserver.domain.com with your KMS server name.

        • For MAK licensing activation:

          <PIDKEY Value="AAAAA-BBBBB-CCCCC-DDDDD-EEEEE"/>
          <Setting Id="AUTO_ACTIVATE" Value="1"/>
          <Setting Id="USEROPERATIONS" Value="1"/>

          Note: Replace AAAAA-BBBBB-CCCCC-DDDDD-EEEEE with your MAK information.

      4. Run the Setup Capture wizard and take a prescan.
      5. If the deployment operating systems do not all have the same version of .NET installed, capture .NET. For more information, seePackaging guide for .NET (2069188).
      6. Start the Microsoft Office 2013 setup wizard.
      7. Click Customize for the type of installation.
      8. Click Microsoft Office > Run all from My Computer or do your own customization and choose the specific tools you want to install.
      9. Click Install Now.
      10. Launch an Office component, disable auto updates, run through the welcome assistant and do any other customization.
        • For faster startup of Excel, Word and PowerPoint, do this:
          • Go into options of each application
          • Untick the option "Show the Start screen when this application starts"
        • Note: When you start an office application it will log you on with the windows account you're currently working with which in my case was the domain admin.
          This shouldn't bother you at this point as I will you show you how to get rid of this later on.
      11. Stop the OSPP service.
      12. Take a Postscan.
      13. If required, modify the Inventory name.
      14. Open the file HKEY_LOCAL_MACHINE.txt and edit it as shown:
        • Add to the bottom of the file:

          isolation_full HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\WindowsSearch\Preferences
          Value=PreventIndexingOutlook
          REG_DWORD=#01#00#00#00"


      15. Now, to remove the admin account open the file HKEY_CURRENT_USER.txt and edit it as shown:
        1. Search for common\identity
        2. If you want to remove the account and also prevent your users from logging in with their AD accounts, do this:
          • Delete all lines that have to do anything with HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Identity
        3. If you just want to remove your "setup account" but keep the ability to let your users log in, do this:
          • Delete all lines and that have anything to do with your "setup account" but keep these:
            • isolation_full HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Identity
              Value=Version
              REG_DWORD=#01#00#00#00
              Value=FederationCacheExpiration
              REG_SZ~2014-02-27T09:49:34Z#2300
            • isolation_full HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Identity\DocToIdMapping
            • isolation_full HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Identity\Identities
            • isolation_full HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Identity\Profiles
          • I've attached a before and after file example for further explanation
      16. Build the project.

       

      There's one thing though I haven't been able to work out.

      Whenever I add a required applink in the file Package.ini, Office fails to start any application. Instead, a screen pops up where Office tries to install an "Office Feature" but fails to do so and then just quits.

      Has anyone been able to add applinks for Office 2013?

       

      Regards

       

      Marius

        • 1. Re: VMware ThinApp 5 and Office 2013
          Lakshman Virtuoso
          VMware EmployeesvExpert

          Thanks for sharing.

           

          What is the deployment OS where you see the issue? ThinApp supports Office 2013 deployment on only Windows 7.

          It is not supported on Windows 8/8.1 yet.

          • 2. Re: VMware ThinApp 5 and Office 2013
            mariu5 Novice

            It was captured and deployed both on Windows 7 32-Bit.

            • 3. Re: VMware ThinApp 5 and Office 2013
              Lakshman Virtuoso
              vExpertVMware Employees

              That's strange. Does it work if you try 'OptionalAppLink'?

              • 4. Re: VMware ThinApp 5 and Office 2013
                mariu5 Novice

                Unfortunately, it doesn't. See attached files.

                • 5. Re: VMware ThinApp 5 and Office 2013
                  Lakshman Virtuoso
                  VMware EmployeesvExpert

                  Can you attach the package.ini file please.

                  • 6. Re: VMware ThinApp 5 and Office 2013
                    mariu5 Novice

                    Sure. There you go.

                    • 7. Re: VMware ThinApp 5 and Office 2013
                      Lakshman Virtuoso
                      vExpertVMware Employees

                      Cannot find anything odd in the package.ini. Have you checked the permissions of the network share \\PFSVSV022\ThinAppLinks$

                      • 8. Re: VMware ThinApp 5 and Office 2013
                        mariu5 Novice

                        Yes, I did. We have a group with every user in it and set the permissions to Read & Execute, List folder contents and Read.

                        • 9. Re: VMware ThinApp 5 and Office 2013
                          pyabo Novice

                          Hi Mariu,

                           

                          The majority of problems related to licensing & activation in Microsoft Office 2010 and 2013 products are generated because of a missing item or permission associated with the Office Software Protection Platform (OSPP) service.

                           

                          After you setup the config.xml file and capture the installation process some checkpoints must be verified.

                           

                          1) OSPP service (named osppsvc) must run under NETWORK_SERVICE account.

                           

                          2) NETWORK_SERVICE account must have read & write access (full access

                          recommended) to "HKEY_LOCAL_MACHINE

                          \SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" and "HKEY_USERS\S-1-5-20\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform"

                          registry keys and theirs descendants.

                           

                          3) Also, NETWORK_SERVICE account must have full access to "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" (including subfolders and files).

                           

                          You can use a tool like SpyStudio

                          (http://www.nektra.com/products/spystudio-api-monitor/download/) to hook applications and services to discovery what is affecting your package. When you run, for e.g., Word, SpyStudio will show you if a registry entry is missing or a file is not accessible among other things.

                           

                          IMPORTANT NOTE:

                           

                          Although you fix all permission settings, Office license verification may still fail. There are two primary reasons for this:

                           

                          a) If the computer running the ThinApp'ed application differs too much from where it was captured, the generated "machine" hash used internally by OSPP may differ and installation became invalid.

                           

                          b) OSPP makes intense use of WMI which usually cannot be fully virtualized and some data is stored inside WMI database among many other o.s. stuff.

                          Installation may appear ok but still Office may not listed as a product that can be activated.

                           

                          Also, if you discover an issue and fix it, reset the ThinApp'ed application.

                          When OSPP encounters an invalid license, it rewrites some tolen files so later test will fail.

                           

                          Best Regards,

                          Pablo Yabo

                          --

                          @nektra

                          http://www.nektra.com

                          http://blog.nektra.com

                          • 10. Re: VMware ThinApp 5 and Office 2013
                            Stephane Grimbuhler Enthusiast

                            Hi

                             

                            I had troubles thinapping Visio and Project 2013. Mainly activation issues.

                            In collaboration with the VMware support, and based on the KB you mentioned here : this guide

                            I created my own procedure I offer to share with you.

                            It solved the install component wizard and the activation is working (at second launch).

                            But in some random (seems random) case, activation is not working and i have the "no licence for your product" message. I'll try to give rights to folder and reg you mentioned to Network Service account (thanks).

                             

                            here my procedure :

                             

                             

                            You need a clean VM with only the OS installed .

                             

                            1. Copy Microsoft .NET 4, ThinApp installation files to the capture machine.

                            2. Extract the Microsoft Office 2013 installation files from ISO and copy to the capture machine.

                             

                            3. Edit the config.xml file located in [suite].WW directory. Suite of Office you are installing. Add these lines to the bottom of the file above </Configuration>

                             

                             

                            For KMS licensing activation:

                             

                             

                               <Setting Id="KMSSERVICENAME" Value="kmsserver.domain.com" />

                               <Setting Id="AUTO_ACTIVATE" Value="1" />

                             

                               Note: Replace kmsserver.domain.com with the name of your KMS server.

                             

                             

                             

                            For MAK licensing activation:

                             

                             

                               <PIDKEY Value="AAAAA-BBBBB-CCCCC-DDDDD-EEEEE" />

                               <Setting Id="AUTO_ACTIVATE" Value="1" />

                             

                               <Setting Id="USEROPERATIONS" Value="1" />

                             

                                Note: Replace AAAAA-BBBBB-CCCCC-DDDDD-EEEEE with your MAK information.

                             

                             

                            4. Install ThinApp binaries

                            5. Disconnect the NIC

                             

                            6. Run the Setup Capture wizard until you complete the prescan operation.

                            7.  Not mandatory ====== On the Install Application page of the Setup Capture wizard, minimize the wizard and install Microsoft .NET 4 (If prompted to reboot, do it, and when the system is back "online", continue capturing process)

                            8. The Microsoft .NET installation generates the mscorsvw.exe process that continues for an extended period. Perform any one of the below 2 steps.

                             

                               a. Stop the process with the ngen.exe tool. By typing this in a cmd window: "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\ngen.exe  executequeueditems"

                               b. Reboot the machine (If not done at step 7)

                            9. Start the Microsoft Office 2013 setup wizard.

                            setup.exe /config vispro.ww\config.xml

                             

                             

                            10. Accept the terms of agreement

                            11. On the Choose the installation you want dialog box, click the Customize button.

                             

                            12. Select Microsoft Office > Run all from My Computer.

                            13. Click “Install Now” to install Microsoft Office 2013.

                             

                            14. Launch applications (Word for example) from suite once for any customization to do (Ex- To disable auto updates).

                             

                            14b Here if you have a activation window , please cancel it.

                             

                             

                            15. Close Word, and type this in a cmd window :

                             

                               "net stop osppsvc"

                             

                            16. Run Postscan

                            17. Change the Inventory name to something appropriate for your use.

                             

                            18. Put the following in HKEY_LOCAL_MACHINE.txt:

                             

                             

                            isolation_full HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Windows Search\Preferences

                            Value=PreventIndexingOutlook

                             

                            REG_DWORD=#01#00#00#00

                             

                             

                            19. Add this line to "package.ini" file, under the [build options] section:

                             

                             

                            ExternalCOMObjects={A47979D2-C419-11D9-A5B4-001185AD2B89};{DCB00C01-570F-4A9B-8D69-199FDBA5723B};{C96887DA-A652-4426-905E-4A37546F847C}

                            ChildProcessEnvironmentExceptions=sppsvc.exe

                             

                            20. Build the project

                             

                             

                             

                            BR.

                            Grimbuhler Stéphane (VCP, VCAP-DCA, VCI)
                            www.virtualgeek.ch (My virtualization blog)
                            • 11. Re: VMware ThinApp 5 and Office 2013
                              John_2014 Novice

                              Hi Marius,

                              I followed the same guide step by step as you did to thinapp office 2013, but  I get a warning window when trying to access clipart feature of Office. Pressing "Online Pictures" button on the top left corner, triggers the message dialog box with the warning:

                               

                              "You need an internet connection to insert online pictures.

                              While you are offline..."

                              It gives this warning for all the programs which have this feature available.

                               

                              Also, "Help" feature is not working either.

                               

                              Error msg.: "Help isn't working but you can still go to Office.com to get the latest and greatest...."


                              Are you experiencing these issues or is it just me...? If this is smth. that can be fixed on my end please drop me a hint.

                               

                              Thanks,

                              John

                               

                              P.S. There may be other issues which I'm not aware of since I haven't test it this enough, just yet. But for now I'm reporting the ones I know...

                              • 12. Re: VMware ThinApp 5 and Office 2013
                                djbreezer Novice

                                Hello,

                                there is a missing "o" in:

                                 

                                19. Add this line to "package.ini" file, under the [build options] section:

                                 

                                 

                                ExternalCOMObjects={A47979D2-C419-11D9-A5B4-001185AD2B89};{DCB00C01-570F-4A9B-8D69-199FDBA5723B};{C96887DA-A652-4426-905E-4A37546F847C}

                                ChildProcessEnvironmentExceptions=sppsvc.exe

                                 

                                The code is:

                                ExternalCOMObjects={A47979D2-C419-11D9-A5B4-001185AD2B89};{DCB00C01-570F-4A9B-8D69-199FDBA5723B};{C96887DA-A652-4426-905E-4A37546F847C}

                                ChildProcessEnvironmentExceptions=osppsvc.exe

                                 

                                Alex

                                • 13. Re: VMware ThinApp 5 and Office 2013
                                  TimofeyVS Lurker

                                  Hello John_2014John_2014

                                  Did solve the problem with Internet access from an application?

                                  I have the same problem.

                                  • 14. Re: VMware ThinApp 5 and Office 2013
                                    detrakii9 Lurker

                                    I really will like to see how this can be resolved once and for all

                                     

                                    Cheer

                                     

                                    Brandi jobs

                                     

                                    http://naijaonlinejobs.com/