Answered by:
Can't install published VB 2019 Windows Forms application.

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!
- Edited by Calab Tuesday, October 13, 2020 8:23 AM
- Moved by Xingyu ZhaoMicrosoft contingent staff Wednesday, October 14, 2020 6:15 AM
Tuesday, October 13, 2020 8:20 AM
Answers
-
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.- Edited by Xingyu ZhaoMicrosoft contingent staff Wednesday, October 14, 2020 6:14 AM
- Proposed as answer by Dave PatrickMVP Wednesday, October 14, 2020 3:00 PM
- Marked as answer by Dave PatrickMVP Thursday, December 31, 2020 3:36 PM
Wednesday, October 14, 2020 6:14 AM -
We cannot move it. The MSDN/TechNet forums are closing. New discussions are now on QnA
https://docs.microsoft.com/en-us/answers/products/vs
https://docs.microsoft.com/en-us/answers/products/windows#application-developers
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.
- Proposed as answer by Dave PatrickMVP Wednesday, October 14, 2020 3:02 PM
- Edited by Dave PatrickMVP Wednesday, October 14, 2020 3:04 PM
- Marked as answer by Dave PatrickMVP Thursday, December 31, 2020 3:36 PM
Wednesday, October 14, 2020 3:02 PM
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.- Edited by Xingyu ZhaoMicrosoft contingent staff Wednesday, October 14, 2020 6:14 AM
- Proposed as answer by Dave PatrickMVP Wednesday, October 14, 2020 3:00 PM
- Marked as answer by Dave PatrickMVP Thursday, December 31, 2020 3:36 PM
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
https://docs.microsoft.com/en-us/answers/products/vs
https://docs.microsoft.com/en-us/answers/products/windows#application-developers
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.
- Proposed as answer by Dave PatrickMVP Wednesday, October 14, 2020 3:02 PM
- Edited by Dave PatrickMVP Wednesday, October 14, 2020 3:04 PM
- Marked as answer by Dave PatrickMVP Thursday, December 31, 2020 3:36 PM
Wednesday, October 14, 2020 3:02 PM