Difference between revisions of "Geany"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
Line 27: Line 27:
 
         <upgrade cmd='cmd /c del /q /s "%USERPROFILE%\Desktop\Geany.lnk"' />
 
         <upgrade cmd='cmd /c del /q /s "%USERPROFILE%\Desktop\Geany.lnk"' />
 
         <upgrade cmd='cmd /c del /q /s "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\Geany.lnk"' />
 
         <upgrade cmd='cmd /c del /q /s "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\Geany.lnk"' />
         <upgrade cmd='cmd /c rmdir /s /q "%USERPROFILE%\Start Menu\Programs\Geany"' />
+
         <upgrade cmd='cmd /c move /y "%USERPROFILE%\Start Menu\Programs\Geany" "%ALLUSERSPROFILE%\Start Menu\Programs"' />
 +
        <upgrade cmd='cmd /c cacls "%ALLUSERSPROFILE%\Start Menu\Programs\Geany" /t /e /g everyone:r' />
  
 
         <remove cmd='cmd /c del /q /s "%ALLUSERSPROFILE%\Start Menu\Programs\Geany"' />
 
         <remove cmd='cmd /c del /q /s "%ALLUSERSPROFILE%\Start Menu\Programs\Geany"' />

Revision as of 18:43, 8 December 2008

Silent installer for Geany, a source code editor using GTK+. http://www.geany.org/

This installer would be better installing to %ALLUSERSPROFILE%, so that you don't have to move folders between profiles. Also unfortunately, the 0.15 installer cannot remove/upgrade completely silently. These two probelms have been worked on, and should be solved by the 0.16 release:

<?xml version="1.0" encoding="UTF-8"?>
<packages>
    <package
        id="geany"
        name="Geany Source Code Editor"
        revision="015"
        reboot="false"
        priority="1">
        <check type="uninstall" condition="exists" path="Geany 0.15" />

        <install cmd='"%SOFTWARE%\geany\geany-0.15_setup.exe" /S' />
        <install cmd='cmd /c del /q /s "%USERPROFILE%\Desktop\Geany.lnk"' />
        <install cmd='cmd /c del /q /s "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\Geany.lnk"' />
        <install cmd='cmd /c move /y "%USERPROFILE%\Start Menu\Programs\Geany" "%ALLUSERSPROFILE%\Start Menu\Programs"' />
        <install cmd='cmd /c cacls "%ALLUSERSPROFILE%\Start Menu\Programs\Geany" /t /e /g everyone:r' />

        <upgrade cmd='cmd /c del /q /s "%ALLUSERSPROFILE%\Start Menu\Programs\Geany"' />
        <upgrade cmd='"%PROGRAMFILES%\Geany\uninst.exe" /S' />
        <upgrade cmd='"%SOFTWARE%\geany\geany-0.15_setup.exe" /S' />
        <upgrade cmd='cmd /c del /q /s "%USERPROFILE%\Desktop\Geany.lnk"' />
        <upgrade cmd='cmd /c del /q /s "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\Geany.lnk"' />
        <upgrade cmd='cmd /c move /y "%USERPROFILE%\Start Menu\Programs\Geany" "%ALLUSERSPROFILE%\Start Menu\Programs"' />
        <upgrade cmd='cmd /c cacls "%ALLUSERSPROFILE%\Start Menu\Programs\Geany" /t /e /g everyone:r' />

        <remove cmd='cmd /c del /q /s "%ALLUSERSPROFILE%\Start Menu\Programs\Geany"' />
        <remove cmd='"%PROGRAMFILES%\Geany\uninst.exe" /S' />
    </package>
</packages>