1

Closed

Installing Chocolatey packages not working

description

So, today I tried out this Boxstarter installing of packages using different Chocolatey packages, but I get the same error result every time.

START http://boxstarter.org/package/nr/Compass

Cannot install package
PLATFORM VERSION INFO
    Windows             : 6.2.9200.0 (Win32NT)
    Common Language Runtime     : 4.0.30319.18051
    System.Deployment.dll       : 4.0.30319.17929 built by: FX45RTMREL
    clr.dll             : 4.0.30319.18051 built by: FX45RTMGDR
    dfdll.dll           : 4.0.30319.17929 built by: FX45RTMREL
    dfshim.dll          : 4.0.41209.0 (Main.041209-0000)

SOURCES
    Deployment url          : file:///C:/Users/Redsandro/Desktop/Boxstarter.WebLaunch%20(1).application

IDENTITIES
    Deployment Identity     : Boxstarter.WebLaunch.application, Version=1.1.35.0, Culture=neutral, PublicKeyToken=9b0d113b5eadff54, processorArchitecture=msil

APPLICATION SUMMARY
    * Online only application.
    * Trust url parameter is set.
ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of C:\Users\Redsandro\Desktop\Boxstarter.WebLaunch (1).application resulted in exception. Following failure messages were detected:
        + Deployment and application do not have matching security zones.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

WARNINGS
    There were no warnings during this operation.

OPERATION PROGRESS STATUS
    * [10/26/2013 9:33:09 PM] : Activation of C:\Users\Redsandro\Desktop\Boxstarter.WebLaunch (1).application has started.
    * [10/26/2013 9:33:09 PM] : Processing of deployment manifest has successfully completed.
    * [10/26/2013 9:33:09 PM] : Installation of the application has started.

ERROR DETAILS
    Following errors were detected during this operation.
    * [10/26/2013 9:33:09 PM] System.Deployment.Application.InvalidDeploymentException (Zone)
        - Deployment and application do not have matching security zones.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
            at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, Uri& appSourceUri, String& appManifestPath)
            at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
            at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
            at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
            at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

COMPONENT STORE TRANSACTION DETAILS
    No transaction information is available.
Closed Nov 30, 2013 at 8:07 PM by mwrock
This is a known limitation of Click-Once apps.

comments

mwrock wrote Oct 27, 2013 at 8:34 AM

Thank you very much for this detailed error report! What is your default browser? Running the "click once" boxstarter installer is only supported on IE or on FF or Chrome installs that have also installed the browser extension supporting it. Since invoking with the START command on the command line will launch the default browser, it may be best to run from the IE address box instead.

Redsandro wrote Oct 27, 2013 at 5:04 PM

I don't think that is the problem in this case. My default browser is Chromium, and it indeed opens the URL. But, it just downloads the ClickOnce file and saves it as Boxstarter.WebLaunch.application.

So, I click on this file to execute it. That should work, except now it's ClickTwice. I get the dialog that things are being prepared, and after a second or two the above dialog shows.

Redsandro wrote Oct 27, 2013 at 5:09 PM

(I cannot edit my previous message?)

I wanted to insert: I click on this file to execute it, so during execution time, the browser used to download the file is irrelevant, right?

Also, just because it's interesting (but didn't test it yet), Chrome/Chromium also has a ClickOnce extension:
https://chrome.google.com/webstore/detail/clickonce-for-google-chro/eeifaoomkminpbeebjdmdojbhmagnncl
https://code.google.com/p/clickonceforchrome/

mwrock wrote Oct 27, 2013 at 7:26 PM

Yeah. Thats a common symptom. Using chrome without the extension, it will download but the execution fails. However, if you have the extension then there may indeed be an issue. I'll try to repro. I never tried via the command line with the chrome extension. I have tested chrome with extension but through the browser. So this could be a click once investigation but will investigate further. Thanks!!

Redsandro wrote Oct 28, 2013 at 12:01 AM

(I did an email reply but it doesn't show up here. Maybe it doesn't work like that, or it comes later, in which case you can disregard that.)

I doublechecked. Using Chrome, indeed it doesn't work as a downloaded file, but it DOES work once the plugin mentioned above is installed.

Boxstarter Dialog

But why would the file fail if executed stand alone? It is trying to work, but then it fails. Is this by (Microsofts) design? Or would a change in code make this work stand alone? (Would be a solution for unsupported browsers, which offer to run the downloaded file, making this a ClickTwice solution for unsupported browsers.)

PS - The "Hover over the string below" message doesn't make sense because nothing happens when hovering. Is that on Windows, or on BoxStarter? Because if the latter, I reckon you can remove that.

Redsandro wrote Oct 28, 2013 at 1:47 AM

Ok I get the problem. There is nothing wrong with executing certain clickOnce apps locally.

But there's a different security zone configured by default (on Windows 8 at least). I don't exactly know how this works or where I can edit this, or if the file offered by BoxStarter has anything to say about it, but it's kinda like CORS headers - there is nothing wrong with the content, but computer says no.

"Deployment and application do not have matching security zones."

chrismcgrath123 wrote Nov 13, 2014 at 12:03 AM

the underlying reason for this is the package is unsigned and/or not flagged available for offine
http://codeketchup.blogspot.ca/2013/06/how-to-fix-deployment-and-application.html

SOAB256 wrote Feb 19, 2015 at 12:21 PM

Workaround:
START iexplorer example.org
I had the same issue (Chrome + clickOnce extension) and this worked for me.