Difference between revisions of "GNUplot"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
(Updated to use the Windows installer)
Line 1: Line 1:
This is a silent installer and uninstaller for [http://www.gnuplot.info/ GNUplot].
+
Below is the silent installer and uninstaller for [http://www.gnuplot.info/ GNUplot] that will install GNUplot with default settings. To install with customised settings, use the /SAVEINF and then /LOADINF switches on the setup executable.
 +
 
 +
The GNUplot Windows installer is packages with InnoSetup and can use any of the Inno switches described [http://unattended.sourceforge.net/InnoSetup_Switches_ExitCodes.html here].
 +
 
 +
 
 +
<package id="gnuplot" name="GNUPlot" revision="2" priority="0" reboot="false">
 +
 
 +
  <variable name="version" value="4.6.0" />
 +
  <variable name="file_version" value="460" />
 +
 
 +
  <check type="uninstall" condition="exists" path="gnuplot %version%" />
 +
 
 +
  <install cmd='"%software%\gnuplot\gp%file_version%-win32-setup.exe" /VERYSILENT /SUPPRESSMSGBOXES' />
 +
 
 +
  <upgrade include="remove"/>
 +
  <upgrade include="install"/>
 +
 
 +
  <remove cmd='"%ProgramFiles(x86)%\gnuplot\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES' >
 +
  <exit code="any" />
 +
  </remove>
 +
 +
</package>
  
<source lang="xml">
 
<package>
 
<check type="file" condition="exists" path="c:\program files\gnuplot\wgnupl32.exe" />
 
<install cmd='%WINDIR%\system32\cmd.exe /c if not exist "%ProgramFiles%" mkdir "%ProgramFiles%"' />
 
<install cmd='%WINDIR%\system32\cmd.exe /c if not exist "%ProgramFiles%\gnuplot" mkdir "%ProgramFiles%\gnuplot"' />
 
<install cmd='%WINDIR%\system32\cmd.exe /c xcopy %SOFTWARE%\gp373w32\* "%ProgramFiles%\gnuplot" /s /r /y' />
 
<install cmd='%WINDIR%\system32\cmd.exe /c if not exist "C:\Documents and Settings\All Users\Start Menu\Programs\GNUplot.lnk" copy %SOFTWARE%\gp373w32\gnuplot.lnk "%AllUsersProfile%\Start Menu\Programs\GNUplot.lnk"' />
 
<install cmd='%WINDIR%\system32\cmd.exe /c if not exist "C:\Documents and Settings\All Users\Start Menu\Programs\GNUplot help.lnk" copy %SOFTWARE%\gp373w32\gnuplot.lnk "%AllUsersProfile%\Start Menu\Programs\GNUplot help.lnk"' />
 
<remove cmd='%WINDIR%\system32\cmd.exe /c rd /s /q "%ProgramFiles%\gnuplot"' />
 
<remove cmd='%WINDIR%\system32\cmd.exe /c del /f /q "%AllUsersProfile%\Start Menu\Programs\GNUplot help.lnk"' />
 
<remove cmd='%WINDIR%\system32\cmd.exe /c del /f -q "%AllUsersProfile%\Start Menu\Programs\GNUplot.lnk"' />
 
<upgrade cmd="" />
 
</package>
 
</source>
 
  
 
[[category:Silent Installers|GNUplot]]
 
[[category:Silent Installers|GNUplot]]

Revision as of 09:15, 7 September 2012

Below is the silent installer and uninstaller for GNUplot that will install GNUplot with default settings. To install with customised settings, use the /SAVEINF and then /LOADINF switches on the setup executable.

The GNUplot Windows installer is packages with InnoSetup and can use any of the Inno switches described here.


<package id="gnuplot" name="GNUPlot" revision="2" priority="0" reboot="false">
 
 <variable name="version" value="4.6.0" />
 <variable name="file_version" value="460" />
 
 <check type="uninstall" condition="exists" path="gnuplot %version%" />
 
 <install cmd='"%software%\gnuplot\gp%file_version%-win32-setup.exe" /VERYSILENT /SUPPRESSMSGBOXES' />
 
 <upgrade include="remove"/>
 <upgrade include="install"/>
 
 <remove cmd='"%ProgramFiles(x86)%\gnuplot\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES' >
  <exit code="any" />	
 </remove>

</package>