Solved

ClickOnce, File extension association and User configuration

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

910 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

20 Experts available now in Live!

Get 1:1 Help Now