B4J Tutorial [Tool] WindowsStorePackager - publish your App to the Windows Store

In this tutorial, I want to show you, how you can upload your Java Application to Windows Store. Here you can find a test Application in the Store.

System requirements:
  • Windows 10 Anniversary Update (10.0.14393.0 and later) Pro or Enterprise edition
  • 64-bit processor
  • Hardware-assisted virtualization
  • OpenJDK 11 with Jmods - can be downloaded from b4x.com: https://www.b4x.com/b4j.html
Required Tools:
After you have installed all the necessary components you are ready to create the Appx package with the WindowsStorePackager tool.

Create the Appx package:
1. Open WindowsStorePackager as administrator
2. Fill in all necessary fields:
  • The AppName must be the same as the app name in in the developer dashboard
  • The Version must have the following format: X.X.X.X → e.g. 0.0.0.1
  • Like in the B4JPackager11 you have the option to explicit include or exclude modules, use a comma as seperator
  • the values for the last three fields can be found in the "App identity" section of your App:
3. Now hit the "Create" button to finally generate your package.


That's it. Now go to the latest submission of your App and upload the appx package.

Feel free to ask questions
 
Last edited:

tufanv

Expert
Licensed User
Longtime User
That's Incredible Jan ! Thanks very much ! I will try to upload my first app tomorrow !
 

trueboss323

Active Member
Licensed User
Longtime User
When I try to build the msi, I get the error from the logs:

I installed Wix. I don't know what it means by "add it to the path" , and I am still getting that error.
 

JanPRO

Well-Known Member
Licensed User
Longtime User
Hi,

probably the environment variable "PATH" is meant, try this:
  1. Open the advanced system properties: C:\Windows\System32\SystemPropertiesAdvanced.exe
  2. Click on "Environment Variables"
  3. Double Click on the Path variable under system variables
  4. Add the bin folder of WIX as a new value (something like "C:\Program Files (x86)\WiX Toolset v3.11\bin")
  5. Restart your computer and try again
Jan
 

trueboss323

Active Member
Licensed User
Longtime User
Thank you that worked. Now i face another problem, after I try uploading my app to the store it gives me this message:


I wonder if both these errors have something to do with me not having runFullTrust permission, or did I do a mistake in the App manifest?
 

JanPRO

Well-Known Member
Licensed User
Longtime User

tufanv

Expert
Licensed User
Longtime User
Hi,

No it's not a mistake in the manifest. As presumed, this error is caused by the missing permission. You need to fill in this form: https://developer.microsoft.com/de-de/windows/projects/campaigns/desktop-bridge

Jan
Hello Jan,

Got a mail from microsoft like this ,


menas we continue to wait or good to go ?
 

trueboss323

Active Member
Licensed User
Longtime User
I have waited for about 2 weeks now and I still have not gotten a response about my permission request. The last email I got from them was:

And they still have not contacted me yet.
 

JanPRO

Well-Known Member
Licensed User
Longtime User
And they still have not contacted me yet.
For me it took 12 days.

A small forewarning: After the supporter contacted me it took about 1 month til my app was finally in the Store

I hope this was an exception ...

Jan
 

tufanv

Expert
Licensed User
Longtime User
Now I have this :

Good to go now ?
what a complicated process . OMG
 

Computersmith64

Well-Known Member
Licensed User
Longtime User
There is no container feature on my settings. Any ideas ?
I had the same issue. When I got to the step where I had to run DeskTopAppConverter.exe it threw up a warning that Containers was not enabled, but then it enabled the setting & asked me to reboot. I haven't rebooted yet so I don't know if it worked, but the verbose log did confirm that Containers had been enabled.

- Colin.
 

Computersmith64

Well-Known Member
Licensed User
Longtime User
Thanks for the great tutorial Jan. I managed to get all the way through it, but ran into an issue after the last step (changing the manifest & repackaging). The original .appx would run (even though it wouldn't install because it's not signed), however after modifying the manifest & repackaging it, the new (FINAL) .appx won't even run. When I double-click on it, I get a window pop up with the error "Cannot open appx/appxbundle file" & "Reason: Failed due to unknown reason".

I followed the steps exactly, so not sure what's going on...

- Colin.
 

JanPRO

Well-Known Member
Licensed User
Longtime User
Hi,

can you send me the folder (which includes PackageFiles, logs, auto-generated.cer ...) which was generated by DesktopAppConverter?

even though it wouldn't install because it's not signed
Actually the package is already signed, if you want to run your App you need to install the generated certificate.

Jan
 

Computersmith64

Well-Known Member
Licensed User
Longtime User
Hi,

can you send me the folder (which includes PackageFiles, logs, auto-generated.cer ...) which was generated by DesktopAppConverter?

Jan

I can - but it's about 75MB, so we'll have to decide how...

- Colin.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…