Solved

ClickOnce, File extension association and User configuration

Posted on 2014-02-22
3
284 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
Comment Utility
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
Comment Utility
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)
Comment Utility
Ended up using the database used by the application to record the settings.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This video discusses moving either the default database or any database to a new volume.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

763 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

6 Experts available now in Live!

Get 1:1 Help Now