wpfuwpwindows-store-appsdesktop-bridgedesktop-app-converter

Extremely simple app and a text file, best way to distribute on Windows Store?


I have an extremely simple application I'd like to distribute on the Windows Store. This is the first I've looked at Store.

The entire project consists of the exe and readme.txt. The app has a button that opens a second window and displays the contents of the readme.

The exe will be packaged using Desktop App Converter (DAP). Is there a way I can add the text file to the package as part of the DAP process or post-process?

I know I can put the file inside the exe as a resource, but I'd like to avoid doing that simply so the user can open it in their own text editor as well.


Solution

  • Is there a way I can add the text file to the package as part of the DAP process or post-process?

    You could firstly use DAC tool to convert your WPF application. Then you could modify the packaged app by adding the text file into visual assets folder:

    enter image description here

    Then you need to manually generate a new Package Resource Index file and repackage your app using MakeAppx tool.

    You could open your command tool and Change directory to the package's root folder, and then create a priconfig.xml file:

    makepri createconfig /cf priconfig.xml /dq en-US

    Create the resources.pri file(s) by using the command

    makepri new /pr <PHYSICAL_PATH_TO_FOLDER> /cf <PHYSICAL_PATH_TO_FOLDER>\priconfig.xml

    For example: makepri new /pr c:\MYAPP /cf c:\MYAPP\priconfig.xml

    Finally, you need to generate a new package:

    makeappx pack -d "C:\VLCUWP\VLCUWPApp\VLCUWPApp\PackageFiles" -p "C:\VLCUWP\VLCUWPApp\VLCUWPApp\VLCUWPApp.appx".

    For more details, please refer to Create an app package with the MakeAppx.exe tool.