python - MSIX Packaging Tool - Failing Installation - Stack Overflow

I am trying to create a Windows app from the following simple Python code.from qtpy.QtWidgets import Q

I am trying to create a Windows app from the following simple Python code.

from qtpy.QtWidgets import QApplication, QLabel
from qtpy.QtCore import Qt

if __name__ == "__main__":
    # Create the application instance
    app = QApplication([])

    # Create a fullscreen label
    label = QLabel("Hello World!")
    label.setStyleSheet("font-size: 40px; text-align: center;")  # Increase text size
    label.setAlignment(Qt.AlignCenter)  # Center the text
    label.showFullScreen()  # Make it fullscreen

    # Run the application event loop
    app.exec_()

PyInstaller is used to create a single executable and Inno Setup Compiler to convert the executable to an installer.

Lastly, MSIX Packaging Tool converts the installer to an MSIX app installer.

The installation of the msix file fails with the following error:

App installation failed with error message: Common::Deployment::MsixvcStagingSession::GetManifestReader in MsixvcStagingSession failed with error 0x80070570. (0x80070570)

What could be the reason of this error and are there any other, less cumbersome, methods to create a Windows app from a Python project?

The end-goal would be to create a Python UI in QtPy that runs on a Windows machine in single app kiosk mode.

I am trying to create a Windows app from the following simple Python code.

from qtpy.QtWidgets import QApplication, QLabel
from qtpy.QtCore import Qt

if __name__ == "__main__":
    # Create the application instance
    app = QApplication([])

    # Create a fullscreen label
    label = QLabel("Hello World!")
    label.setStyleSheet("font-size: 40px; text-align: center;")  # Increase text size
    label.setAlignment(Qt.AlignCenter)  # Center the text
    label.showFullScreen()  # Make it fullscreen

    # Run the application event loop
    app.exec_()

PyInstaller is used to create a single executable and Inno Setup Compiler to convert the executable to an installer.

Lastly, MSIX Packaging Tool converts the installer to an MSIX app installer.

The installation of the msix file fails with the following error:

App installation failed with error message: Common::Deployment::MsixvcStagingSession::GetManifestReader in MsixvcStagingSession failed with error 0x80070570. (0x80070570)

What could be the reason of this error and are there any other, less cumbersome, methods to create a Windows app from a Python project?

The end-goal would be to create a Python UI in QtPy that runs on a Windows machine in single app kiosk mode.

Share Improve this question asked Mar 12 at 13:54 Mark wijkhuizenMark wijkhuizen 3933 silver badges13 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

The MSIX packaging tool is not designed to create packages for apps designed from scratch. Its main purpose is to help IT professionals convert existing installers to MSIX format.

If you want to create a package from scratch use the Visual Studio Windows Application Packaging Project or other third-party tools, like Advanced Installer - here is an article with a Python example:
https://www.advancedinstaller/create-msix-for-python-app.html

Disclaimer: I work on the team building Advanced Installer

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744748810a4591466.html

相关推荐

  • python - MSIX Packaging Tool - Failing Installation - Stack Overflow

    I am trying to create a Windows app from the following simple Python code.from qtpy.QtWidgets import Q

    21小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信