n4gix
Resource contributor
- Messages
- 11,674
- Country
Here is my NSIS script routine for P3Dv2.x or P3Dv3.x installers:
Code:
Function nsDialogsPageLeave
${NSD_GetState} $RadioButton1 $RadioButton1_State
${NSD_GetState} $RadioButton2 $RadioButton2_State
${NSD_GetState} $Checkbox2 $Checkbox2_State
${If} $RadioButton1_State == 1
ReadRegStr $INSTDIR HKLM "Software\Lockheed Martin\Prepar3D v2" SetupPath
${EndIf}
${If} $RadioButton2_State == 1
ReadRegStr $INSTDIR HKLM "Software\Lockheed Martin\Prepar3D v3" SetupPath
${EndIf}
FunctionEnd