Just use the same way, somewhere:
[tt]SaveSetting appname:="YourDemoApp", section:="StartUp", Key:="Counter", setting:=0[/tt]
You can use other keys in your application, as ...Key:="Demo", setting:=True etc.
You can find some help in VBA help file.
BTW, it is not the best way to protect application (and excel is not the best platform for creating well secured application), but enough for standard user with blocked access to the registry.
combo