Click here to Skip to main content
15,899,313 members
Home / Discussions / C#
   

C#

 
GeneralRe: [newbie] EventLog log = new EventLog() does not work within catch {} block Pin
jon-8023-Jun-10 6:23
professionaljon-8023-Jun-10 6:23 
AnswerRe: [newbie] EventLog log = new EventLog() does not work within catch {} block Pin
Abhinav S23-Jun-10 6:01
Abhinav S23-Jun-10 6:01 
GeneralRe: [newbie] EventLog log = new EventLog() does not work within catch {} block Pin
jon-8024-Jun-10 1:01
professionaljon-8024-Jun-10 1:01 
QuestionDirect X 9 from XNA? Pin
venomation23-Jun-10 5:25
venomation23-Jun-10 5:25 
AnswerRe: Direct X 9 from XNA? Pin
harold aptroot23-Jun-10 5:36
harold aptroot23-Jun-10 5:36 
QuestionTSR Pin
ayandelhi23-Jun-10 5:21
ayandelhi23-Jun-10 5:21 
AnswerRe: TSR Pin
Luc Pattyn23-Jun-10 5:26
sitebuilderLuc Pattyn23-Jun-10 5:26 
AnswerRe: TSR Pin
loyal ginger23-Jun-10 5:27
loyal ginger23-Jun-10 5:27 
AnswerRe: TSR Pin
Keith Barrow23-Jun-10 5:28
professionalKeith Barrow23-Jun-10 5:28 
AnswerHey Pin
Ennis Ray Lynch, Jr.23-Jun-10 6:00
Ennis Ray Lynch, Jr.23-Jun-10 6:00 
JokeRe: Hey Pin
Paladin200023-Jun-10 6:08
Paladin200023-Jun-10 6:08 
GeneralRe: Hey Pin
Keith Barrow23-Jun-10 6:10
professionalKeith Barrow23-Jun-10 6:10 
GeneralRe: Hey Pin
DaveAuld23-Jun-10 6:27
professionalDaveAuld23-Jun-10 6:27 
QuestionAccessing the user.config file on a newly installed application from the installer itself Pin
Kaare Tragethon23-Jun-10 5:10
Kaare Tragethon23-Jun-10 5:10 
AnswerRe: Accessing the user.config file on a newly installed application from the installer itself Pin
hwswin23-Jun-10 5:54
hwswin23-Jun-10 5:54 
GeneralRe: Accessing the user.config file on a newly installed application from the installer itself Pin
Kaare Tragethon23-Jun-10 6:28
Kaare Tragethon23-Jun-10 6:28 
GeneralRe: Accessing the user.config file on a newly installed application from the installer itself Pin
hwswin23-Jun-10 6:44
hwswin23-Jun-10 6:44 
GeneralRe: Accessing the user.config file on a newly installed application from the installer itself Pin
Kaare Tragethon23-Jun-10 6:53
Kaare Tragethon23-Jun-10 6:53 
GeneralRe: Accessing the user.config file on a newly installed application from the installer itself Pin
hwswin23-Jun-10 7:04
hwswin23-Jun-10 7:04 
GeneralRe: Accessing the user.config file on a newly installed application from the installer itself Pin
Kaare Tragethon23-Jun-10 7:15
Kaare Tragethon23-Jun-10 7:15 
Thanks again for the very quick replies, and for helping me out and sorry for my bad English and explanations.

No I don't use clickonce. I will do some more explaining:

I have a main project (main application) which can be installed on any computer. This application contains user settings (user.config) which lies in the following directory:
C:\Users\Kåre Tragethon\AppData\Local\Tragethon_Teknikk\EasyNetTools.exe_Url_mxn53vo4iinbepot2fslrsybsd0vtoiz\0.8.4.9

This is the standard location of user settings file, however when the main application changes version a new folder is created, e.g.:
C:\Users\Kåre Tragethon\AppData\Local\Tragethon_Teknikk\EasyNetTools.exe_Url_mxn53vo4iinbepot2fslrsybsd0vtoiz\10.8.4.9


I also have an installer application in my project (the standard VS built-in installer). When I un-install the application I want to access the user.config file and get all the settings from this file (and I will save all the settings in the TEMP directory) so that when I install the application again I am able to retrieve all the settings (access the user.config file and write all the previously saved settings).

Most often the reason for uninstall->install is that I have made a new version of the software and therefor I cannot rely on a static path to the user.config file, I will have to get it programmaticly.
GeneralRe: Accessing the user.config file on a newly installed application from the installer itself Pin
hwswin23-Jun-10 7:27
hwswin23-Jun-10 7:27 
GeneralRe: Accessing the user.config file on a newly installed application from the installer itself Pin
Kaare Tragethon23-Jun-10 7:47
Kaare Tragethon23-Jun-10 7:47 
QuestionHow to import a namespace - 2 levels up? Pin
martingeorgiev23-Jun-10 4:47
martingeorgiev23-Jun-10 4:47 
AnswerRe: How to import a namespace - 2 levels up? Pin
Łukasz Nowakowski23-Jun-10 4:53
Łukasz Nowakowski23-Jun-10 4:53 
AnswerRe: How to import a namespace - 2 levels up? Pin
Abhinav S23-Jun-10 5:04
Abhinav S23-Jun-10 5:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.