I've created a custom page(.nsh)
and there are 3 text boxes (url, user, password)
for user typing in it and .NSI
file will get these data to write into a properties file.
But those text became to numeric such 9502966, 4718976 and 8455398.
What should I do?
This is my example code:
AcustomPage.nsh
...
!macro create_AcustomPage APP_NAME CUS_URL CUS_USER CUS_PWD
Page custom create_AcustomPage
Function create_AcustomPage
...
${NSD_CreateText} 60u 50u 60% 11u "${CUS_URL}"
Pop $AcustomPage.url
${NSD_CreateText} 60u 50u 60% 11u "${CUS_USER}"
Pop $AcustomPage.user
${NSD_CreateText} 60u 50u 60% 11u "${CUS_PWD}"
Pop $AcustomPage.pwd
...
FunctionEnd
...
!macroend
Project.nsi
...
!insertmacro create_AcustomPage "${NAME} ${VERSION}-${RELEASE}" "url.localhost" "username" "password"
...
${ConfigWriteS} "$INSTDIR\configure.properties" "custom_url=" "$CUS_URL" $R0
${ConfigWriteS} "$INSTDIR\configure.properties" "custom_user=" "$CUS_USER" $R0
${ConfigWriteS} "$INSTDIR\configure.properties" "custom_password=" "$CUS_PWD" $R0
Result #configure.properties
addi_url=18940788
addi_user=6750598
addi_password=11469950
But it should be:
addi_url=usl.localhost
addi_user=username
addi_password=password
Thanks,