2015-11-11 6 views
12

Sono un po 'disperato. Ho cercato di risolvere il seguente problema per ore."Questa applicazione può essere eseguita solo nel contesto di un contenitore di app." - Novità di Visual Studio 2015 dev

Ho sviluppato un'app che ora ho provato ad installare utilizzando l'estensione dell'Installazione guidata di Visual Studio 2015. Tutto sta creando o (nessun errore) ma quando apro l'app si evidenzia che può essere aperto solo nel contesto di un contenitore di app. Cosa significa? Qualsiasi consiglio sarebbe molto apprezzato!

L'app sta funzionando con un database SQlite. Questo potrebbe avere qualcosa a che fare con le dipendenze? Se sì, come potrei approcciarmi a risolvere questo?

UPDATE:

# Culture = "en-US" 
ConvertFrom-StringData @' 
###PSLOC 
    PromptYesString = &Yes 
    PromptNoString = &No 
    BundleFound = Found bundle: {0} 
    PackageFound = Found package: {0} 
    CertificateFound = Found certificate: {0} 
    DependenciesFound = Found dependency package(s): 
    GettingDeveloperLicense = Acquiring developer license... 
    InstallingCertificate = Installing certificate... 
    InstallingPackage = \nInstalling app... 
    AcquireLicenseSuccessful = A developer license was successfully acquired. 
    InstallCertificateSuccessful = The certificate was successfully installed. 
    Success = \nSuccess: Your app was successfully installed. 
    WarningInstallCert = \nYou are about to install a digital certificate to your computer's Trusted People certificate store. Doing so carries serious security risk and should only be done if you trust the originator of this digital certificate.\n\nWhen you are done using this app, you should manually remove the associated digital certificate. Instructions for doing so can be found here: http://go.microsoft.com/fwlink/?LinkId=243053\n\nAre you sure you wish to continue?\n\n 
    ElevateActions = \nBefore installing this app, you need to do the following: 
    ElevateActionDevLicense = \t- Acquire a developer license 
    ElevateActionCertificate = \t- Install the signing certificate 
    ElevateActionsContinue = Administrator credentials are required to continue. Please accept the UAC prompt and provide your administrator password if asked. 
    ErrorForceElevate = You must provide administrator credentials to proceed. Please run this script without the -Force parameter or from an elevated PowerShell window. 
    ErrorForceDeveloperLicense = Acquiring a developer license requires user interaction. Please rerun the script without the -Force parameter. 
    ErrorLaunchAdminFailed = Error: Could not start a new process as administrator. 
    ErrorNoScriptPath = Error: You must launch this script from a file. 
    ErrorNoPackageFound = Error: No package or bundle found in the script directory. Please make sure the package or bundle you want to install is placed in the same directory as this script. 
    ErrorManyPackagesFound = Error: More than one package or bundle found in the script directory. Please make sure only the package or bundle you want to install is placed in the same directory as this script. 
    ErrorPackageUnsigned = Error: The package or bundle is not digitally signed or its signature is corrupted. 
    ErrorNoCertificateFound = Error: No certificate found in the script directory. Please make sure the certificate used to sign the package or bundle you are installing is placed in the same directory as this script. 
    ErrorManyCertificatesFound = Error: More than one certificate found in the script directory. Please make sure only the certificate used to sign the package or bundle you are installing is placed in the same directory as this script. 
    ErrorBadCertificate = Error: The file "{0}" is not a valid digital certificate. CertUtil returned with error code {1}. 
    ErrorExpiredCertificate = Error: The developer certificate "{0}" has expired. One possible cause is the system clock isn't set to the correct date and time. If the system settings are correct, contact the app owner to re-create a package or bundle with a valid certificate. 
    ErrorCertificateMismatch = Error: The certificate does not match the one used to sign the package or bundle. 
    ErrorCertIsCA = Error: The certificate can't be a certificate authority. 
    ErrorBannedKeyUsage = Error: The certificate can't have the following key usage: {0}. Key usage must be unspecified or equal to "DigitalSignature". 
    ErrorBannedEKU = Error: The certificate can't have the following extended key usage: {0}. Only the Code Signing and Lifetime Signing EKUs are allowed. 
    ErrorNoBasicConstraints = Error: The certificate is missing the basic constraints extension. 
    ErrorNoCodeSigningEku = Error: The certificate is missing the extended key usage for Code Signing. 
    ErrorInstallCertificateCancelled = Error: Installation of the certificate was cancelled. 
    ErrorCertUtilInstallFailed = Error: Could not install the certificate. CertUtil returned with error code {0}. 
    ErrorGetDeveloperLicenseFailed = Error: Could not acquire a developer license. For more information, see http://go.microsoft.com/fwlink/?LinkID=252740. 
    ErrorInstallCertificateFailed = Error: Could not install the certificate. Status: {0}. For more information, see http://go.microsoft.com/fwlink/?LinkID=252740. 
    ErrorAddPackageFailed = Error: Could not install the app. 
    ErrorAddPackageFailedWithCert = Error: Could not install the app. To ensure security, please consider uninstalling the signing certificate until you can install the app. Instructions for doing so can be found here:\nhttp://go.microsoft.com/fwlink/?LinkId=243053 

