ManagedDism
ManagedDism copied to clipboard
Question: /Gen-langINI
Hi,
is there a function for /Gen-langINI?
Thanks!
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?
@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?
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?
Thanks! I will try my best. Do you know what do the numbers "en-US" = 3 mean?
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.