Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Windows forms to WPF upgrade?
 

Windows forms to WPF upgrade?

I have a Windows forms application that I have deployed using ClickOnce to several users on a network. The application updates itself fine when new versions are published in the server location.

In my next version, I want to revamp the application and do it in WPF. If I do a completely separate WPF project, I dont think users will be automatically be able to upgrade to the WPF application.

Question: Is there a way that ClickOnce can automatically update the application from the Windows Forms version to the WPF version automatically when I publish the WPF version there? Should I add WPF project to the existing solution and publish?

thank you
neil
nilashis  Monday, July 06, 2009 6:37 AM
Hi Neil,

Yes, there's a way to update the winform application to wpf application using ClickOnce smoothly.

The key is to use the same name for the wpf project as the winform project and use the same certificate to sign the wpf application. Publish the wpf application to the same publish location as the winform project. Note that you should ensure the publish version of the wpf application higher than the current publish version of winform application.

Hope this helps.
If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
Linda Liu  Tuesday, July 07, 2009 8:00 AM
Hi,

The Certificate files are used to sign your clickonce application when you publish it. if you arent using a seperate certificated from a valid certficate provider i guess visual studio must have created a temporary certificate automatically in your application. please check your project directory for a file with extension .pfx, use that to sign your new wpf application when you publish it. so existing applications will pic the wpf app as an update .

for more information on clickonce application signing :
http://msdn.microsoft.com/en-us/library/zfz60ccf(VS.80).aspx

i hope it helps
Aneef  Thursday, July 09, 2009 4:38 PM
Hi Neil,

Yes, there's a way to update the winform application to wpf application using ClickOnce smoothly.

The key is to use the same name for the wpf project as the winform project and use the same certificate to sign the wpf application. Publish the wpf application to the same publish location as the winform project. Note that you should ensure the publish version of the wpf application higher than the current publish version of winform application.

Hope this helps.
If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
Linda Liu  Tuesday, July 07, 2009 8:00 AM
Linda,

Thank you for the tip.

One question - how do I use the same certificate? Is it a file that I can find in my existing Windows forms application project? (if yes, where) or do I need to create one? How do I add it to the new WPF project?

thank you
neil
nilashis  Thursday, July 09, 2009 4:39 AM
Hi,

The Certificate files are used to sign your clickonce application when you publish it. if you arent using a seperate certificated from a valid certficate provider i guess visual studio must have created a temporary certificate automatically in your application. please check your project directory for a file with extension .pfx, use that to sign your new wpf application when you publish it. so existing applications will pic the wpf app as an update .

for more information on clickonce application signing :
http://msdn.microsoft.com/en-us/library/zfz60ccf(VS.80).aspx

i hope it helps
Aneef  Thursday, July 09, 2009 4:38 PM

You can use google to search for other answers

Custom Search

More Threads

• Do user app settings get overwritten when using clickonce deployement
• clickonce prerequisite message instead of install
• Custom Installers
• Adding a EULA to a deployment project
• ClickOnce repeatedly forces install WinFX Runtime Components on a vista machine
• Invalid Command Line Argument
• Passing authentication information in Clickonce URL
• ClickOnce deployment problem
• Validating the Customer Information in Deploy & setup
• Can't install update of click once program and can't remove the old program.