un altro aggiornamento: Ran il sideloading script di installazione come un adiminstrator in PowerShell e ora ha ricevuto il seguente errore:

pacchetto non potrebbe essere registrato. (Eccezione da HRESULT: 0x80073CF6) Cercati su Google ma non molti risultati per gli sviluppatori di Windows 10.

+0

che tipo di app è questo .. puoi essere più specifico .. – MethodMan

+0

Grazie metodo Man. È un'applicazione per quiz. Permette semplicemente ai volontari di usare 4 domande (con illustrazioni) per avvicinarsi alle persone per strada per interrogarle sulla tratta di esseri umani. È uno strumento di sensibilizzazione. Ogni volta che un utente riceve una domanda, ottiene un punto.Una volta che un volontario ritorna, è necessario esportare i risultati in un file CSV. – Z101

+1

http://stackoverflow.com/questions/7451536/how-to-deploy-a-metro-app-to-the-desktop –

risposta

24

Se si tratta di un'app UWP/store, può essere installato solo tramite un pacchetto appx. In genere questo dovrebbe essere tramite il negozio.
Non è possibile installare un'app moderna/store/UWP con un MSI.

Se non si desidera (o non è possibile) distribuire attraverso lo store, è possibile creare un pacchetto che può essere installato direttamente.

In VS vai a: PROJECT> Acquista> Crea Pacchetti App ...> e selezionare No per la costruzione di un pacchetto per l'archivio

Prima di poter installare l'applicazione su un computer è necessario abilitare gli sviluppatori caratteristiche su quella macchina:
Impostazioni> Aggiorna & Sicurezza> per gli sviluppatori> selezionare: applicazioni sideload

Poi basta eseguire lo script PowerShell creata con il pacchetto per installarlo.

Il tuo commento sull'invio del negozio che richiede 7 giorni non sembra corretto. In genere, le iscrizioni passeranno in meno di un'ora e solo in circostanze eccezionali ci vorrà più di un giorno.

+0

Grazie Matt. Questo è stato un ottimo consiglio. Grazie mille. Ho anche capito perché il mio pacchetto dell'app non è stato installato. Avevo un carattere speciale nel nome del pacchetto: '|'. Visual Studio non ha evidenziato questo problema come un problema nel file manifest ma mi ha impedito di scaricare l'app, che in realtà è familiare, in base alle tue istruzioni su Windows 10 (so che questo sembra essere un problema con Windows 8). TUTTO per il tuo ottimo consiglio. Dopo diverse ore di ansia, ho visto il prompt dell'applicazione "installato con successo" che mi ha reso molto felice: D – Z101

+0

E ora Microsoft possiede la tua app e la tua esperienza - Questo è pazzesco! Good Bye Programmazione gratuita! –

0

Questa è probabilmente un'app Metro, che non dovrebbero essere distribuite utilizzando un Setup, ma piuttosto utilizzando lo Store.

+0

Grazie per il tuo commento Soeren. Assolutamente. Sfortunatamente tuttavia il negozio richiede fino a 7 giorni per approvare e abbiamo bisogno dell'app per un evento in 2 giorni. – Z101

+0

Esistono alcuni ambienti in cui è possibile caricarli lateralmente oppure è possibile presentarli da una macchina deb. Oltre a questo, sono le regole. –

+0

Comprendere. Grazie, Soeren. Lo terrò a mente. Ma qualsiasi soluzione e/o altro consiglio per fare questo lavoro sarebbe molto apprezzato! – Z101

Problemi correlati