|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 |
Junior Member
Join Date: May 2017
Posts: 2
|
ReadRegStr seems to be pulling old values
I have a function that is checking for the minimum versions of MSSQLExpress installed on a server. When i test the installer with a version lower than the required versions the code works and errors out with my expected message. When i upgrade MSSQLExpress to the required version or above it will still act like it's reading the original version number and continue to error out. I have checked the registry key that it's looking for and it's updating with the correct value but my installer is still coming back with the older version number. This behavior persists through reboots as well.
Here is the section of code that has the logic. Everything else is just Messages for the user. code: |
![]() |
![]() |
![]() |
#2 |
Junior Member
Join Date: May 2017
Posts: 2
|
Here's a little clearer example of what's happening. Lets say I have MSSQLExpress version 10.50.4000 installed. So I run this command and it will come back with that version string.
code: But, then I install SP3 which brings the version number in the registry up to 10.50.6000. The same exact command that worked before looking at the same registry key that has updated if you look at it in regedit, still shows the old version number. I don't really understand why it's still showing the old version number when you can look in regedit and see that the version has updated? |
![]() |
![]() |
![]() |
#3 |
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 858
|
Perhaps it's a 32bit/64bit issue. Try switching the registry view to 64bit, read from the registry, and set it back to 32bit. Reference:http://nsis.sourceforge.net/Docs/Cha...tml#setregview.
"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|