GNUplot

From WPKG | Open Source Software Deployment and Distribution
Revision as of 21:16, 13 February 2008 by WPKGSysop (Talk | contribs)

Jump to: navigation, search

This is a silent installer and uninstaller for GNUplot.

<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>