Commit 00bdca3d authored by Adriano Da Luz's avatar Adriano Da Luz

installer.nsi: Changed the way to retrieve the INEP from user input

The content of the inep input textbox is copied to the Inep
variable on validate function.
Signed-off-by: default avatarAdriano Da Luz <al08@c3sl.ufpr.br>
Signed-off-by: default avatarGuilherme Zasyeki Machado <gzm07@c3sl.ufpr.br>
Acked-by: default avatarDanilo Kiyoshi Simizu Yorinori <danilok@c3sl.ufpr.br>
Acked-by: Erik Alexandre Pucci's avatarErik Alexandre Pucci <eap08@inf.ufpr.br>
parent f39774a9
......@@ -94,6 +94,7 @@ Var ProxyPort
Var ProxyUser
Var ProxyPass
Var RegInep
Var InepPointer
;Installer init function
Function .onInit
......@@ -227,7 +228,7 @@ Function INEP
Pop $R2
${NSD_CreateText} 0 13u 100% 12u ""
Pop $Inep
Pop $InepPointer
;Check onClick event on "Validar" button
${NSD_CreateButton} 255u 40u 15% 12u "Validar"
......@@ -245,15 +246,15 @@ Function validate
SetOutPath "$TEMP"
File "..\bin\getSchoolInfo.exe"
${NSD_GetText} $Inep $R0
${NSD_GetText} $InepPointer $Inep
${if} $haveProxyInfo = 0
nsExec::Exec "$TEMP\getSchoolInfo.exe http://seed.c3sl.ufpr.br:8888/\
axis/services/Seed2InstallService $R0"
axis/services/Seed2InstallService $Inep"
Pop $ReturnValue
${else}
nsExec::Exec "$TEMP\getSchoolInfo.exe http://seed.c3sl.ufpr.br:8888/\
axis/services/Seed2InstallService $R0 $ProxyHost $ProxyPort \
axis/services/Seed2InstallService $Inep $ProxyHost $ProxyPort \
$ProxyUser $ProxyPass"
Pop $ReturnValue
${endif}
......@@ -280,8 +281,7 @@ Section "SeçãoPrincipal" SEC01
ClearErrors
ReadRegStr $R2 HKLM "SOFTWARE\${PRODUCT_NAME}" "INEP"
${If} ${Errors}
${NSD_GetText} $Inep $R0
WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "INEP" $R0
WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "INEP" $Inep
${EndIf}
;Add ProinfodataAgent task in Windows task scheduler
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment