Difference between revisions of "MyDefrag"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(added source tags)
Line 3: Line 3:
 
Install the main-program:
 
Install the main-program:
  
 +
<source lang="xml">
 
     <package id="mydefrag" name="MyDefrag" revision="1" reboot="false" priority="3">
 
     <package id="mydefrag" name="MyDefrag" revision="1" reboot="false" priority="3">
 
     <check type="uninstall" condition="exists" path="MyDefrag v4.0b11" />
 
     <check type="uninstall" condition="exists" path="MyDefrag v4.0b11" />
Line 9: Line 10:
 
     <remove cmd='"%PROGRAMFILES%\MyDefrag\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART' />
 
     <remove cmd='"%PROGRAMFILES%\MyDefrag\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART' />
 
     </package>
 
     </package>
 +
</source>
  
 
I have some custom scripts. I don't want the user to see, MyDefrag runs, so I added a "WindowSize(invisible)" to the scripts. The scripts are textfiles.
 
I have some custom scripts. I don't want the user to see, MyDefrag runs, so I added a "WindowSize(invisible)" to the scripts. The scripts are textfiles.
  
 +
<source lang="xml">
 
     <package id="mydefrag-scripts" name="MyDefrag-Scripts" revision="1" reboot="false" priority="2">
 
     <package id="mydefrag-scripts" name="MyDefrag-Scripts" revision="1" reboot="false" priority="2">
 
     <check type="file" condition="exists" path='C:\TEMP\WPKG\mydefrag-scripts.SEM' />
 
     <check type="file" condition="exists" path='C:\TEMP\WPKG\mydefrag-scripts.SEM' />
 
     <install cmd='\\server\wpkg\files\dist\mydefrag\install.bat' />
 
     <install cmd='\\server\wpkg\files\dist\mydefrag\install.bat' />
 
     </package>
 
     </package>
 +
</source>
  
 
install.bat is a small copy script, which copies the customized scripts into the programdir of MyDefrag.  
 
install.bat is a small copy script, which copies the customized scripts into the programdir of MyDefrag.  
Line 22: Line 26:
 
Run once a deep-optimize (it's safe, no worry about corrupted discs in your company):
 
Run once a deep-optimize (it's safe, no worry about corrupted discs in your company):
  
 +
<source lang="xml">
 
     <package id="mydefrag-slow" name="MyDefrag SlowOptimize" revision="1" reboot="false" priority="1" notify="false" execute="once">
 
     <package id="mydefrag-slow" name="MyDefrag SlowOptimize" revision="1" reboot="false" priority="1" notify="false" execute="once">
 
     <install cmd='cmd.exe /c start "MyDefrag" /BelowNormal "%PROGRAMFILES%\MyDefrag\MyDefrag.exe" "-r" "SlowOptimize.MyD"' />
 
     <install cmd='cmd.exe /c start "MyDefrag" /BelowNormal "%PROGRAMFILES%\MyDefrag\MyDefrag.exe" "-r" "SlowOptimize.MyD"' />
 
     </package>
 
     </package>
 +
</source>
  
 
To not jam the PC, the processpriority is below normal.
 
To not jam the PC, the processpriority is below normal.
Line 30: Line 36:
 
And an everyday job, to keep the discs unfragmented:
 
And an everyday job, to keep the discs unfragmented:
  
 +
<source lang="xml">
 
     <package id="mydefrag-fast" name="MyDefrag Fast-Update" revision="1" reboot="false" priority="0" notify="false" execute="always">
 
     <package id="mydefrag-fast" name="MyDefrag Fast-Update" revision="1" reboot="false" priority="0" notify="false" execute="always">
 
     <install cmd='cmd.exe /c start "MyDefrag" "%PROGRAMFILES%\MyDefrag\MyDefrag.exe" "-r" "FastUpdate.MyD"' />
 
     <install cmd='cmd.exe /c start "MyDefrag" "%PROGRAMFILES%\MyDefrag\MyDefrag.exe" "-r" "FastUpdate.MyD"' />
 
     </package>
 
     </package>
 +
</source>
  
 
[[Category:Silent Installers]]
 
[[Category:Silent Installers]]

Revision as of 06:47, 3 July 2009

MyDefrag is a powerfull free defrag tool, licencened under GPL. Here ist what I did to make it work:

Install the main-program:

    <package id="mydefrag" name="MyDefrag" revision="1" reboot="false" priority="3">
    <check type="uninstall" condition="exists" path="MyDefrag v4.0b11" />
    <install cmd='\\server\wpkg\files\dist\mydefrag\MyDefrag-v4.0b11.exe /SP /VERYSILENT /SUPPRESSMSGBOXES /NOCANCEL /NORESTART /LANG=de /GROUP="MyDefrag" /LOG /DIR="%PROGRAMFILES%\MyDefrag"' />
    <upgrade cmd='\\server\wpkg\files\dist\mydefrag\MyDefrag-v4.0b11.exe /SP /VERYSILENT /SUPPRESSMSGBOXES /NOCANCEL /NORESTART /LANG=de /GROUP="MyDefrag" /LOG /DIR="%PROGRAMFILES%\MyDefrag"' />
    <remove cmd='"%PROGRAMFILES%\MyDefrag\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART' />
    </package>

I have some custom scripts. I don't want the user to see, MyDefrag runs, so I added a "WindowSize(invisible)" to the scripts. The scripts are textfiles.

    <package id="mydefrag-scripts" name="MyDefrag-Scripts" revision="1" reboot="false" priority="2">
    <check type="file" condition="exists" path='C:\TEMP\WPKG\mydefrag-scripts.SEM' />
    <install cmd='\\server\wpkg\files\dist\mydefrag\install.bat' />
    </package>

install.bat is a small copy script, which copies the customized scripts into the programdir of MyDefrag.


Run once a deep-optimize (it's safe, no worry about corrupted discs in your company):

    <package id="mydefrag-slow" name="MyDefrag SlowOptimize" revision="1" reboot="false" priority="1" notify="false" execute="once">
    <install cmd='cmd.exe /c start "MyDefrag" /BelowNormal "%PROGRAMFILES%\MyDefrag\MyDefrag.exe" "-r" "SlowOptimize.MyD"' />
    </package>

To not jam the PC, the processpriority is below normal.

And an everyday job, to keep the discs unfragmented:

    <package id="mydefrag-fast" name="MyDefrag Fast-Update" revision="1" reboot="false" priority="0" notify="false" execute="always">
    <install cmd='cmd.exe /c start "MyDefrag" "%PROGRAMFILES%\MyDefrag\MyDefrag.exe" "-r" "FastUpdate.MyD"' />
    </package>