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

Discussion in 'B4J Tutorials' started by JanPRO, Nov 26, 2017.

  1. JanPRO

    JanPRO Well-Known Member Licensed User

    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: APPID.PNG
    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: Feb 7, 2019
  2. Cableguy

    Cableguy Expert Licensed User

    Thank You Very Much
     
    Mashiane likes this.
  3. tufanv

    tufanv Expert Licensed User

    That's Incredible Jan ! Thanks very much ! I will try to upload my first app tomorrow !
     
  4. trueboss323

    trueboss323 Active Member Licensed 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.
     
  5. JanPRO

    JanPRO Well-Known Member Licensed 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
      [​IMG]
    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
     
    Dadaista and trueboss323 like this.
  6. trueboss323

    trueboss323 Active Member Licensed User

    Thank you that worked. Now i face another problem, after I try uploading my app to the store it gives me this message:
    Untitled.png

    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?
     
  7. JanPRO

    JanPRO Well-Known Member Licensed User

    joulongleu and trueboss323 like this.
  8. tufanv

    tufanv Expert Licensed User

    Hello Jan,

    Got a mail from microsoft like this ,

    menas we continue to wait or good to go ?
     
    joulongleu likes this.
  9. Mashiane

    Mashiane Expert Licensed User

    Eish, I still love my windows 7.... have to VirtualBox this, thanks for an amazing article...;)
     
    joulongleu likes this.
  10. JanPRO

    JanPRO Well-Known Member Licensed User

    You have to wait, a supporter will contact you in some days.

    Jan
     
    joulongleu likes this.
  11. trueboss323

    trueboss323 Active Member Licensed 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.
     
    joulongleu likes this.
  12. tufanv

    tufanv Expert Licensed User

    same for me
     
  13. JanPRO

    JanPRO Well-Known Member Licensed User

    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 o_O

    I hope this was an exception ...

    Jan
     
  14. tufanv

    tufanv Expert Licensed User

    Now I have this :
    Good to go now ?
    what a complicated process . OMG
     
  15. tufanv

    tufanv Expert Licensed User

    There is no container feature on my settings. Any ideas ?
     
  16. Computersmith64

    Computersmith64 Well-Known Member Licensed User

    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.
     
    tufanv likes this.
  17. tufanv

    tufanv Expert Licensed User

    Will try it that way thanks !
     
  18. Computersmith64

    Computersmith64 Well-Known Member Licensed 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.
     
  19. JanPRO

    JanPRO Well-Known Member Licensed User

    Hi,

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

    Actually the package is already signed, if you want to run your App you need to install the generated certificate.

    Jan
     
  20. Computersmith64

    Computersmith64 Well-Known Member Licensed User

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

    - Colin.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice