/build/static/layout/Breadcrumb_cap_w.png

CutePDF Writer 2.5 - Help

I've looked at the Packages page and found that there is a solution on creating a working MSI-package for CutePDF Writer 2.5

My problem is that I don't know how to do a Custom Action (Wise for Windows Installer 4) after Install Finalize with the commandline "rundll32 printui.dll,PrintUIEntry /if /b "CutePDF Writer" /f cutepdf.inf /r "CPW2:" /m "CutePDF Writer"".

Questions:
1. What type of action should I use (rundll is a part of Windows and not a part of my package)
2. Pest practice. Where do I put my source installfiles (extracted from CutePDF install) ?

Please help.

/JonnyO

0 Comments   [ + ] Show comments

Answers (18)

Posted by: knight 18 years ago
Orange Senior Belt
0
You can use this script on wise custom action script.

Option Explicit
Dim WshShell,objFSO,Return,Windows,ProgramFiles
Set WshShell = CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Windows = WshShell.ExpandEnvironmentStrings("%windir%") 'location of INF file
ProgramFiles = WshShell.ExpandEnvironmentStrings("%ProgramFiles%") 'location of source files

ProgramFiles=ProgramFiles + "\Manufacturer\Application name"
Windows=Windows + "\inf\cutepdf.inf "

