[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.setup

user.config is not where it should be

Nenad Dobrilovic

12/4/2006 4:20:00 PM

Hi all,

I have a really strange situation, but I believe that there is someone else
who has already experinced the same, and is willing to help me!

I made an application using VS 2005 in C#, which uses one setting from
*.exe.config file with User scope. That is a server address, for example.

I wanted to setup that parameter during installation. So, I included one
additonal step during installation which collects a server address from the
user. I added additional user interface step, made a custom action, include
installer class in the project which saves a server address in the
user.config file, and everything else what is needed for it.

But, after finishing the installation, the application uses the old, default
value for a server address! I tried to figure out what was happening, and
finally found out that user.config file is not stored in the proper place.
Insted of storing in:
"c:\documents and settings\user\local settings\application
settings\company_name\assembly_name",
it is stored in:
"c:\documents and settings\user\local settings\application
settings\microsoft_company\assembly_name"

Obviosly, installer uses it own company name during installation for storing
user.config file, instead of my company name!

So, can anyone help me to solve this problem, please?

Thank you!

Nenad Dobrilovic