我有点绝望。我一直试图解决以下几个小时的问题。
我开发了一个应用程序,我现在尝试使用Visual Studio 2015的安装向导扩展程序进行安装。一切都在构建或(没有错误),但是当我打开应用程序时,它突出显示它只能在应用程序容器的上下文中打开。那是什么意思?任何建议都将受到高度赞赏!
该应用正在使用SQlite数据库。这可能与依赖关系有关吗?如果是这样,我怎么能解决这个问题?
更新:
# 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
另一个更新:在PowerShell中作为adiminstrator运行sideloading安装脚本,现在收到以下错误:
无法注册包裹。 (来自HRESULT的异常:0x80073CF6) 用Google搜索,但Windows 10开发人员的搜索结果并不多。
答案 0 :(得分:30)
如果这是商店/ UWP应用程序,那么它只能通过appx软件包安装。通常这应该通过商店 无法使用MSI安装现代/商店/ UWP应用程序。
如果您不想(或不能)通过商店分发,那么您可以创建一个可以直接安装的包。
在VS中转到:PROJECT>商店>创建应用包...>并选择“否”为商店构建包
在计算机上安装应用程序之前,您需要在该计算机上启用开发人员功能:
设置>更新&安全>对于开发人员>选择:侧载应用
然后只需运行使用该软件包创建的PowerShell脚本即可安装它。
您对商店提交7天的评论听起来不正确。通常提交的文件将在一小时内完成,只有在特殊情况下才需要一天以上。
答案 1 :(得分:1)
据我所知,商店应用只能由shell启动。所以试试这个:
explorer.exe shell:AppsFolder\Microsoft.WindowsAlarms_8wekyb3d8bbwe!App
或者从跑步(Win + R):
shell:AppsFolder\Microsoft.WindowsAlarms_8wekyb3d8bbwe!App
有关打开和创建快捷方式的更多详细信息,请查看此文章:http://winaero.com/blog/exclusive-how-to-start-a-modern-app-from-desktop-without-going-to-the-metro-start-screen/
答案 2 :(得分:0)
这可能是Metro应用程序,不应该使用安装程序部署,而是使用商店。