App-V Recipe: Foxit PhantomPDF Business

Application Name: PanthomPDF Business box-phantom-business

Application Version: v6

Download: PhantomPDF

Install Directory: C:\Program Files (x86)\Foxit Software\Foxit PhantomPDF

Sequencing OS used: Windows 7 64-bit

Sequencer Version: 5.0 SP2 Hotfix 4

Exclusions Added: [{AppDataLow}]

Preparing the Sequencing VM

Create a Response Transform for FoxitPhantomPDF621_Business_enu_Setup.msi using your favorite MSI editor e.g. Wise Package Studio, Installshield. When capturing the Install options, select a custom Install and select the following features:

Custom

 

When the Install steps have been captured, go through files and delete all files except those shown in this screenshot

Files

 

The reason for this is because certain files are leveraged during the install and also the files required for the Print Drivers should be contained for the install.

PDF

 

 

Delete the DoCountInstallation_Phantom Custom Action

This is a quick and lazy way to create an installer for just the PDF Print Driver.

Copy the FoxitPhantomPDF621_Business_enu_Setup.msi to the VM

Note: If you’d like to include the Print Driver for Evernote, select that in the install and leave the Evernote Component\Files in the installation package

Begin Sequencing

Launch Sequencer and Click Next until you get to the below screen

Step1

 

Select to Perform a custom installation and Click Next >

Step2

 

Enter a Package Name and Enter a Dummy Folder as the Primary Virtual Application Directory. Then Click Next >

Step4

 

Click Next

Step5

 

Click ‘I accept the terms in the License Agreement’ and Click Next

Step6

 

Click Custom and Next

Step7

 

Remove the Evernote Feature and Click Next

Step8

 

Only check the Create a Start Menu Folder and Click Install

Step9

 

Click Finish

Step10

 

Uncheck the box and Click No

Step11

 

Click File–>Change Tool Bar

Step12

 

Select Classic Toolbar Mode and when prompted click on Restart Now. Copy your fpmkey.txt file to C:\Program Files (x86)\Foxit Software\Foxit PhantomPDF\

Step13

 

Click Next >

Step14

 

Click Next >

Step15

 

Click Stop Now and then Click Next >

Step16

 

Click ‘Continue to modify package without saving using the package editor’ and Click Next >

Step17

 

Click Close

Step18

 

Under Package Files, navigate to Windows\Installer and delete the cached MSI

Step19

 

Under Shortcuts and FTAs and delete the Activaton.

In order to Disable the Check for Updates option you will need to deploy a Group Policy Object. You can download the GPO: HERE you can then select to Remove the Updater.

You can of course deploy the PDF Printer Package MSI and MST using your method of choice, if you’d like to ensure the App-V package installs the PDF Printer when the application is added to the Client, I suggest creating two bat files, one called Install.bat with the contents:

msiexec /i <Path>\FoxitPhantomPDF621_Business_enu_Setup.msi TRANSFORMS=<Path>\<TransformsName>.mst /qn

Create an Uninstall.bat with the contents:

msiexec /x <Path>\FoxitPhantomPDF621_Business_enu_Setup.msi TRANSFORMS=<Path>\<TransformsName>.mst /qn

You could Add these scripts to the package and then Save.

Modify the Deployment Configuration XML file:

<MachineScripts>
<AddPackage>
<Path><ScriptPath>\Install.bat</Path>
<Arguments>/S</Arguments>
<Wait RollbackOnError=”true” Timeout=”540″/>
</AddPackage>
<RemovePackage>
<Path><ScriptPath>\Uninstall.bat</Path>
<Arguments>/S</Arguments>
<Wait RollbackOnError=”false” Timeout=”240″/>
</RemovePackage>
</MachineScripts>

Ensure your clients have enable PackageScripts to run and then Deploy using Global Publishing e.g.:

Add-AppVClientPackage -Path “<Path>\MyApp.appv” -DynamicDeploymentConfiguration “<Path>\CustomDeploymentConfig.xml” | Publish-AppVClientPackage -Global

For a better example, take a look at my previous App-V recipe for SQL Management Studio: HERE

 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.