NewsArchive
02-25-2011, 01:50 AM
I am trying to read the registry in a x64 OS - I am using the Enable 64
Support function but it seems to not be working. See below. In the
Display Message Box, %IS_X64% is a one. When I issue the Get Registry
Key Value, it is returning my default (1.0) instead of the actual
version. What am I doing wrong?
TIA, Dee
! see if x64 system
Set Variable %IS_X64% to FUNCTION:Get System Info(WOW64 Status)
If %IS_X64% Equals "1" Then
Enable x64 Support
End
Display Message Box "%IS_X64% (1 = yes)" -- "Is it x64?"
Exit Installation()
! See if Pervasive (must be version 9.5 or greater) issue
Set Variable %PERVASIVE_ENGINE% to "SERVER"
! If Pervasive workgroup, get the version
Set Variable %PCC_VERSION% to FUNCTION:Get Registry Key Value
("VersionLevel") from "HKEY_LOCAL_MACHINE\Software\Pervasive Software
\Products\Pervasive.SQL Workgroup\InstallInfo"
If %PCC_VERSION% Version Equals "1.0" Then
! Not Pervasive workgroup, get server version
Set Variable %PCC_VERSION% to FUNCTION:Get Registry Key Value
("VersionLevel") from "HKEY_LOCAL_MACHINE\Software\Pervasive Software
\Products\Pervasive.SQL NT Server\InstallInfo"
Set Variable %PERVASIVE_ENGINE% to "SERVER"
Else
! Yes Pervasive workgroup
Set Variable %PERVASIVE_ENGINE% to "WORKGROUP"
End
! If x64, disable x64 support
If %IS_X64% Equals "1" Then
Disable x64 Support
End
--
Dee Witham
Professional Data Services, Inc
Support function but it seems to not be working. See below. In the
Display Message Box, %IS_X64% is a one. When I issue the Get Registry
Key Value, it is returning my default (1.0) instead of the actual
version. What am I doing wrong?
TIA, Dee
! see if x64 system
Set Variable %IS_X64% to FUNCTION:Get System Info(WOW64 Status)
If %IS_X64% Equals "1" Then
Enable x64 Support
End
Display Message Box "%IS_X64% (1 = yes)" -- "Is it x64?"
Exit Installation()
! See if Pervasive (must be version 9.5 or greater) issue
Set Variable %PERVASIVE_ENGINE% to "SERVER"
! If Pervasive workgroup, get the version
Set Variable %PCC_VERSION% to FUNCTION:Get Registry Key Value
("VersionLevel") from "HKEY_LOCAL_MACHINE\Software\Pervasive Software
\Products\Pervasive.SQL Workgroup\InstallInfo"
If %PCC_VERSION% Version Equals "1.0" Then
! Not Pervasive workgroup, get server version
Set Variable %PCC_VERSION% to FUNCTION:Get Registry Key Value
("VersionLevel") from "HKEY_LOCAL_MACHINE\Software\Pervasive Software
\Products\Pervasive.SQL NT Server\InstallInfo"
Set Variable %PERVASIVE_ENGINE% to "SERVER"
Else
! Yes Pervasive workgroup
Set Variable %PERVASIVE_ENGINE% to "WORKGROUP"
End
! If x64, disable x64 support
If %IS_X64% Equals "1" Then
Disable x64 Support
End
--
Dee Witham
Professional Data Services, Inc