Thanks for your time. I tried various forms of this without success.
What I am trying to do, is have the user select from "A County" and "B County" in a droplist and then set the File to "path/A County/file.gdx". As it stands, I can sucessfully do Get_Text to determine what they selected then use conditional statements to build the path statically. I would love to put what they select, say "A County", directly into the path without to much logic, but the space seems to cause a problem I cannot overcome.
Here is the code:
Function dialogSelectJurisdiction
nsDialogs::Create 1018
Pop $dialogSelectJurisdiction
${If} $dialogSelectJurisdiction == error
Abort
${EndIf}
!insertmacro MUI_HEADER_TEXT "Templates - " "Selecting Jurisdiction"
${NSD_CreateLabel} 15u 8u 261u 19u "Please choose your response jurisdiction."
Pop $dialogSelectJurisdiction_label
${NSD_CreateDropList} 12u 30u 140u 23u ""
Pop $dialogSelectJurisdiction_selection
; Based on Region
${if} $region_1 == ${BST_CHECKED}
${NSD_CB_AddString} $dialogSelectJurisdiction_selection "Alfalfa County"
${NSD_CB_AddString} $dialogSelectJurisdiction_selection "Texas County"
${NSD_CB_SelectString} $dialogSelectJurisdiction_selection "Alfalfa County"
${elseif} $region_2 == ${BST_CHECKED}
${NSD_CB_AddString} $dialogSelectJurisdiction_selection "City of Stillwater"
${NSD_CB_AddString} $dialogSelectJurisdiction_selection "Osage County"
${NSD_CB_SelectString} $dialogSelectJurisdiction_selection "City of Stillwater"
${endif}
nsDialogs::Show
FunctionEnd
Function dialogSelectJurisdictionLeave
${NSD_GetText} $dialogSelectJurisdiction_selection $jurisdiction
FunctionEnd
; Oklahoma Region
${if} $region_1 == ${BST_CHECKED}
File temp_OK_specific\Region_1\0000005Z.CSI
${if} $jurisdiction == "Alfalfa County"
File temp_OK_specific\Region_1\Alfalfa_Co\Globals.gdx
${elseif} $jurisdiction == "Texas County"
File temp_OK_specific\Region_1\Texas_Co\Globals.gdx
${endif}
${elseif} $region_2 == ${BST_CHECKED}
File temp_OK_specific\Region_2\0000005Z.CSI
${if} $jurisdiction == "City of Stillwater"
File temp_OK_specific\Region_2\Stillwater\Globals.gdx
${elseif} $jurisdiction == "Osage County"
File temp_OK_specific\Region_2\Osage_Co\Globals.gdx
${endif}
${endif}