You are here

helpful examples for the use of hooks

8 posts / 0 new
Last post
tapsklaps
Offline
Last seen: 5 years 6 months ago
Developer
Joined: 2010-10-17 08:11
helpful examples for the use of hooks

Is it possible, that someone can offer some helpful examples for the usage of hooks? I am particularly interested in the hooks .onInit, Init and Unload. But certainly examples to the other hooks would also be useful. Or exists a website with appropriate tutorials?

Aluísio A. S. G.
Offline
Last seen: 7 years 9 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
It depends on what you want to do

Their usage is identical to the other hooks.

Previously known as kAlug.

tapsklaps
Offline
Last seen: 5 years 6 months ago
Developer
Joined: 2010-10-17 08:11
Unload of plugins

Especially regarding the usage of the hook "Unload" I read in the documentation, that it can be used for the unload of plugins. But how this will be realized in detail? An example would surely increase the understanding for this topic.

gluxon
gluxon's picture
Offline
Last seen: 3 years 7 months ago
Developer
Joined: 2008-06-21 19:26
Unload of plugins should be

Unload of plugins should be already done automatically by the Launcher.

tapsklaps
Offline
Last seen: 5 years 6 months ago
Developer
Joined: 2010-10-17 08:11
oddly

But why this feature will be mentioned explicitly in the documentation still below the hook "Unload".

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 14 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
certain plugins

Certain plugins need to be specifically unloaded. the registry plugin is one example. however, by enabling the Registry in the launcher.ini, the PAL generator automatically adds the code to unload the registry plugin for you. all plugins handled automatically by PAL work like this.

Sometimes, the impossible can become possible, if you're awesome!

tapsklaps
Offline
Last seen: 5 years 6 months ago
Developer
Joined: 2010-10-17 08:11
back to my original concern

Surely exists many way to solve a problem. But actually was the occasion for the opening of this thread, that I was looking for examples to illustrate the usage of the hooks.

Aluísio A. S. G.
Offline
Last seen: 7 years 9 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Just NSIS code

They are just NSIS code. The only difference is when they are executed (and some additional functions and variables you'll have available).

Previously known as kAlug.

Log in or register to post comments