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 - fa_w7-office-bundle-V2.zip
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.
- Extract the 3 scripts located in the FlexApp Office Script Bundle to a network location that will be accessible to the FPC machine.
- 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.
- Edit the post capture script called FA0_W7-Office-PostCapture.cmd.
- Within the script, find and replace all instances of KMSNAME with the IP or FQDN of your KMS server.
- Save the changes and close out of the script.
- You are now ready to create a DIA package of Office with FPC.
Part II – Packaging Office With FPC
- Login to the FPC machine and connect/mount the Office installation iso to the FPC machine. (Close the AutoPlay prompt, if shown.)
- Open and log into the FlexApp Packaging Console.
- Click ‘Create’ to create a new package.
- 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.
- Once all required fields are filled in, click ‘Create’ to begin the packaging process.
- FPC will launch the Office setup wizard.
- After accepting the User Agreement, the Office setup wizard asks for type of installation, choose ‘Customize’.
- This will present the Installation Options tab. Select the root ‘Microsoft Office’ option dropdown and choose ‘Run all from My Computer’.
- Click the ‘Install Now’ button.
- The Office setup wizard will continue and finish the installation.
- !!CRITICAL STEP!! – before clicking the ‘Close’ button on the Office Setup Wizard, go to the network location where the 3 office scripts were saved.
- Right click on FA0_W7-Office-PostCapture.cmd script and select Run as administrator.
- Confirm that office was activated successfully. There will be a line that states 'Product activation successful'.
- Once confirmed, press any key to exit the command window.
- Now click ‘Close’ on the Office Setup Wizard window.
- Once the Office Setup Wizard closes, click the ‘Finish’ button in the FPC window.
- After the package creation process has finished, click the ‘Save’ button to finish saving the package.
- 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.
- 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.
- From the main FPC window, press the ‘Play’ button to playback the Office package with its current configuration.
- 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.
- Two icons to the left is the edit package icon, click the dropdown arrow to view all options.
- Select the ‘abc’ at the very bottom, to add scripts to the package.
- 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
- 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.
Additional Related KBs: