Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Inno Setup -How to keep Registry Keys after Uninstall

rajeshkumar created the topic: Inno Setup – How to keep registry keys after uninstall.
Hello,

I am have an installer running for a shareware program that has a time limit. The installer saves an obscure key in the windows registry with the install date, and I do not want this key to be removed when uninstalling, so that the user cannot simply uninstall and reinstall the program in order to circumvent the time limit.

I have tried to use custom Delphi code to write the key ( RegWriteStringValue() ) but it looks like the uninstaller removes those as well. Any ideas on how to keep the registry key (or another way to keep the original install date in the system)?
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x