Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: /Gen-langINI #113

Open
SymbioticKilla opened this issue Mar 30, 2021 · 5 comments
Open

Question: /Gen-langINI #113

SymbioticKilla opened this issue Mar 30, 2021 · 5 comments

Comments

@SymbioticKilla
Copy link

Hi,

is there a function for /Gen-langINI?

Thanks!

@SymbioticKilla SymbioticKilla changed the title Question: gen-langINI Question: /Gen-langINI Mar 30, 2021
@jeffkl
Copy link
Owner

jeffkl commented Mar 30, 2021

I've found where this is implemented but its not in DISM the API, its only in dism.exe. At the moment the Microsoft.Dism library only covers what's defined in the public dismapi.h which are exported functions in dism.dll. I can't find a public API to call that will accomplish the functionality of /Gen-LangIni. Perhaps someone out there knows the API for it?

@SymbioticKilla
Copy link
Author

@jeffkl
Thank you for the answer!
The thing is: after you add language packs you should create lang ini. If I call it separately with cmd it says "The specified image is currently being serviced by another DISM operation.".
Can I reuse the session with cmd or inject this command somehow with your nuget?

@jeffkl
Copy link
Owner

jeffkl commented Mar 31, 2021

It is just a .ini file, it looks like the layout is well defined. You should be able to write it to the mounted image and commit it.

https://docs.microsoft.com/en-us/windows-hardware/customize/desktop/wsim/add-multilingual-support-to-a-windows-distribution

[Available UI Languages]
en-US = 3
de-de = 0
fr-fr = 0

[Fallback Languages]
en-US = en-us

Maybe you could contribute it back to this library?

@SymbioticKilla
Copy link
Author

Thanks! I will try my best. Do you know what do the numbers "en-US" = 3 mean?

@jeffkl
Copy link
Owner

jeffkl commented Apr 1, 2021

Yes here's what I found:

[Flags]
public enum LanguageStatus
{
    Available = 0,
    DefaultUI = 1,
    Installed = 2,
    Resolved = 4
}

So 3 means DefaultUI | Installed and 0 means its available but not installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants