You are here

Need some help with Custom.nsh

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

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's picture
Last seen: 4 weeks 1 day 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