Security option run once?

Hi there i have tried several options not sure if im doing things right. I want to create a ebook file that will open up just the once. Once it has been closed the ebook cannot be opened again it just shows a message that it has expired !

Dont want to offer any keys etc just to run the program once can anybody guide me please !

You can for instance use a global variable.

When the ebook is first run, store “1” into a global variable named “expire”.

Next run, check for the value of the global variable. If it is equal to “1”, then display a message and exit.

See the documentation and samples for using global variable in HTML Executable.

Sorry for sounding stupid but how do i set up a global variable ?

Please see our extensive documentation. It comes with samples and explanations to get you started…
http://www.htmlexe.com/help/globalvariables
and this script should help:
http://www.htmlexe.com/help/samplescript1