microsoft / windows-dev-box-setup-scripts

Scripts to simplify setting up a Windows developer box
MIT License
1.5k stars 367 forks source link

Boxstarter error in Edge #87

Open johnnyramrod opened 4 years ago

johnnyramrod commented 4 years ago

Microsoft docs tell me I have to use Edge to have the installer work (see here: https://docs.microsoft.com/en-us/learn/modules/introduction-to-windows10-dev/2-installing-tools-automatically).

However, when trying to launch the Full App install, it fails. Error Summary in log says:

ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log.

Don't know what this actually means or how to resolve it. I'm not getting asked to elevate permissions etc. I am logged in with an admin account.

JensMertelmeyer commented 4 years ago

Same error message for me. I never even heard of .application files and I have no idea what is actually happening.

In case it helps, here is the stack

FEHLERDETAILS
    Folgende Fehler wurden bei diesem Vorgang entdeckt.
    * [2020-08-07 22:32:16] System.Deployment.Application.InvalidDeploymentException (Zone)
        - Die Bereitstellung und die Anwendung haben keine übereinstimmenden Sicherheitszonen.
        - Quelle: System.Deployment
        - Stapelüberwachung:
            bei System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
            bei System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
            bei System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
            bei System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl, Uri& deploymentUri)
            bei System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
            bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
            bei System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
            bei System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
TaffarelJr commented 3 years ago

A .application file is a launcher for a ClickOnce application. The browser downloads it like a normal file; but then if the browser recognizes it (pretty much only IE and Edge, since it's a Microsoft technology), then it will follow the instructions within to download the rest of the application files from the same host, and execute them.

However it seems the feature is disabled by default in the current version of Edge. I got it to work by opening Edge, navigating to edge://flags/#edge-click-once and setting it to Enabled, then closing and re-launching Edge as Administrator (just in case) and navigating back to the Boxstarter URL.

Hope that helps.