this was a temporarily put aside project, however, I had another one come up that was very similar.
On the below project I am getting no results in the Variables I am trying to get the data out of. The dialog was also created by the Coolsoft NSIS Dialog Designer. What am I doing wrong?
Office Path.nsdinc(Form file) contains: (FR_*_BTN is the button of a FileRequest, FR_*_TXT is the TextBox portion of it)
Quote:
; handle variables
Var hCtl_Office_Path
Var hCtl_Office_Path_LB_ExcelEXEFile
Var hCtl_Office_Path_LBL_WordEXEFile
Var hCtl_Office_Path_FR_ExcelPath_Txt
Var hCtl_Office_Path_FR_ExcelPath_Btn
Var hCtl_Office_Path_FR_WordPath_Txt
Var hCtl_Office_Path_FR_WordPath_Btn
|
I am using a Function in my file to try to get the data:
Quote:
Function fnc_Office_PathData_Show
!insertmacro NSD_GetUserData $hCtl_Office_Path_FR_ExcelPath_Txt $ExcelEXEPath
!insertmacro NSD_GetUserData $hCtl_Office_Path_FR_WordPath_Txt $WordEXEPath
MessageBox MB_OK "Excel = $ExcelEXEPath; Word = $WordEXEPath"
FunctionEnd
|
To support this I took the code off of a webpage and placed it in NSD_GetUserData.nsh file (which I !included in my file with the function)
Quote:
!macro NSD_SetUserData hwnd data
nsDialogs::SetUserData ${hwnd} ${data}
!macroend
!define NSD_SetUserData `!insertmacro NSD_SetUserData`
!macro NSD_GetUserData hwnd outvar
nsDialogs::GetUserData ${hwnd}
Pop ${outvar}
!macroend
!define NSD_GetUserData `!insertmacro NSD_GetUserData`
|