Author: peterw
Date: Sun Nov 25 21:16:54 2007
New Revision: 30749
URL:
http://svn.reactos.org/svn/reactos?rev=30749&view=rev
Log:
- Add back detection of previous versions of RosBE (versions 0.3.5b2 and before).
Modified:
trunk/tools/RosBE/RosBE-Windows/RosBE.nsi
Modified: trunk/tools/RosBE/RosBE-Windows/RosBE.nsi
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/RosBE.ns…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/RosBE.nsi (original)
+++ trunk/tools/RosBE/RosBE-Windows/RosBE.nsi Sun Nov 25 21:16:54 2007
@@ -348,7 +348,15 @@
Quit
${EndIf}
${If} $R0 == ""
- Return
+ ReadRegStr $R0 HKLM \
+ "Software\Microsoft\Windows\CurrentVersion\Uninstall\ReactOS
Build Environment" \
+ "UninstallString"
+ ReadRegStr $R1 HKLM \
+ "Software\Microsoft\Windows\CurrentVersion\Uninstall\ReactOS
Build Environment" \
+ "DisplayVersion"
+ ${If} $R0 == ""
+ Return
+ ${EndIf}
${EndIf}
MessageBox MB_YESNO|MB_ICONQUESTION \
"A previous version of the ${PRODUCT_NAME} was found. You must
uninstall it before installing this version.$\n$\nDo you want to do that now?" \