I know how to have Inno Setup create/manipulate registry keys and/or values on install and I know that you can delete a value, a key, etc when uninstalling. But is there any way to have Inno Setup actually change the value of a key when the uninstall process is done?

The setup I'm creating changes the value of a dword key that another application uses to a value to 1, indicating it's installed, and when this application is removed I need the value to be restored to 0, indicating it's removal. Is this possible, without deleting the actual key/value?

Thanks, this indeed works. However it should be noted that RegWriteStringValue is for REG_SZ type values. So in my case I need to use RegWriteDWordValue which is, as the name implies, for DWord values. Put me on the correct path though, so thanks a ton!
–
jmwhitmanOct 29 '12 at 23:01

No problem. I have mentioned DWord, Binary, String in introduction. As I didn't know which one you need, I gave an example with String.
–
RobeNOct 30 '12 at 9:14