Changes

Jump to: navigation, search

WinMerge

2,068 bytes added, 20:39, 27 December 2007
New page: = WinMerge = WinMerge is an Open Source visual text file differencing and merging tool for Win32 platforms. See [http://winmerge.org/ WinMerge Homepage]. I am using the following unatten...
= WinMerge =

WinMerge is an Open Source visual text file differencing and merging tool for Win32 platforms. See [http://winmerge.org/ WinMerge Homepage].

I am using the following unattended configuration:

<pre>
<?xml version="1.0" encoding="utf-8" ?>
<packages>

<package id='WinMerge' name='WinMerge' revision='26120' priority='50' reboot='false' >
<check type='uninstall' condition='exists' path='WinMerge 2.6.12.0' />
<install cmd='"%SOFTWARE%\WinMerge v.2.6.12.0\unattended.cmd"' />
<remove cmd='"%SOFTWARE%\WinMerge v.2.6.12.0\unattended-uninstall.cmd"' />
<upgrade cmd='"%SOFTWARE%\WinMerge v.2.6.12.0\unattended.cmd"' />
</package>

</packages>
</pre>

As you can see I am using a command-script to install WinMerge. Here is the code of the two scripts:

unattended.cmd:
<pre>
@echo off

echo Installing WinMerge

set BINARY=WinMerge-2.6.12-Setup.exe
set INSTALL_LOC=%~dp0

start /wait "WinMerge" "%INSTALL_LOC%%BINARY%" /VERYSILENT /SP- /NORESTART
</pre>

unattended-uninstall.cmd:
<pre>
@echo off

echo Removing WinMerge

set PROG_FILES=%ProgramFiles%
if not "%ProgramFiles(x86)%" == "" set PROG_FILES=%ProgramFiles(x86)%

start /wait "WinMerge" "%PROG_FILES%\WinMerge\unins000.exe" /VERYSILENT /SP- /NORESTART
</pre>

As you can see I am using the unattended-uninstall.cmd script to support the %ProgramFiles(x86)% location on Windows x64 editions.

If you do not need to support x64 editions you might simply include the command lines within the XML file:

<pre>
<?xml version="1.0" encoding="utf-8" ?>
<packages>

<package id='WinMerge' name='WinMerge' revision='26120' priority='50' reboot='false' >
<check type='uninstall' condition='exists' path='WinMerge 2.6.12.0' />
<install cmd='"%SOFTWARE%\WinMerge v.2.6.12.0\WinMerge-2.6.12-Setup.exe" /VERYSILENT /SP- /NORESTART' />
<remove cmd='"%ProgramFiles%\WinMerge\unins000.exe" /VERYSILENT /SP- /NORESTART' />
<upgrade cmd='"%SOFTWARE%\WinMerge v.2.6.12.0\WinMerge-2.6.12-Setup.exe" /VERYSILENT /SP- /NORESTART"' />
</package>

</packages>
</pre>

[[category:Silent Installers|Firefox]]
24
edits

Navigation menu