Rename a file
Hi all,
I am trying to rename a file when a special radio button is clicked. Buut nothing happens and no error occurs.
I tried like this:
Function MyCustomLeave
!insertmacro INSTALLOPTIONS_READ $R1 "licInfoDlg.ini" "Settings" "State"
ReadINIStr $2 "licinfodlg.ini" "Field 3" "State"
${If} $R1 == 2 # Field 1.
Rename $INSTDIR\bin\filename_old.dll $INSTDIR\bin\filename_new.dll
strcpy $lic_type "Demoversion"
Abort
${EndIf}
${If} $R1 == 3 # Field 1.
Rename $INSTDIR\bin\filename_old.dll $INSTDIR\bin\filename_new.dll
strcpy $lic_type "Seriennummer"
Abort
${EndIf}
${If} $R1 == 6 # Field 1.
Rename $INSTDIR\bin\filename_old_2.dll $INSTDIR\bin\filename_new_2.dll
strcpy $lic_type "Lizensserver"
Abort
${EndIf}
FunctionEnd
Can someone tell me what is going wrong or another possibility to change the name?
Regards