Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hey All,

I am working on windows application. To know whether the application is used for the first time I am using Application property bool by default value is false and when application executes its became true as
Properties.Settings.Default.FirstTime = true; Properties.Settings.Default.Save();

But when i am creating setup next time (means second time from visual studio) still the value of FirstTime is True.I want to make it default value i.e False when every time I create new setup. This is not happening

I want to restore the Application Setting FirstTime to false whenever I create new setup


If you have suggestion please let me know
Posted
Updated 6-Mar-14 2:36am
v2
Comments
johannesnestler 6-Mar-14 9:58am    
my guess is your Setup doesn't update the app.config - and for most usecases it shouldn't (users don't want the Settings reset after an update?) - have a look at the file Settings in your setup-Project (If you tell which tech you use maybe I could help with a more specific advice) msi? clickonce InstallShield?
RAHUL(10217975) 6-Mar-14 14:09pm    
I am using clickonce InstallShield. Do you have any idea how can i reset application settings every time i create setup
RAHUL(10217975) 7-Mar-14 14:02pm    
Johannestler can you help me please?
RAHUL(10217975) 19-Mar-14 8:48am    
Johannesnestler can you give me some more idea??
Kinjal Sucess 22-May-18 7:10am    
we have same issue .did you got solution ?

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