|
|
#1 |
|
Junior Member
Join Date: Dec 2016
Posts: 3
|
Hello,
I need to use that command CopyFiles "$INSTDIR\Json.dll" $INSTDIR\"Newtonsoft.Json.dll" But it not work, because the name "Newtonsoft.Json.dll" have to dots "." How i can make that? |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
Your quotes are wrong in that example.
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Dec 2016
Posts: 3
|
Sorry...
If i change the dot in the file name Example Work: CopyFiles "$INSTDIR\Json.dll" "$INSTDIR\Newtonsoft_Json.dll" Example Not Work: CopyFiles "$INSTDIR\Json.dll" "$INSTDIR\Newtonsoft.Json.dll" Example2 Not Work File Newtonsoft.Json.dll Example 4 Work File Newtonsoft_Json.dll That is my problem. |
|
|
|
|
|
#4 | |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
Quote:
Anyway, CopyFiles uses SHFileOperation internally and it is possible that Windows is being "helpful" here. Which Windows version are you using? You can try CopyFiles with a simple name and then use the Rename instruction to set the final name. Rename does not use the shell so there should be fewer name restrictions. IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
|
#5 | |
|
Junior Member
Join Date: Dec 2016
Posts: 3
|
Quote:
I'm soo stupied, rename work fine... Thank's a lot man.... <3 |
|
|
|
|
|
|
#6 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
I know you are using Windows, I asked which Windows version.
IntOp $PostCount $PostCount + 1 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|