Difference between revisions of "DigestIT 2004"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
Line 10: Line 10:
  
 
<check type="uninstall" condition="exists" path="digestIT 2004" />
 
<check type="uninstall" condition="exists" path="digestIT 2004" />
<install cmd='msiexec /i "\\server\wpkg\pkg\digestIT2004\digestIT 2004.msi" /qn'>
+
<install cmd='msiexec /i "%SOFTWARE%\digestIT2004\digestIT 2004.msi" /qn'>
 
   <exit code="0" />
 
   <exit code="0" />
 
</install>
 
</install>
Line 20: Line 20:
  
 
<pre>
 
<pre>
&lt;install cmd='msiexec /i "\\server\wpkg\pkg\digestIT2004\digestIT 2004.msi"
+
&lt;install cmd='msiexec /i "%SOFTWARE%\digestIT2004\digestIT 2004.msi"
 
  /qn TARGETDIR="%PROGRAMFILES%\Utilities\File\digestIT 2004"'&gt;
 
  /qn TARGETDIR="%PROGRAMFILES%\Utilities\File\digestIT 2004"'&gt;
 
   &lt;exit code="0" /&gt;
 
   &lt;exit code="0" /&gt;

Revision as of 20:42, 30 September 2006

digestIT 2004 is a free Windows program that allows you to generate an MD5 message hash or an SHA-1 hash for a file. An MD5 message hash, aka MD5 sum, and a SHA-1 hash are unique hexadecimal numbers that allow you to determine if a file has been altered. A silent installer and uninstaller for digestIT 2004 is provided below. Once it is installed, you can right-click on a file in Windows and choose "digestIT 2004" to generate either an MD5 hash or a SHA-1 hash. The software then provides you the opportunity to copy the hash to the Windows clipboard or save it to a file.

<package
  id="digestIT2004"
  name="digestIT 2004"
  revision="1"
  reboot="false"
  priority="5">

<check type="uninstall" condition="exists" path="digestIT 2004" />
<install cmd='msiexec /i "%SOFTWARE%\digestIT2004\digestIT 2004.msi" /qn'>
   <exit code="0" />
</install>
<remove cmd='msiexec /x{5B119660-1788-11D8-8EB8-0050BF643EE7} /qn' />
</package>

The default installatation is "%PROGRAMFILES%\digestIT 2004" at least for Windows XP. I found it was installed in "C:\" when I installed it on a Windows 2000 Professional SP 4 system using wpkg, however. You can specify the installation directory in the digestIT 2004 entry in the packages.xml file by using an entry like the following in the install section:

<install cmd='msiexec /i "%SOFTWARE%\digestIT2004\digestIT 2004.msi"
 /qn TARGETDIR="%PROGRAMFILES%\Utilities\File\digestIT 2004"'>
   <exit code="0" />
</install>

You could use the entry above to install the program into "C:\Program Files\Utilities\File\digestIT 2004". The installation process would create any of the subdirectories that did not exist.

Reference:

Installing and Uninstalling digestIT 2004 with WPKG