Changes

Jump to: navigation, search

TortoiseSVN

1,752 bytes added, 03:53, 20 July 2009
Version update plus Win2k and Uninstall fixes.
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
 
<packages>
<package id="tortoisesvn" name="TortoiseSVN 1.5.7" revision="1571" priority="6010" reboot="falsetrue"> <!-- <check type="uninstall" condition="exists" path="TortoiseSVN 1.56.73.15182 16613 (32 bit)" /> --> <check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\TortoiseSVN\bin\TortoiseProc.exe" value="1.56.73.1518216613" /> <install cmd='msiexec /qn /i "%SOFTWARE%\tortoisesvnversion_control\TortoiseSVN-1.56.73.1518216613-win32-svn-1.56.53.msi" /qn /norestart'> <exit code="0" reboot="false" /> <exit code="3010" reboot="false" />
</install>
<upgrade cmd='msiexec /qn /i "%SOFTWARE%\tortoisesvnversion_control\TortoiseSVN-1.56.73.1518216613-win32-svn-1.56.53.msi" /qn /norestart'> <exit code="0" /> <exit code="3010" reboot="false" />
</upgrade>
<!-- <remove cmd='MsiExec.exe /Q qn /x "{E0B2264B3BC1954F-6BE4F5C9-4F8B4ED2-8300BB2A-A05BFA87AAA0BAEEF4DAC74D}"' > <exit code="0" /> -- <exit code="1641" reboot="false" /> </remove>
</package>
</packages>
</source>
* The "versiongreterorequalversiongreaterorequal" check gives the right to users to perform upgrade theirselves themselves before the upgrade is validated in wpkg. This is usefull useful in environments where users have some administration rights.
* The exit code 3010 command avoid a reboot after installation. Without it installation is not finished for WPKG, and TortoiseSVN will be reinstalled again and again.
 
== Windows 2000 ==
Recent versions of TortoiseSVN will not install on Windows 2000 unless the file gdiplus.dll exists in your system32 directory. Gdiplus can be downloaded from Microsoft. For Win2k add the following as the first install item.
<source lang="XML">
<install cmd='%COMSPEC% /C copy /Y "%SOFTWARE%\version_control\gdiplus.dll" "%WINDIR%\System32\"' />
</source>
 
== Uninstall ==
TortoiseSVN uninstall removes the file mfc90.dll from the Windows System directory. This will break your WPKG Client installation.
 
Here is one possible workaround:
Firstly, modify the wpkg client Checks, adding a check for mfc90.dll.
<source lang="XML">
<check type="logical" condition="and">
<check type="uninstall" condition="exists" path="WPKG" />
<check type="file" condition="versionequalto" path="%PROGRAMFILES%\wpkg\wpkgsrv.exe" value="1.0.0.11" />
<check type="file" condition="exists" path="%WINDIR%\system32\mfc90.dll" />
</check>
</source>
 
This is ok, as far as it goes, but since the WPKG Client is broken, it will be unable to repair itself. So, the next step is an Active Directory Group Policy script.
 
<source lang="dos">
set SOFTWARE=\\path\to\software
set WPKGROOT=\\your\wpkg\root
 
IF EXIST "%programfiles%\wpkg\WPKGSrv.exe" GOTO CHECKMFC
cscript "%WPKGROOT%\wpkg.js" /synchronize /quiet /nonotify
GOTO END
:CHECKMFC
IF EXIST "%WINDIR%\system32\mfc90.dll" GOTO END
cscript "%WPKGROOT%\wpkg.js" /synchronize /quiet /nonotify
:END
</source>
 
Alternatively, delete the tortoiseSVN "remove" Action and only uninstall manually, performing a manual repair of the WPKG Client immediately after.
[[category:Silent Installers|TortoiseSVN]]
117
edits

Navigation menu