GNUplot

From WPKG | Open Source Software Deployment and Distribution
Revision as of 19:37, 2 October 2006 by 81.173.188.139 (Talk)

Jump to: navigation, search

This is a silent installer and uninstaller for GNUplot.

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