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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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
Answered 03/10/2006 by: knight
Orange Senior Belt

Please log in to comment
0
I'll try this script and let you know.

Regards JonnyO
Answered 03/10/2006 by: JonnyO
Senior Yellow Belt

Please log in to comment
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)
*** --- ***
Answered 03/12/2006 by: JonnyO
Senior Yellow Belt

Please log in to comment
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.
Answered 03/13/2006 by: Dr. Soup
Senior Yellow Belt

Please log in to comment
0
Thanks for your reply.

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

/JonnyO
Answered 03/14/2006 by: JonnyO
Senior Yellow Belt

Please log in to comment
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
Answered 03/14/2006 by: rikx2
Purple Belt

Please log in to comment
0
Ok. And how is that done when installing a MSI package ?

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

/JonnyO
Answered 03/15/2006 by: JonnyO
Senior Yellow Belt

Please log in to comment
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
Answered 04/08/2006 by: JonnyO
Senior Yellow Belt

Please log in to comment
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?
Answered 01/02/2008 by: darkmarauder
Senior Yellow Belt

Please log in to comment
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.
Answered 01/06/2008 by: solsikkehaven
Yellow Belt

Please log in to comment
0
Thanks Solsikkehaven,

I had tried everything to create a silent install of this app. Your instructions on using setupcapture worked perfectly.
Answered 06/20/2008 by: anelson4
Yellow Belt

Please log in to comment
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)
Answered 03/11/2009 by: wutamess
Yellow Belt

Please log in to comment
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
Answered 04/22/2009 by: jimadobe2005
Yellow Belt

Please log in to comment
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
Answered 02/07/2010 by: Stewmang
Senior Yellow Belt

Please log in to comment
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.
Answered 02/08/2010 by: VBScab
Red Belt

Please log in to comment
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?

Answered 03/25/2011 by: zzpack
Orange Senior Belt

Please log in to comment
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.
Answered 11/02/2011 by: sivaiah_b
Orange Senior Belt

Please log in to comment
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.
Answered 11/02/2011 by: sivaiah_b
Orange Senior Belt

Please log in to comment
Answer this question or Comment on this question for clarity