43
edits
Changes
32 vs 64 bit : two packages
reboot="true">
<!-- <check type="uninstall" condition="exists" path="TortoiseSVN 1.6.6.17493 (32 bit)" /> -->
<!-- install 32bit tortoiseSVN only on 32bit OS --> <check type="logical" condition="or"> <check type="registry" condition="equals" path="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE" value="AMD64" /> <check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\TortoiseSVN\bin\TortoiseProc.exe" value="1.6.6.17493" /> </check> <install cmd='msiexec /qn /i "%SOFTWARE%\version_control\TTortoiseSVNTortoiseSVN-1.6.6.17493-win32-svn-1.6.6.msi" /norestart' >
<exit code="0" reboot="false" />
<exit code="3010" reboot="false" />
</remove>
</package>
<package
id="tortoisesvn-64"
name="TortoiseSVN 1.6.6"
revision="167"
priority="60"
reboot="false">
<!-- install 64bit tortoiseSVN only on 64bit OS -->
<check type="logical" condition="or">
<check type="registry" condition="equals" path="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE" value="x86" />
<check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\TortoiseSVN\bin\TortoiseProc.exe" value="1.6.6.17493"/>
</check>
<install cmd='msiexec /i "%SOFTWARE%\tortoisesvn\TortoiseSVN-1.6.6.17493-x64-svn-1.6.6.msi" /qn /norestart'>
<exit code="0" />
<exit code="3010" reboot="false" />
</install>
<upgrade cmd='msiexec /i "%SOFTWARE%\tortoisesvn\TortoiseSVN-1.6.6.17493-x64-svn-1.6.6.msi" /qn /norestart'>
<exit code="0" />
<exit code="3010" reboot="false" />
</upgrade>
<!-- remove command to be checked -->
<remove cmd='MsiExec.exe /Q /x {E0B2264B-6BE4-4F8B-8300-A05BFA87AAA0}' />
</package>
</packages>
</source>
* 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.
* 32 vs 64 bit : two packages. TortoiseSVN integrates in the explorer. On 32bit OS you need the 32bit application, on 64bit OS you need the 64bit application, or the explorer integration doesn't work. The checks in the packages ensure that the 32bit package is installed only on 32bit hosts, and the 64bit package is installed only on 64bit hosts,
== Avoiding reboot with TortoiseSVN 1.6.4 ==