[Python] MSIX Packaging Tool - Failing Installation

Discussão em 'Python' iniciado por Stack, Março 17, 2025.

  1. Stack

    Stack Membro Participativo

    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.

    Continue reading...

Compartilhe esta Página