; Main Configuration Settings !define PRODUCT_NAME "Configure PSQL 12.11" !define PRODUCT_VERSION "PSQL 12.11 " ;!include "nsProcess.nsh" !include "LogicLib.nsh" !include "Registry.nsh" Page instfiles ;--------------------------- Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" OutFile "Configure PSQL 12.11.exe" InstallDir "$DESKTOP" ShowInstDetails nevershow Section "MainSection" SEC01 ;-------------- ${registry::KeyExists} "HKEY_LOCAL_MACHINE\SOFTWARE\Pervasive Software\Products\OneTwoThree\InstallInfo" $R0 MessageBox MB_OK "registry::KeyExists$\n$\n\ Errorlevel: [$R0] OneTwoThree exists" ${registry::KeyExists} "HKEY_LOCAL_MACHINE\SOFTWARE\Pervasive Software\Products\Pervasive.SQL Client\InstallInfo" $R0 MessageBox MB_OK "registry::KeyExists$\n$\n\ Errorlevel: [$R0] Client exists" ${registry::KeyExists} "HKEY_LOCAL_MACHINE\SOFTWARE\Pervasive Software\Products\Pervasive.SQL NT Server\InstallInfo" $R0 MessageBox MB_OK "registry::KeyExists$\n$\n\ Errorlevel: [$R0] Server exists" ${registry::Read} "HKEY_LOCAL_MACHINE\SOFTWARE\Pervasive Software\Products\Pervasive.SQL Client\InstallInfo" "ProductVersion" $R0 $R1 MessageBox MB_OK 'registry::Read$\n$\n\ $$R0 "string" =[$R0]$\n\ $$R1 "type" =[$R1]$\n' ${registry::Read} "HKEY_LOCAL_MACHINE\SOFTWARE\Pervasive Software\Products\Pervasive.SQL NT Server\InstallInfo" "ProductVersion" $R0 $R1 MessageBox MB_OK 'registry::Read$\n$\n\ $$R0 "string" =[$R0]$\n\ $$R1 "type" =[$R1]$\n' SectionEnd ;------------------------------------------