Results 1 to 9 of 9

Thread: Created an App, Ran it on Another Computer, Windows Protect the PC...

  1. #1

    Thread Starter
    College Grad!!! Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,339

    Created an App, Ran it on Another Computer, Windows Protect the PC...

    So I finished creating an app, right? If I run the app on another Windows 10 PC other than the computer I created it on (also Windows 10), there is a message that pops up that says that Windows Protected Your PC. You can see it in the pic below.

    I find this to be quite annoying. I want to be able to run the app without having Windows say it could potentially be harmful. Even in simple Hello World programs it does this. How can I enable the correct permissions to prevent Windows from having this popup? Should be possible since commercial apps never get flagged.
    Attached Images Attached Images  

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,302

    Re: Created an App, Ran it on Another Computer, Windows Protect the PC...

    I see that you're running it from the Downloads folder. If you download a zipped application from the web, be sure to open the file properties and check the Unblock box before unzipping. If you don't, the extracted folder is considered an unsafe location. I think that all arbitrary downloads are considered unsafe until the user explicitly indicates otherwise.

  3. #3

    Thread Starter
    College Grad!!! Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,339

    Re: Created an App, Ran it on Another Computer, Windows Protect the PC...

    Would an application installer help bypass this? It does it even when not in the downloads folder. Like if I put it in its own folder in the C drive as a first time run app, it will pop up.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,302

    Re: Created an App, Ran it on Another Computer, Windows Protect the PC...

    The location doesn't matter if you started with a downloaded ZIP file and didn't unblock it. Did you download a ZIP file and, if so, do you still have it? If so, deleted the extracted folder/files, unblock the ZIP file and then extract again. I think that you should find that you're OK then, although I'm not 100% sure.

    With regards to using an installer, I think that would alleviate the issue but, again, I'm not 100% sure. It's possible that you'd still get that warning at the point of installation, but not when running the app after installation.

  5. #5

    Thread Starter
    College Grad!!! Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,339

    Re: Created an App, Ran it on Another Computer, Windows Protect the PC...

    Stupid question. How do I put my app in an installer?

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,302

    Re: Created an App, Ran it on Another Computer, Windows Protect the PC...

    You can use the Publish functionality within the project to create a ClickOnce installer or, if you have the Microsoft Visual Studio Installer Projects extension installed, you can create a Setup project in your solution to use Windows Installer.

  7. #7
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,467

    Re: Created an App, Ran it on Another Computer, Windows Protect the PC...

    What is so difficult about clicking Run Anyway? Blocking VS apps is standard Windows behaviour, requires some trust by the user but not a major problem...

  8. #8

    Thread Starter
    College Grad!!! Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,339

    Re: Created an App, Ran it on Another Computer, Windows Protect the PC...

    Quote Originally Posted by .paul. View Post
    What is so difficult about clicking Run Anyway? Blocking VS apps is standard Windows behaviour, requires some trust by the user but not a major problem...
    The problem is, is that commercial apps dont behave in this manner, and it would be nice to know.

    Quote Originally Posted by jmcilhinney View Post
    You can use the Publish functionality within the project to create a ClickOnce installer or, if you have the Microsoft Visual Studio Installer Projects extension installed, you can create a Setup project in your solution to use Windows Installer.
    I'll see if I can find it

  9. #9
    New Member
    Join Date
    Apr 2020
    Posts
    12

    Re: Created an App, Ran it on Another Computer, Windows Protect the PC...

    This has nothing whatsoever to do with "creating an installer".

    If you don't want the warning popup to appear, you need to sign your application as explained at MSDN: https://docs.microsoft.com/en-us/win...ng-certificate

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width