|
|
|
|
#1 |
|
Junior Member
Join Date: Mar 2006
Posts: 3
|
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?
|
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
You can open it and close it right away with FileOpen and FileClose.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 | |
|
Senior Member
Join Date: Jan 2005
Location: Look behind you.
Posts: 209
|
Quote:
code: -dandaman32 ExperienceUI for NSIS | Latest project: Enano CMS Do not PM me on the Winamp forums, I hardly ever check my messages here; you are more likely to get my attention through the ExperienceUI forum.
|
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Mar 2006
Posts: 3
|
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 |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jan 2005
Location: Look behind you.
Posts: 209
|
Here's what you're looking for:
code: ...and later, in your sections... code: -dandaman32 ExperienceUI for NSIS | Latest project: Enano CMS Do not PM me on the Winamp forums, I hardly ever check my messages here; you are more likely to get my attention through the ExperienceUI forum.
|
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Mar 2006
Posts: 3
|
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.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|