Difference between revisions of "CutePDF Writer"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Improved the command lines for <remove> and also added options for install and upgrade.)
Line 12: Line 12:
 
  <check type="uninstall" condition="exists" path="CutePDF Writer 2.7"/>
 
  <check type="uninstall" condition="exists" path="CutePDF Writer 2.7"/>
 
   
 
   
  <install cmd="%SOFTWARE%\cutewriter\CuteWriter.exe /verysilent"/>
+
  <install cmd='"%SOFTWARE%\cutewriter\CuteWriter.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'/>
 
   
 
   
  <upgrade cmd="%SOFTWARE%\cutewriter\CuteWriter.exe /verysilent"/>
+
  <upgrade cmd='"%SOFTWARE%\cutewriter\CuteWriter.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'/>
 
   
 
   
  <remove cmd="%PROGRAMFILES%\Acro Software\CutePDF Writer\uninscpw.exe /verysilent"/>
+
  <remove cmd='"%PROGRAMFILES%\Acro Software\CutePDF Writer\uninscpw.exe" -s'/>
 
  </package>
 
  </package>
 
</packages>
 
</packages>
 
</source>
 
</source>
  
This remove command still shows a dialogue box (without the /verysilent flag, it shows two) - you'd need to use an AutoIt script for a true silent uninstall. The software depends on Ghostscript in some form being installed on the machine; I used [[Ghostscript|GPL Ghostscript]].
+
Note that the option for a silent uninstall is completely different (-s) from the option for a silent install. Also don't forget to surround the complete path to the executable with quotes because the path contains spaces.
 +
 
 +
The software depends on Ghostscript in some form being installed on the machine; I used [[Ghostscript|GPL Ghostscript]].
  
 
[[category:Silent Installers]]
 
[[category:Silent Installers]]

Revision as of 11:19, 5 September 2009

This is a silent installer/upgrader but a non-silent uninstaller for CutePDF Writer. It can be downloaded from the Cute PDF website. Use the following XML to install it:

<?xml version="1.0" encoding="UTF-8"?>
<packages>
 	<package id="cutewriter" 
 	name="CutePDF Writer" 
 	revision="27" 
 	priority="0" 
 	reboot="false">
 		<depends package-id="gplghostscript" />
 		<check type="uninstall" condition="exists" path="CutePDF Writer 2.7"/>
 		 
 		<install cmd='"%SOFTWARE%\cutewriter\CuteWriter.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'/>
 		 
 		<upgrade cmd='"%SOFTWARE%\cutewriter\CuteWriter.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'/>
 		 
 		<remove cmd='"%PROGRAMFILES%\Acro Software\CutePDF Writer\uninscpw.exe" -s'/>
 	</package>
</packages>

Note that the option for a silent uninstall is completely different (-s) from the option for a silent install. Also don't forget to surround the complete path to the executable with quotes because the path contains spaces.

The software depends on Ghostscript in some form being installed on the machine; I used GPL Ghostscript.