This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.
I have designed a sample app for windows 10 and want to build this into an APPX file. But the APPX file is not found in the build output folder. Trying to install using PackageFromZipFile.bat also fails with the error:
The argument 'uninstallapp.ps1' to the -File parameter does not exist. Provide the path to an existing '.ps1' file as an argument to the -File parameter."
I followed https://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Content/BuildApplicationsForWindows10.htm
@Annikv Hutchinson Can you let us know whether you are using windows 8.1 or windows 10 os in the machine where you are building this application. Also can you check and let us know if there are any .zip files generated after build?.
Ideally appx should be generated at "C:\Users\XXXX\KonyVizEWS\temp\WindowsSample\build\windows10\Windows10\KonyApp\AppPackages\x86", so while building, if some required component is not found we will be generating a .zip file.
Please check the console while building and send us the console the log so that we can validate this.
The application is built on a windows 10 machine. When I build it for WIndows Desktop, the binaries and .msi packages are generated under build/luawindows folder, and these msi packages install successfully and work as expected. There is no sign of .appx, or KonyWindows10.zip during this build.
We need .appx file as ouput since we need this installed on a device which doesn't work with .msi. Building the same app for windows 10 tablet, generates KonyWindows10.zip under build\windows10\Windows10\.
The Zip file contains a VS solution KonyApp.sln. Is it possible to build this into an appx file?
Please advise. Logs for both types of build attached.
@Annikv Hutchinson From the attached log file we can observe only the build which is happened for WindowsDesktop. Can you build for windows 10 and attach that log so that we can verify and update you.
@Chwistivn Wvlkew Thanks for your reply. Looking at the build options, explicit Windows 10 options are listed under Tablet only. Logs for windows desktop and windows 10 tablet builds are attached.
@Annikv Hutchinson Can you let us know whether you have installed Visual Studio and if so what is the version of it?.
Also if you have already installed VS, please try to open KonyApp.sln which is part of the KonyWindows10.zip and build it. Please let us know your observations.
I strongly feel some required component to build is missing and because of that we are making the .zip file.
@Chwistivn Wvlkew I have both VS2019 and 2017 on my dev machine. The solution didn't build in release mode due to VC++ runtime version mismatch. Updating the runtime reference and a nuget package got rid of the build errors, and I was able to package it into an appx bundle. Thanks for your help through this.
I have a question on the build option to be selected for this in Kony Visualizer. Choosing Desktop--> Desktop WIndows, produces the binaries and an .msi package only. To get the VS solution to build into an appx, I had to choose Tablet-->WIndows 10 in Visualizer. Is this the right way to do it? The user guide linked in my OP isn't clear on this.
@Annikv Hutchinson In general to build standard windows applications/KIOSK applications which are targeted for running in laptops/desktops with windows OS like xp, windows 7 or any OS later than windows 7, you need to choose build option Desktop--> Desktop WIndows. Choosing this option and building in release will generate a .msi and you need to distribute this to your clients.
If you intended target audience are laptop/desktop/tablet with windows 10 as the OS and if you want to upload the executable to store and target audience should be able to search for it in store and download and use it then you need to choose Tablet-->WIndows 10.