Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / October 2006

Tip: Looking for answers? Try searching our database.

My.Settings values are incorrect?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hank123 - 30 Oct 2006 20:21 GMT
Hello, I have an application that uses my.settings to hold a boolean value if
the program has been setup (IsProgramSetup). When it is installed the value
is False, and the first time the application opens, an extra process is ran.
When the process completes it sets the my.settings.IsProgramSetup to True and
saves the settings. My problem is if the application is uninstalled and
reinstalled it doesn't seem to be using the correct [Application
Name].exe.config file. When it is uninstalled the file is removed from the
hard drive, and when the program is installed the file is reinstalled. When
the program is ran the value is true but the file says that it is false.
Where is it gettign the true value from? Does the .Net framework save these
settings somewhere else?
christer.dk@gmail.com - 30 Oct 2006 22:27 GMT
Hi Hank,

Sounds like you setting, IsProgramSetup, has it's scope set to "User".
That means the the value is stored in a location similar to
C:\Documents and Settings\[user]\Local Settings\Application
Data\[application name]\
(May vary on different OS, AFAIK).

If you want the extra proces to run for the first time on a pr user
basis, this is good. But you might be forced to do some manual cleanup
when uninstalling as the user settings survives the uninstall. Maybe
the Reset method does the trick... ?

Was this helpful?

Kind regards,
Christer

> Hello, I have an application that uses my.settings to hold a boolean value if
> the program has been setup (IsProgramSetup). When it is installed the value
[quoted text clipped - 7 lines]
> Where is it gettign the true value from? Does the .Net framework save these
> settings somewhere else?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.