The following article outlines one way to generate and implement the .pfx file that is required for building a Windows mobile app in VertiGIS Studio Mobile. It is important to note that other methods for generating this file exist, and that this method is only suitable if a self-signed certificate is acceptable. This article does not cover how to build a Windows app for the Microsoft Store, so its primary use is for people who would like to share their VertiGIS Studio Mobile app(s) internally. Android and iOS require a different process.
Requirements
- Microsoft Visual Studio 2022 (the free Community edition will suffice)
- VertiGIS Studio Mobile app that has been deployed to Production
- Device running Windows 10 or later
Steps
- Open a new project in Visual Studio 2022 using the "Blank App (Universal Windows)" template. This template is only available if you've installed the "Universal Windows Platform development" workload. NOTE: The "Universal Windows Platform development" workload and the "Blank App (Universal Windows)" template are no longer available in newer versions of Visual Studio 2022. Use the "Blank App, Packaged (WinUI 3 in Desktop)" template from the "WinUI application development" workload instead.
- Double click the Package.appxmanifest file in the Solution Explorer pane.
- Under the Packaging tab, click the "Choose Certificate..." button.
- In the certificate wizard that opens, click the "Create..." button.
- Set the Publisher Common Name to "Unknown", choose a password, and click OK.
- Click OK again.
- Right click on the [project name]_TemporaryKey.pfx file in the Solution Explorer pane and select Copy Full Path.
- Open your app in VertiGIS Studio Mobile Designer.
- In the Deploy panel, click the Build App button.
- Select the Windows platform and fill out the App Name, ID, and Version info.
- Under PFX File, use the Select File button to load the .pfx file you created in Visual Studio by pasting the path you copied earlier.
- Once the app is built and downloaded, copy the ZIP file to the device where you would like to install the app (or use the link provided to download it directly to the device).
- Extract the ZIP file.
- Double-click the included .cer file.
- Click the "Install Certificate..." button.
- Set the Store Location to Local Machine and click Next. NOTE: Current User will not work.
- Select "Place all certificates in the following store" and choose "Trusted Root Certification Authorities".
- Finish the Certificate Import Wizard and install the app using the .msixbundle file.
- Repeat steps 12-18 for each device where you would like to install your app.
Comments
0 comments
Article is closed for comments.