This repo walks you through how to distribute windows application by packaging it as msix package installer.
Complete step by step documentation will be updated in future!
- first add
msix
package as your dev dependency - then add msix configs in
pubspec.yaml
# msix configuration
msix_config:
display_name: Counter App
publisher_display_name: Himmat Rai
identity_name: company.suite.counterapp
msix_version: 1.0.0.0
capabilities: internetClient, location, microphone, webcam
certificate_path: c:\Users\himmat\Desktop\counter_app_intaller\TestCert_2024-01-14_himmat.pfx
certificate_password: 1234
app_installer:
publish_folder_path: c:\Users\himmat\Desktop\counter_app_intaller
hours_between_update_checks: 0
automatic_background_task: true
update_blocks_activation: true
show_prompt: true
force_update_from_any_version: false
- Now we need a certificate to verify our application as trusted in windows, so we need to create new self signed certificate and install it in our local machine.
- Once we create our certificate and signed our package, we can view our self signed certificate in Microsoft Management Console by selecting certificates section (local computer).
- Now we need to create the package and publish it by running
msix package cli tool
commndsdart run msix:create
to create package anddart run msix:publish
to push our application updates. - Once these steps are completed we can run the
<example_app>.appinstaller
file to install our published application to our device and when ever we make changes to our code and publish itdart run msix:publish
, our installed application in windows will update automatically.