Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, so far i have created a program that has a checkbox option 'dont show this again'. When i check the option, the window not displayed again all goes well here. But the problem is when i have uninstalled the application and reinstall it again, the checkbox option window is still not displayed. Plz help how can i make it to display on every reinstallation, here is link from which i created this application- Add a 'Dont show this dialog again' Checkbox with minimal effort[^]
I am using vs studio 2008 express and inno setup.
Posted
Updated 24-Apr-13 0:19am
v2

You have to delete the registry key which was generated in your dialog when you uninstall the program.
However, show us the code where you create the registry key when you want to know which registry key you have to delete.
 
Share this answer
 
Comments
Leo Chapiro 24-Apr-13 6:37am    
+5 :)
Marco Bertschi 24-Apr-13 7:03am    
Thank you!
Hi,

Create a configuration file and place a flag , based on the flag value enable or disable the dialog. When u check the checkbox update in the configuration file. and based on the value of in the configuration file do whatever you want.
 
Share this answer
 
Comments
Marco Bertschi 24-Apr-13 7:03am    
Could be a way, but basing on what he said he already enabled the show/not show feature aöready. His only problem is now that he wants to have the show/not show thingies when the SW is reinstalled, without changing anything at the software.
Rockstar_ 24-Apr-13 7:10am    
There are plenty of solution are there, but this is the most easiest solution.
You can just call the
C#
Reset
function in your un-install. you can override the uninstall and call the "Reset" function. The reset function already having a logic to set the registry key values to 0. Or you can keep the code to remove the registry key in the Uninstall part. For this you can first call this
C#
GetRegKeyNameForForm
function which will get the RegistryKey and can remove by using this code

key.DeleteValue("DontShowAgain");


Thank You,
Siju Thomas.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900