Solved

ClickOnce, File extension association and User configuration

Posted on 2014-02-22
3
299 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

813 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now