You are here

Need some help with Custom.nsh

2 posts / 0 new
Last post
terra666
Offline
Last seen: 3 years 11 months ago
Joined: 2014-06-22 13:42
Need some help with Custom.nsh

Hi,
I need to set a variable which will be used in a current run of the program but which will be set from information generated by the preceding run of the program. I know I need to use Custom.nsh in order to do that, but I need some help with it.
Thank you in advance.

richo
richo's picture
Offline
Last seen: 1 week 2 days ago
Joined: 2007-01-31 22:03
RE: Need some help with Custom.nsh

Use the "Init" hook to read the information from the previous run [providing a default if none].

Depending on how that data is used, save the information using either the "Pre" hook or the "Post" hook.
If the app needs the information, use "Pre". If its just for the launcher, use Post.

Save the information using the "Pre" hook.

Log in or register to post comments