|
|
#1 |
|
Member
Join Date: Jun 2006
Posts: 54
|
Appending Year to InstallDir
I want to append the current calendar year to the InstallDir so that:
code: becomes: code: I tried using some of the date functions but since InstallDir is defined at the beginning of the .nsi file it throws an error (can only be used in a function). Any ideas? I want this to show up in the setup wizard in the default install folder. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,811
|
You can use !define /date and use the define with InstallDir OR you can set $instdir with StrCpy in .onInit at runtime
IntOp $PostCount $PostCount + 1 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|