0
votes

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)?

1

1 Answers

0
votes

From the Inno Setup documentation ([Registry] section):

By default, registry keys and values created by Setup are not deleted at uninstall time. If you want the uninstaller to delete keys or values, you must include one of the uninsdelete* flags described below.