AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Howҽvҽr, ҽditing a PDF filҽ rҽquirҽs a dҽdicatҽd tool and, if you sқip thҽ ҽvҽr-popular namҽs, CutePDF Professional is a prҽtty good option. OShell.Ҭhҽ PDF format is onҽ of thҽ most widҽly-usҽd out thҽrҽ, duҽ to its wҽll-қnown advantagҽs. Set oFSO = CreateObject("Scripting.FileSystemObject")ĮAllUsersProfile = oShell.ExpandEnvironmentStrings("%AllUsersProfile%")ĮUserProfile = oShell.ExpandEnvironmentStrings("%UserProfile%")ĮProgramFiles = oShell.ExpandEnvironmentStrings("%ProgramFiles%")ĭim eAllUsersDesktop, eAllUsersStartMenu, eAllUsersPrograms, eAllUsersStartup, eDesktop, eFavorites, eFonts, _ĮMyDocuments, eNetHood, ePrintHood, ePrograms, eRecent, eSendTo, eStartMenu, eStartup, eTemplatesĮAllUsersPrograms = oSpecFolders("AllUsersPrograms") 'C:\Documents and Settings\All Users\Start Menu\Programs Set oShell = WScript.CreateObject("WScript.Shell") Set oNet = WScript.CreateObject("WScript.Network") Now I have a silent Ghostscript and CutePDF installer with no popups. I then packaged it into a self extracting 7zip installer. I then made a vbscript to run the installs and do the cleanup. I then took the ghostscript files and extracted them into a GS folder. When you run the install, use the following command "Setup.exe /cpw07012009 /W1". Delete the ASK toolbar files, and the readme.htm file. Copy all of the files out of there and put them into a new "CutePDF" folder. Then browse to the temp folder and find the subfolder CutePDF created. You do this by running the install without having Ghostscript installed. So, to get around that, I ended up needing to extract the CutePDF install. It does not seem to set this back when you uninstall. The entry by turbokitty is good, but the problem I found was that the ASK toolbar changes the homepage and the default search provider when it installs. Look in the Detail field to get the actual parameter and substitute in the command line. In the ProcMon log, use Ctrl-F to Find /cpw (or create a filter for "Detail Contains /cpw"). Launch ProcMon, then launch the original cutewriter.exe and complete the installation.Ĥ. If this command line doesn't work for you, you can find the right parameter as follows:Ģ. I don't know if the /cpw* parameter changes with versions. Install command line: "setup.exe /cpw07012009 /w1 /vs" Assuming you want the 32-bit version, copy the following folder and files to another location:Ĥ. Save the file to the 'Driver' folder which was unpacked earlier.ĬlassGUID=".ģ. This will enable you install the printer via either the command line or the Add/Remote Printer Wizard. Using notepad create a file called cutepdf.inf and add the following entries. Copy cpwmon2k.dll and cpwsave.exe to %systemroot%\system32.ĥ. Copy the source files from your temp folder, before the installation.Ĥ. Start the installation to unpack the zipped files.ģ. There are a number of issues with using a repackager to install a print queue, so here was the solution that I have implemented, which you can either integrate into a RIS install or develop an msi to install.ġ. You will need to replace any machine name you see with the MSI property in the "DsSpooler" subkeys.Īlso, you will want to add "Spooler" to the ServiceControl table so that the Spooler service is stopped prior to install and restarted after the install.Ī good explanation of the pitfalls of using WinInstall LE to create the package is written up in the forum by member, goodsnapper, on April 12, 2005. "HKLM\System\CurrentControlSet\Control\Print\Printers\CutePDF Writer" "HKLM\System\CurrentControlSet\Control\Print\Monitors\CutePDF Writer Monitor" "HKLM\System\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3\CutePDF Writer" "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Print\Printers\CutePDF Writer" You will need the following files and registry keys/subkeys from a reference machine:Ĭ:\Program Files\Acro Software\PDFWrite.rspĬ:\Program Files\Acro Software\README.htmĬ:\Windows\System32\spool\drivers\w32x86\cutepdfw.ppdĬ:\Windows\System32\spool\drivers\w32x86\ps5ui.dllĬ:\Windows\System32\spool\drivers\w32x86\pscript.hlpĬ:\Windows\System32\spool\drivers\w32x86\pscript.ntfĬ:\Windows\System32\spool\drivers\w32x86\pscript5.dllĬ:\Windows\System32\spool\drivers\w32x86\3\cutepdfw.ppdĬ:\Windows\System32\spool\drivers\w32x86\3\cutepdfw.bpd It's not hard to set up your own MSI package for the Writer portion. Check the package entry for GhostScript. The second download is GhostScript which is already available as an MSI. The first download is the CuteWriter.exe which sets up a PostScript print queue on the machine. CutePDF Writer 2.3 is a freely available PDF creation utility.
0 Comments
Read More
Leave a Reply. |