Changes

GNUplot

335 bytes removed, 09:15, 7 September 2012
Updated to use the Windows installer
This Below is a 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]]
2
edits