Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to open/read .PRI files? (package resource index - used in Windows Store apps)

I need to take some resources from SOURCE.PRI file, modify certain values, then create TARGET.PRI file, which has the exact same content as SOURCE.PRI, except the modified values mentioned above.

There are a couple of PRI file extensions, I am referring to the compiled resource files used by Windows Store apps (more info).

I am assuming that, since .PRI files are already compiled, there is no way to read them, character by character, with simple text parser.

Therefore, I am looking for a way to compile and decompile the .PRI file.

Did anyone find a way to do this?

like image 671
Bobby5193 Avatar asked Feb 05 '13 16:02

Bobby5193


People also ask

What is MakePri EXE?

MakePri.exe is a command line tool that you can use to create and dump PRI files. It is integrated as part of MSBuild within Microsoft Visual Studio, but it could be useful to you for creating packages manually or with a custom build system.

What is a PRI file in Android?

The file is created at build time to store an index of resources that are packaged with the developer's app. Typically, there is one PRI for every language in the application package. When the app is run, the system references the index in the PRI file to load the necessary resources.

What is package resource indexing (PRI)?

Package resource indexing (PRI) APIs and custom build systems. With the package resource indexing (PRI) APIs, you can develop a custom build system for your UWP app's resources. The build system will be able to create, version, and dump (as XML) package resource index (PRI) files to whatever level of complexity your UWP app needs.

Why can't my computer open the PRI file?

Incomplete installation of an application that supports the PRI format The PRI file which is being opened is infected with an undesirable malware. The computer does not have enough hardware resources to cope with the opening of the PRI file. Drivers of equipment used by the computer to open a PRI file are out of date.

How to open LocoScript PRI file extension?

Associate the PRI file extension with the correct application. On , right-click on any PRI file and then click "Open with" > "Choose another app". Now select another program and check the box "Always use this app to open *.pri files". Update your software that should actually open LocoScript Printer Definitions files.


1 Answers

In this github project they edited the .pri file in order to change the logon screen.

You can try and look what they did there and how to accomplish that with your own project.

Although it's been a long time since the question was asked, I think it's still good to have an answer here that will guide anyone who's interested in doing that and arrived here.

like image 100
arieljannai Avatar answered Oct 17 '22 14:10

arieljannai