Return = WshShell.Run("rundll32 printui.dll,PrintUIEntry /if /b ""CutePDF Writer"" /f " + Windows + " /r ""CPW2:"" /m ""CutePDF Writer"" /q /l" & """" & ProgramFiles & """",0,TRUE)

hope this helps,
knight
Posted by: JonnyO 18 years ago
Senior Yellow Belt
0
I'll try this script and let you know.

Regards JonnyO
Posted by: JonnyO 18 years ago
Senior Yellow Belt
0
Hallo knight!

I've tried your script and after modifying it (se below) I'm getting stuck on the signing policy for the driver. It can't be run silent !!!
I can't understand how the guys "BEPhipps" and "xltel" in the packages area got their packages to work.

New questions:
Do you or anyone else have a solution to my new problem ?
Would like it if someone that has a working MSI of CutePDF Writer 2.5 could give me a hand on how to create the package.

Note:
At this point I'm using WFWI4 but if it's required to upgrade to get it to work, I'll do it.

/JonnyO


*** Script ***
Option Explicit
Dim WshShell,objFSO,Return,sTmpFolder
Set WshShell = CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
sTmpFolder = WshShell.ExpandEnvironmentStrings("%tmp%") 'location of INF file

sTmpFolder=sTmpFolder + "\cutefiles\driver\cutepdf.inf"

Return = WshShell.Run("rundll32 printui.dll,PrintUIEntry /ia /b ""CutePDF Writer"" /f " + sTmpFolder + " /r ""CPW2:"" /m ""CutePDF Writer"" /q",0,TRUE)
*** --- ***
Posted by: Dr. Soup 18 years ago
Senior Yellow Belt
0
I also had trouble with CutePDF Writer, so I gave up on it. There are a bunch of products available and one great free product is PDFCreator ([link]http://sourceforge.net/projects/pdfcreator[/link]). It is already an msi and from what I remember, doesn't need any mst to deploy. PDFCreator is a great product with a ton of features. And while I was evaluating the available products, I just directed users to [link]http://convert.neevia.com/[/link] - a free online converter.

Not exactly the answer you're looking for, but I found this route to cause the fewest headaches for me.
Posted by: JonnyO 18 years ago
Senior Yellow Belt
0
Thanks for your reply.

I'll give CutePDF Writer some more time before I will give it up.

/JonnyO
Posted by: rikx2 18 years ago
Purple Belt
0
ORIGINAL: JonnyO

Hallo knight!

I've tried your script and after modifying it (se below) I'm getting stuck on the signing policy for the driver. It can't be run silent !!!
I can't understand how the guys "BEPhipps" and "xltel" in the packages area got their packages to work.

New questions:
Do you or anyone else have a solution to my new problem ?
Would like it if someone that has a working MSI of CutePDF Writer 2.5 could give me a hand on how to create the package.

Note:
At this point I'm using WFWI4 but if it's required to upgrade to get it to work, I'll do it.

/JonnyO


*** Script ***
Option Explicit
Dim WshShell,objFSO,Return,sTmpFolder
Set WshShell = CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
sTmpFolder = WshShell.ExpandEnvironmentStrings("%tmp%") 'location of INF file

sTmpFolder=sTmpFolder + "\cutefiles\driver\cutepdf.inf"

Return = WshShell.Run("rundll32 printui.dll,PrintUIEntry /ia /b ""CutePDF Writer"" /f " + sTmpFolder + " /r ""CPW2:"" /m ""CutePDF Writer"" /q",0,TRUE)
*** --- ***



You have to set the Driver Signing Option to "Ignore - Install the driver anyway..." for the silent installation of your virtual printer driver.

regards
Rick
Posted by: JonnyO 18 years ago
Senior Yellow Belt
0
Ok. And how is that done when installing a MSI package ?

I know how it's done when installing from eg. RIS.

/JonnyO
Posted by: JonnyO 18 years ago
Senior Yellow Belt
0
The solution (workaround).

My mission with CutePDF was to distribute it with SMS 2003 in a corporate environment.

It all ended with us giving up the MSI packaging and bought an one time payed license from Acro Software for $299 that we are allowed to install on how many clients we like. This setup package has silent parameters options etc. And the Ghostscript can be installed silent if you extract the exe and run "Setup.exe -s".

Mission accomplished !!!!

/JonnyO
Posted by: darkmarauder 16 years ago
Senior Yellow Belt
0
Not a reply, but I was wondering does anyone have further information (than is currently posted on Appdeploy) as to a successful uninstallation of Cutepdf Writer and Ghostscript?
Posted by: solsikkehaven 16 years ago
Yellow Belt
0
Repackaging CutePDF and ghoststcript is no problem.

In Wise Package Studio run setupcapture (remember to turn on hardware detection) - install ghostscript, then cutePDF, restart, finalize setupcapture. Start the editor - set Spooler service to start/stop...

now that's all that needs to be done - and cutePDF works, even without restarting the computer.
Posted by: anelson4 15 years ago
Yellow Belt
0
Thanks Solsikkehaven,

I had tried everything to create a silent install of this app. Your instructions on using setupcapture worked perfectly.
Posted by: wutamess 15 years ago
Yellow Belt
0
Managed to script the install to install, reinstall & uninstall silently with WPS.
Process:
Download the Ghost Script from CutePDF's site - Right Click on the exe and extract (to converter).
Download CutePDF Writer: Start install and get files from C:\Docs&Sets\<user>\Local Settings\Temp\...

Install In Wise:
Execute Program (Ghost installer): converter\setup.exe (Window size=hidden)(Wait)
Execute Program (CutePDF installer): setup32.exe /cpw12112006
Delete File(s): %ALLUSERS%\Start Menu\Progams\CutePDF\*.* (check both options to remove sub DIRS and selfDIR)

Uninstall in Wise:
Execute Program: %PROGRAMFILES%\Acro Software\CutePDF Writer\uninscpw.exe -s (Window hidden)
Posted by: jimadobe2005 15 years ago
Yellow Belt
0
In Wise Package Studio run setupcapture (remember to turn on hardware detection)
HOW ARE YOU TURNING ON HARDWARE DETECTION??
- install ghostscript, then cutePDF, restart, finalize setupcapture.
Please send detailed instructions on how you are doing the following:
Start the editor - set Spooler service to start/stop...

Thanks very much for your assistance. I have repackaged CutePDF with no errors, however, the
CutePDF Writer is not installing. Thanking you in advance for your assistance. Have a great day.
Jim
Posted by: Stewmang 14 years ago
Senior Yellow Belt
0
Hi All

I'm a complete newby to the software packaging game but will soon responsible for packaging applications using Wise Package Studio for our organisation. I've been playing around in WPS and decided to try and tackle CutePDF as a first package as it's a frequently requested application which we can't currently deploy silently.

I've read through several different solutions both in this thread and in the Package KB section for deploying this application slently. I've attempted to follow solsikkehaven's instructions in this thread which look to have been successful for others but when attempting to run my msi, it fails with an error "Internal Error 2602. File, caption.ps". I ran validation on the package and there are a whole host of errors appearing relating to files being labelled as compressed or having values exceeding the maximum table value.

Any ideas why this is the case? Is it because I just ran converter.exe for my setup capture rather than extracting this exe and running the resultant setup.exe?

Apologies if this is in the wrong section with it being a newby question.

Many thanks

Stewart
Posted by: anonymous_9363 14 years ago
Red Belt
0
2602 means that the MSI is trying to install a file from a CAB file (either an internal - compressed as part of the MSI - or external CAB) but that it doesn't know where in that CAB to find it. As a newcomer, you will spend DAYS trying to fix an error like that so the simplest route would be to start again.
Posted by: zzpack 13 years ago
Orange Senior Belt
0
Two newbie questions on WPS, to see if I got it right. I´m trying to make a .msi of CutePDF Writer 2.8.

1. Can I uninstall Ask.com (or any program) from Add/Remove Program, during Setup Capture? Is that going to work properly to get rid of Ask?
2. With "turning on hardware detection", does people refer to Plug n Play in Windows services? Or is it a setting inside WPS?

Posted by: sivaiah_b 12 years ago
Orange Senior Belt
0
i tried the same thing which mentionned over there but i am getting the error message "the opration could not be completed" please suggest the regard this issue.
Posted by: sivaiah_b 12 years ago
Orange Senior Belt
0
i captured the CutePDFWriter and trying to installed it, But printer is coming when i tried to print print option is disabled. please help.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