Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 7th September 2013, 02:18   #1
didava
Member
 
Join Date: May 2007
Posts: 98
nsis GetTime Installation date is stored in the Windows registry

When I install the program Installation date is stored in the Windows registry

PHP Code:
Section
${GetTime"" "L" $$$$$$$6
; $0="01" day
; $1="04" month
; $2="2006" year
; $3="Friday" day of week name
; $4="16" hour
; $5="05" minute
; $6="50" seconds

WriteRegStr HKLM 
"Software\MyApp" "year" "$2"
WriteRegStr HKLM "Software\MyApp" "month" "$1"
WriteRegStr HKLM "Software\MyApp" "day" "$0"

${EndIf}

SectionEnd 
I do not know how to run the following command:

Read on from Registry > calculated > 30 days after the message plz updated

When you save the file to read and the program will run for 1 month from the last recorded warning

Can you please help with sample code

Sorry my English is poor

Please help me I'm amateur

Many thanks...
didava is offline   Reply With Quote
Old 7th September 2013, 14:25   #2
didava
Member
 
Join Date: May 2007
Posts: 98
Does anyone know?
Why do not you answer?

Professor?
Teachers?

The nsis forums not the same
Quick answer
I was forced to answer 10 questions ask somebody remembered

Why is it this way?
didava is offline   Reply With Quote
Old 7th September 2013, 18:54   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,913
First of all, it is Saturday, you cannot expect people to answer right away. Bumping threads with pointless bitching does not help.

It is also pretty hard to understand you sometimes. If you want to perform some math operation, use IntOp and IntCmp. For 64 bit numbers, use the system plugin...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 7th September 2013, 21:49   #4
didava
Member
 
Join Date: May 2007
Posts: 98
Many thanks for the tips
But it hit a small example
I have previously worked
It was a long time I did not work
I forgot algorithm
I thank you
The example code show
Again
Again
Thank you for your efforts

nsis is my love
didava is offline   Reply With Quote
Old 11th September 2013, 22:18   #5
didava
Member
 
Join Date: May 2007
Posts: 98
Now the last few days since my question

How much should I expect this to be an example

?

Thank you!
didava is offline   Reply With Quote
Old 12th September 2013, 06:13   #6
stass
Senior Member
 
Join Date: Nov 2012
Posts: 145
didava
It is not clear what you want... Define the problem clearly and competently.
Based on data from the registry - count the 30 days from the initial date?

Can help:
http://nsis.sourceforge.net/Count_ho..._been_executed
stass is offline   Reply With Quote
Old 12th September 2013, 11:45   #7
didava
Member
 
Join Date: May 2007
Posts: 98
This is not
Thanks for Help
Runs many times, it is still
Let me first say that I would exactly
The first installation After installing the
A file created with nsis
Windows Registry placed in the startup runs every time Windows starts
This file runs
Should
The date already stored in the Windows Registry with installer
On comparing the installation date
The last few days?
After the 30 days were compared
Update message to

Sorry my English is not good

code:


Section
${GetTime} "" "L" $0 $1 $2 $3 $4 $5 $6
; $0="01" day
; $1="04" month
; $2="2006" year
; $3="Friday" day of week name
; $4="16" hour
; $5="05" minute
; $6="50" seconds

WriteRegStr HKLM "Software\MyApp" "year" "$2"
WriteRegStr HKLM "Software\MyApp" "month" "$1"
WriteRegStr HKLM "Software\MyApp" "day" "$0"

${EndIf}

SectionEnd


I have a problem to call and calculate the day
Many thanks...
didava is offline   Reply With Quote
Old 14th September 2013, 02:50   #8
didava
Member
 
Join Date: May 2007
Posts: 98
It does not have any knowledge of the
* I'm trying to help
What is a forum?
Why not do a final example
didava is offline   Reply With Quote
Old 14th September 2013, 11:01   #9
DrO
 
Join Date: Sep 2003
Posts: 27,873
because no one understands what you're asking (i cannot work out what's being asked).

if needed, post your question in english and also your native language and is possible someone can translate it (or can google translate it to try to work out what it is you're actually asking for).
DrO is offline   Reply With Quote
Old 16th September 2013, 07:40   #10
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 520
Send a message via ICQ to T.Slappy
Quote:
Originally Posted by didava View Post
It does not have any knowledge of the
* I'm trying to help
What is a forum?
Why not do a final example
You cannot expect everyone will solve your problems immediately after you post it.

And asking for full example is bloody rude - no one has an idea what are you trying to achieve!

If you need help because you cannot do that by yourself then rather use professional services and let someone to make that installer for you.

Cool looking skinned Graphical Installers: www.graphical-installer.com
I offer NSIS scripting, C/C++/C#/Delphi programming: www.unsignedsw.com
Develop NSIS projects in Visual Studio 2005-2017: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.2 Tokyo: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Old 16th September 2013, 14:49   #11
Instructor
Major Dude
 
Join Date: Jul 2004
Posts: 671
didava
Time plugin can calculate date after 30 days.
Instructor is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump