FlexApp DIA Office 2010, 2013 and 2016 on Windows 7

Product: ProfileUnity-FlexApp

Product Version:  6.5.7

Updated: September 1, 2016



How do I create a DIA package of Office 2010, 2013 or 2016 on Windows 7

You must be on ProfileUnity 6.5.7




  • ProfileUnity version 6.5.7
  • Windows 7 (32-bit or 64-bit) with FlexApp Packaging Console (FPC) installed
    The FPC machine must follow best practices - Best Practice For Creating FlexApp DIA Applications With The FlexApp Packaging Console

  • Office 2010, 2013 or 2016 (32-bit or 64-bit, KMS versions only)

  • KMS Server with valid working licensing

  • FlexApp Office Script Bundle (1 zip file that contains 3 scripts) - See Attached File -


Part I – Updating The Office-PostCapture Script For Your Environment

Since successful playback and capture of Office is dependent on KMS, the post capture script needs to be updated with your KMS server information.

  1. Extract the 3 scripts located in the FlexApp Office Script Bundle to a network location that will be accessible to the FPC machine. 
  2. Right click on each script and select Properties to confirm it is not blocked on the General tab. If it is, select the option to Unblock the file and click OK.

  3. Edit the post capture script called FA0_W7-Office-PostCapture.cmd.
  4. Within the script, find and replace all instances of KMSNAME with the IP or FQDN of your KMS server.
  5. Save the changes and close out of the script.
  6. You are now ready to create a DIA package of Office with FPC.

Part II – Packaging Office With FPC

  1. Login to the FPC machine and connect/mount the Office installation iso to the FPC machine. (Close the AutoPlay prompt, if shown.)
  2. Open and log into the FlexApp Packaging Console.
  3. Click ‘Create’ to create a new package.
  4. Fill in all the required fields. For the Installer Location, browse and select the setup.exe file located at the root of the Office installation iso you mounted in step 1.
  5. Once all required fields are filled in, click ‘Create’ to begin the packaging process.
  6. FPC will launch the Office setup wizard.
  7. After accepting the User Agreement, the Office setup wizard asks for type of installation, choose ‘Customize’.
  8. This will present the Installation Options tab.  Select the root ‘Microsoft Office’ option dropdown and choose ‘Run all from My Computer’.
  9. Click the ‘Install Now’ button.
  10. The Office setup wizard will continue and finish the installation.
  11. !!CRITICAL STEP!! – before clicking the ‘Close’ button on the Office Setup Wizard, go to the network location where the 3 office scripts were saved.
  12. Right click on FA0_W7-Office-PostCapture.cmd script and select Run as administrator.
  13. Confirm that office was activated successfully. There will be a line that states 'Product activation successful'. 
  14. Once confirmed, press any key to exit the command window.
  15. Now click ‘Close’ on the Office Setup Wizard window.
  16. Once the Office Setup Wizard closes, click the ‘Finish’ button in the FPC window.
  17. After the package creation process has finished, click the ‘Save’ button to finish saving the package.
  18. Since Office contains several icons for programs, FPC will likely prompt you to select an icon to use as the main one to display within FPC and ProfileUnity.
  19. The Office DIA package has now been created and saved successfully.

Part III – Preparing The Office DIA Package For Playback

In order for Office to playback successfully, some additional configuration is required. 

  1. From the main FPC window, press the ‘Play’ button to playback the Office package with its current configuration.
  2. Once played back successfully, the ‘Play’ icon will change to a ‘Stop’ icon, indicating that the package is active and configuration can now be edited.

  3. Two icons to the left is the edit package icon, click the dropdown arrow to view all options. 
  4. Select the ‘abc’ at the very bottom, to add scripts to the package.
  5. From the Package Scripts window that comes up, click 'Add Script'. This will reveal additional dropdown options.
    • The first dropdown option should list only appdir-1, select it.
    • The second dropdown will allow you to specify when a specific script should run. The first office script requires ‘Pre Activation’. Select 'Pre Activation' and move to the next field.
    • Click the browse icon to the right of this field and browse to the network location where the 3 office scripts were saved to in Part I. 
    • Select the script named: FA1_W7-Office-PrePlay.cmd.
    • Press ‘OK’ to add this script to the package
  6. Click Add Script once more.
    • Select appdir-1 in the first dropdown.
    • In the second dropdown select ‘Post Activation’ this time and move to the next field.
    • Click the browse icon to the right of this field and browse again to the network location where the 3 office scripts were saved to.
    • Select the script named: FA2_W7-Office-PostPlay.cmd.
  7. After pressing ‘OK’ to add this script to the package, FPC should now look as follows:
  8. Press the bottom ‘OK’ button to save.
  9. All changes will be saved to the package and the package will then be unmounted.
  10. Click 'OK'. The Office DIA package is now complete and can be selected for playback within the ProfileUnity web console or FPC.


Additional Related KBs:

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


Article is closed for comments.