none
WPF Desktop, Clickonce fails, need to build msi installer RRS feed

  • Question

  • I have a new project in VS2019

    It's WPF, and I need to deploy it to my client.

    In the past I could build an msi installer.  What are we supposed to do now?

    Before you suggest Clickonce, NO.  Clickonce claims to build an installer but fails to install every time. 

    How do I build a real installer for my client.


    I'd rather live with false hope than with false despair.

    Tuesday, August 20, 2019 2:42 PM

All replies

  • Hello,

    We have used the following installer for a very complex WPF application deployed to over 200 clients with zero issues. 


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Tuesday, August 20, 2019 2:58 PM
  • OK, NOTE!

    The ClickOnce installer works correctly ONLY with Edge browser (I assume IE works too).  Saving the file from Firefox and running it DOES NOT work the same as running it from Edge.  Firefox fails to download some files to the Downloads folder.


    I'd rather live with false hope than with false despair.

    Tuesday, August 20, 2019 7:11 PM
  • Thanks.

    The top of the docs page for that says

    • We're no longer updating this content regularly. Check the Microsoft Product Lifecycle for information about how this product, service, technology, or API is supported.
    • We recommend using Visual Studio 2019.

      The thing is that I *am* using VS2019, and there seems to be no support for MSI Installers.  Since I figured out ClickOnce works for IE/Edge, I can use that short-term.

    The old installer I was using in VS2015 is not supported in 2019 :(


    I'd rather live with false hope than with false despair.

    Tuesday, August 20, 2019 7:18 PM
  • Hi Bryan,

    Thank you for posting here.

    Since this thread is related to clickonce, I will move it to ClickOnce and Setup & Deployment Projects forum to get support.

    The Visual C# forum discusses and asks questions about the C# programming language, IDE, libraries, samples, and tools.

    Best Regards,

    Jack


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, August 21, 2019 1:07 AM
  • Hi Bryan,

    I am not sure what issue you are facing. But ClickOnce does not require the specified browser, it also works fine in Chrome.

    About publish an application by ClickOnce, here are some articles may help you.

    ClickOnce - Quick steps to Deploy, Install and Update Windows Based Client Applications.

    Deploying Windows applications using ClickOnce (Visual Studio 2008)

    As to MSI, you can refer to the following link.

    Creating an MSI Package for C# Windows Application Using a Visual Studio Setup Project

    You can download Windows Installer here.

    Then install it in Developer Command Prompt for VS via

        VSIXInstaller <path to vsix file>

    Hope these can help you.

    Regards,

    Kyle

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, August 21, 2019 1:41 AM
    Moderator