Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

ClickOnce, File extension association and User configuration

Posted on 2014-02-22
3
312 Views
Last Modified: 2015-04-15
ClickOnce deployed application
Framework 4.5.1
Windows 8.1

The application uses a different set of user configuration data (settings) when launched through a registered file extension (double-click on the file) than it does when launched normally through the launch icon created by the ClickOnce installation.

Searching for the user.config file on the system, I see that 2 different files are created.

When the application is launched from a standard icon, user.config is in the C:\Users\Jacques\AppData\Local\JBFI\JBFlow.exe_StrongName... directory, JBFI being the name of the company provided in the ClickOnce deployment setup, and JBFlow.exe the name of the application.

When the application is launched through the file association, it ends up in C:\Users\Jacques\AppData\Local\Apps\2.0\Data\<standard ClickOnce garbage>\jbfl..tion..... directory.

Same user, but 2 sets of configuration settings.

Did somebody encountered that problem and found a way to have the same set of settings for the 2 different ways of launching the application?
0
Comment
  • 2
3 Comments
 
LVL 15

Expert Comment

by:Ess Kay
ID: 39945571
you might have to manually change the reg or some other settings.

you can start by reading here about click once and file associations

https://stackoverflow.com/questions/8797929/how-to-manually-register-clickonce-file-associations-after-installation
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 0 total points
ID: 39950362
Thanks for your input.

The link shows how to register file associations manually or through programming. This is not my problem, since I use the default file association mechanism, and it works perfectly.

My problem is with the user settings, that are not kept in the same place when I launch the application through a standard shortcut compared with lauching it through the file association.
0
 
LVL 40

Author Closing Comment

by:Jacques Bourgeois (James Burger)
ID: 40724608
Ended up using the database used by the application to record the settings.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question