![]() |
NSIS and Touch
I'm a novice at this and am trying touch a single file when executing the installer I'm creating using NSIS. I want this single file to show the install date as the "last modified" so that I know when it was installed (I don't want to use SetDateSave because that changes the date on all the files). Has anyone had success doing this sort of thing?
|
You can open it and close it right away with FileOpen and FileClose.
|
Quote:
code: -dandaman32 |
I try putting that in a fuction and get a 'install function "TouchFile" not referenced - zeroing code (0-4) out
' error. Function TouchFile FileOpen $0 $INSTDIR\test.txt a FileClose $0 FunctionEnd |
Here's what you're looking for:
code: ...and later, in your sections... code: -dandaman32 |
Someone has already written a pretty nice function for "touch". This might be interesting to you.
|
Had tried that Touch function before w/o success, but went back an made it work pretty well with using under a "Function .onGUIEnd" section. Thanks for all the input.
|
| All times are GMT. The time now is 17:46. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.