![]() You could Add these scripts to the package and then Save. ![]() Msiexec /x \FoxitPhantomPDF621_Business_enu_Setup.msi TRANSFORMS=\.mst /qn Msiexec /i \FoxitPhantomPDF621_Business_enu_Setup.msi TRANSFORMS=\.mst /qnĬreate an Uninstall.bat with the contents: 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: You can download the GPO: HERE you can then select to Remove the Updater. In order to Disable the Check for Updates option you will need to deploy a Group Policy Object. Under Shortcuts and FTAs and delete the Activaton. Under Package Files, navigate to Windows\Installer and delete the cached MSI Copy your fpmkey.txt file to C:\Program Files (x86)\Foxit Software\Foxit PhantomPDF\Ĭlick ‘Continue to modify package without saving using the package editor’ and Click Next > Select Classic Toolbar Mode and when prompted click on Restart Now. Only check the Create a Start Menu Folder and Click Install Remove the Evernote Feature and Click Next Then Click Next >Ĭlick ‘I accept the terms in the License Agreement’ and Click Next Select to Perform a custom installation and Click Next >Įnter a Package Name and Enter a Dummy Folder as the Primary Virtual Application Directory. Launch Sequencer and Click Next until you get to the below screen 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 This is a quick and lazy way to create an installer for just the PDF Print Driver.Ĭopy the FoxitPhantomPDF621_Business_enu_Setup.msi to the VM ![]() 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.ĭelete the DoCountInstallation_Phantom Custom Action When the Install steps have been captured, go through files and delete all files except those shown in this screenshot When capturing the Install options, select a custom Install and select the following features: PrinterSettings printerSettings = new PrinterSettings() įoreach ( string printer in PrinterSettings.Install Directory: C:\Program Files (x86)\Foxit Software\Foxit PhantomPDFĬreate a Response Transform for FoxitPhantomPDF621_Business_enu_Setup.msi using your favorite MSI editor e.g. If ( string.equalsIgnoreCase(printer, " Foxit Reader PDF Printer") = 0) ![]() Info.WindowStyle = ProcessWindowStyle.Hidden įoreach ( string printer in .InstalledPrinters) ProcessStartInfo info = new ProcessStartInfo(documentPath) Public void PrintReportAsAProcess( string documentPath) || String.IsNullOrWhiteSpace(currentPrinter)) This.PrintReportAsAProcess(documentPath) SetDefaultPrinter( " Foxit Reader PDF Printer") String currentPrinter = this.GetDefaultPrinter() If( String.IsNullOrWhiteSpace(documentPath)) Public void ConvertDocxToPdfWithFoxitReader( string documentPath) Public static extern bool SetDefaultPrinter( string Name) Just Foxit Reader (Free) must be installed on the client. In addition, one will have a few more options to configure your pdf output if you're going to hack some Windows Registry values at application runtime.ĭepending on registy manipulating, full silent conversation, showing a FileSaveDialog as well asĪutomatically open up converted document is possible. There are many great (commercial) document libraries which support a doc/docx to pdf conversation and a few other scopes to do this, but I just needed a conversation so I was a bit scared of using a whole library for that.Īlso the other scopes like using Word interop or SharePoint has not been an option for me because a licensed Word/Sharepoint installation is needed for that task.Ī quick look into foxit's printer settings revealed that this could be an option so I had a try and I was really happy that it works for my requirements. Seems easy, like a standard task and pdfs are a standard document format. I stumbled over a requirement to convert (and print) *.doc, *.docx.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |