|
|
|
|
#1 |
|
Junior Member
Join Date: Jan 2015
Posts: 4
|
Hello team,
Thank you for your time and hint. This is a code snippet which i want to make silent Can you give me an example using the same code snippet. This would be of great help to us. Function Authenticate #Call to REST API for user authentication nsJSON::Set /file "c:\temp\<some file>" ShowWindow $WAITMSG ${SW_SHOW} ${NSD_SetText} $WAITMSG "User authentication in progress...." AnimGif: lay /NOUNLOAD /HALIGN=83 /VALIGN=73 $PLUGINSDIR\a.gifinetc: ost "grant_type=password&username=$UserNameText&password=$UserPwdText" /SILENT "<URL>" "c:\temp\<some file>" /ENDNsisCrypt::Base64Encode $UserNameText Pop $1 #MessageBox MB_OK $1 nsJSON::Set /file "c:\temp\<some file>" /END nsJSON::Get /exists "access_token" /END Pop $0 ${If} $0 == "yes" nsJSON::Get "access_token" /END Pop $TOKEN #MessageBox MB_OK $TOKEN StrCpy $isValidUser "true" #Call to REST API for getting the institution details ${NSD_SetText} $WAITMSG "Getting Institution details...." inetc::get /SILENT "<URL>" "c:\temp\<some file>" /END nsJSON::Set /file "c:\temp\<some file>" /END nsJSON::Get /count /END Pop $INSTITUTIONCOUNT ${Else} StrCpy $isValidUser "false" ${EndIf} #delete "c:\temp\<some file>" ShowWindow $WAITMSG ${SW_HIDE} AnimGif::stop FunctionEnd |
|
|
|
![]() |
|
|||||||
| Tags |
| silent installer |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|