I'm trying to deploy an application via the appinstaller for Windows. The appinstaller xml references the appinstaller file on the server which is overwritten when deploying new versions. My understanding is that this behaviour is intended so that when the appinstaller service checks for application updates, it references the endpoint to the appinstaller on the server (the one overwritten by new versions). Currently the appinstaller only seems to reference the msix on the server that it was initially installed with.
我正在尝试通过appinstaller for Windows部署一个应用程序。appinstaller xml引用服务器上的appinstaller文件,该文件在部署新版本时会被覆盖。我的理解是,这种行为的目的是,当appinstaller服务检查应用程序更新时,它会将端点引用到服务器上的appinstaller(被新版本覆盖的端点)。目前,appinstaller似乎只引用了最初安装它的服务器上的msix。
This is resulting in the appinstaller redownloading the msix of the current version rather than the new one and I'm unsure if it's doing anything with it.
这导致appinstaller重新下载当前版本的msix,而不是新版本,我不确定它是否对此做了什么。
The application itself is a dummy client with a service which runs under localSystem. Initially I thought that the permissions required to then stop the service would block the appinstaller from installing it, however I don't see any access denied errors in the event log pertaining to this issue.
应用程序本身是一个虚拟客户端,具有在localSystem下运行的服务。起初,我认为停止服务所需的权限会阻止appinstaller安装它,但我在事件日志中没有看到任何与此问题有关的拒绝访问错误。
Notably this event log under Microsoft-Windows-AppxDeploymentServer/Operational references the app ID and coincides with when the appinstaller hits the server:
值得注意的是,Microsoft Windows AppxDeploymentServer/Operative下的此事件日志引用了应用程序ID,并与appinstaller访问服务器的时间一致:
Started deployment UpdateUsingAppInstallerOperation operation on a package with main parameter 49d89e30-8b49-4435-844d-14ed2c10de79_0.1.2.0_x86__stehcx39bde72 and Options 0 and 0. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
已在主参数为49d89e30-8b49-4435-844d-14ed2c10de79_0.1.2.0_x86__stehcx39bde72、选项为0和0的包上启动部署UpdateUsingAppInstallerOperation操作。看见http://go.microsoft.com/fwlink/?LinkId=235160以获取诊断应用程序部署问题的帮助。
I've tried tweaking the details of the deployment but I've not found any particular permutation of settings that result in the updating I need. I was able to determine that the appinstaller was referencing the package rather than the new appinstaller via wireshark. The endpoints are all http, https doesn't appear to work. The appinstaller itself is installed via the PowerShell command Add-AppxPackage -AppInstallerFile
.
我试过调整部署的细节,但没有发现任何特定的设置排列会导致我需要的更新。我能够通过wireshark确定appinstaller引用的是包,而不是新的appinstaller。端点都是http,https似乎不起作用。appinstaller本身是通过PowerShell命令Add-AppxPackage-AppInstallerFile安装的。
更多回答
优秀答案推荐
我是一名优秀的程序员,十分优秀!