Can't install published VB 2019 Windows Forms application. RRS feed

  • Question

  • I've written a small program using Visual Studio 2019. It is a Visual Basic Windows Forms application. I have no issues running it from Visual Studio. It publishes without errors. If I try to use the Setup.exe that was generated, I am met with an "Application Install - Security Warning" window that tells me that "Your administrator has blocked this application because it potentially poses a security risk to your computer." This is on the same Windows 10 computer that the code was generated on.

    I would like to be able to take the SETUP.EXE that was generated and install my application on some of my other PC's.

    Why is this happening? What can I do in my Project to correct this and publish a usable SETUP.EXE file?

    I am aware that there are registry edits that I could do on my PC that would allow the setup program to work, but I don't want to have to alter settings to get my project to install. I would rather correct the issue in the publishing stage of my project to allow SETUP.EXE to run as any other installer would.

    Thank you!

    Tuesday, October 13, 2020 8:20 AM


All replies

  • Hi Calab,

    Thank you for posting here.

    Since your question is more related to setup.exe when installing winform application, you can consider posting your question on windows-forms(Q&A) forum for more efficient responses.

    Thank you for your understanding.

    Best Regards,

    Xingyu Zhao

    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, October 14, 2020 6:14 AM
  • This is not about the SETUP.EXE... It is about using Visual Studio to CREATE a SETUP.EXE that actually works.

    Please move this thread to the appropriate Visual Studio forum if my post did not belong in the original one, as I don't have the ability to do so.

    • Edited by Calab Wednesday, October 14, 2020 2:54 PM
    Wednesday, October 14, 2020 2:53 PM
  • We cannot move it. The MSDN/TechNet forums are closing. New discussions are now on QnA





    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Wednesday, October 14, 2020 3:02 PM