Commit 1fc8cbec authored by Sreedhar.S's avatar Sreedhar.S

Fix for Bug:16053094

      Registry redirection was improper and hence not able to pick the value for the OLDERVERSION property. as a result in the install upgrade dialog null value wa being passed.
parent 8cafa707
...@@ -70,10 +70,10 @@ ...@@ -70,10 +70,10 @@
Installed Installed
</Custom> </Custom>
</InstallExecuteSequence> </InstallExecuteSequence>
<InstallUISequence> <InstallUISequence>
<!-- App search is what does FindInstallLocation, and it is dependent on FindRelatedProducts --> <!-- App search is what does FindInstallLocation, and it is dependent on FindRelatedProducts -->
<AppSearch After="FindRelatedProducts"/> <AppSearch After="FindRelatedProducts"/>
</InstallUISequence> </InstallUISequence>
<!-- Find previous installation --> <!-- Find previous installation -->
<Property Id="INSTALLDIR"> <Property Id="INSTALLDIR">
...@@ -83,31 +83,43 @@ ...@@ -83,31 +83,43 @@
Name="InstallLocation" Name="InstallLocation"
Type="raw" /> Type="raw" />
</Property> </Property>
<Property Id="OLDERVERSION"> <?if @Platform@ != "x64" ?>
<RegistrySearch Id="FindOlderVersion" <Property Id="OLDERVERSION">
Root="HKLM" <RegistrySearch Id="FindOlderVersion"
Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[OLDERVERSIONBEINGUPGRADED]" Root="HKLM"
Name="DisplayVersion" Win64 = "no"
Type="raw" /> Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[OLDERVERSIONBEINGUPGRADED]"
</Property> Name="DisplayVersion"
<Property Id="DATADIR"> Type="raw" />
</Property>
<?else ?>
<Property Id="OLDERVERSION">
<RegistrySearch Id="FindOlderVersion"
Root="HKLM"
Win64 = "yes"
Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[OLDERVERSIONBEINGUPGRADED]"
Name="DisplayVersion"
Type="raw" />
</Property>
<?endif ?>
<Property Id="DATADIR">
<RegistrySearch Id="FindDataDir" <RegistrySearch Id="FindDataDir"
Root="HKLM" Root="HKLM"
Key="SOFTWARE\MySQL AB\[ProductName]" Key="SOFTWARE\MySQL AB\[ProductName]"
Name="DataLocation" Name="DataLocation"
Type="raw" /> Type="raw" />
</Property> </Property>
<Property Id="INSTALLDIR2"> <Property Id="INSTALLDIR2">
<RegistrySearch Id="FindInstallLocation2" <RegistrySearch Id="FindInstallLocation2"
Root="HKLM" Root="HKLM"
Key="SOFTWARE\MySQL AB\[ProductName]" Key="SOFTWARE\MySQL AB\[ProductName]"
Name="Location" Name="Location"
Type="raw" /> Type="raw" />
</Property> </Property>
<CustomAction Id="SetInstallDir2" Property="INSTALLDIR" Value="[INSTALLDIR2]" /> <CustomAction Id="SetInstallDir2" Property="INSTALLDIR" Value="[INSTALLDIR2]" />
<InstallUISequence> <InstallUISequence>
<Custom Action="SetInstallDir2" After="AppSearch">INSTALLDIR2</Custom> <Custom Action="SetInstallDir2" After="AppSearch">INSTALLDIR2</Custom>
</InstallUISequence> </InstallUISequence>
<!-- UI --> <!-- UI -->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment