Skip to content
⌘ NSIS Forum Archive

Rename file *.lic in toto.lic

4 posts

youn75#

Rename file *.lic in toto.lic

Rename file *.lic in toto.lic doesn't work in $INSTDIR.
Is there a solution or no?

Sincerely,

Yves (Paris)
kichik#
Can you provide more details? What's the command you've used? Where does it work, if not in $INSTDIR?
youn75#
Rename file *.lic in toto.lic

I have used this command :
Rename "$INSTDIR\*.lic" "$INSTDIR\$toto.lic"

But it doesn't run because file in '*.lic' is not found on $INSTDIR.
Is there another helpful method?
Afrow UK#
Logically that instruction is flawed. You want it to rename any files with a .lic file extension to a single file called $toto.lic...

You need to specify the actual path for the file to rename.
If you don't know what it is called, use FindFirst ... "$INSTDIR\*.lic", FindNext and FindClose.

-Stu