Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: How to import a namespace - 2 levels up? Pin
Luc Pattyn23-Jun-10 5:11
sitebuilderLuc Pattyn23-Jun-10 5:11 
GeneralRe: How to import a namespace - 2 levels up? Pin
PIEBALDconsult23-Jun-10 14:33
mvePIEBALDconsult23-Jun-10 14:33 
AnswerRe: How to import a namespace - 2 levels up? Pin
martingeorgiev23-Jun-10 5:22
martingeorgiev23-Jun-10 5:22 
GeneralRe: How to import a namespace - 2 levels up? Pin
Luc Pattyn23-Jun-10 5:27
sitebuilderLuc Pattyn23-Jun-10 5:27 
Questionnested masterpages. Pin
FEMDEV23-Jun-10 4:41
FEMDEV23-Jun-10 4:41 
AnswerRe: nested masterpages. Pin
Paladin200023-Jun-10 5:00
Paladin200023-Jun-10 5:00 
GeneralRe: nested masterpages. Pin
FEMDEV23-Jun-10 5:04
FEMDEV23-Jun-10 5:04 
GeneralRe: nested masterpages. Pin
Paladin200023-Jun-10 5:06
Paladin200023-Jun-10 5:06 
GeneralRe: nested masterpages. Pin
FEMDEV23-Jun-10 5:14
FEMDEV23-Jun-10 5:14 
QuestionControll flash file from C# project and get action event from flash to C# application Pin
Md. Ali Naser Khan23-Jun-10 0:32
Md. Ali Naser Khan23-Jun-10 0:32 
AnswerRe: Controll flash file from C# project and get action event from flash to C# application Pin
Dave Kreskowiak23-Jun-10 3:11
mveDave Kreskowiak23-Jun-10 3:11 
QuestionHow to write public void DrawString(string s, Font font, Brush brush, RectangleF layoutRectangle); function [modified][Solved] Pin
yu-jian22-Jun-10 23:38
yu-jian22-Jun-10 23:38 

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.