Can I safely remove the entire directory "d" inside the installer CAB archive if I only ever need and install as English language with no other languages installed? It appears to only contain German language help file data.
I want to remove as many unneeded files as possible to get the program down to the smallest size whilst remaining installable. I have already removed all the language files except "Wcmd_eng.mnu" in the Language directory and that works just fine. Can I do the same with the d directory?
Removing unwanted languages from installer CAB file
Moderators: white, Hacker, petermad, Stefan2
Why don't you just try it out, too, like you have already done with Wcmd_eng.mnu?I have already removed all the language files except "Wcmd_eng.mnu" in the Language directory and that works just fine. Can I do the same with the d directory?
You can not only remove files you don't need but also adjust the installation as a whole by editing the INSTALL.INF file:
auto=1
lang=1
alllang=0
...
Icfu
This account is for sale
- ghisler(Author)
- Site Admin
- Posts: 48125
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Yes you can. But you should also modify the install.inf to ensure that the English help is installed when choosing German:Can I safely remove the entire directory "d" inside the installer CAB archive if I only ever need and install as English language with no other languages installed?
Change
2=Deutsch (German),d
to
2=Deutsch (German),g
Change
d=wcmd_deu
to
g=wcmd_deu
Change
[inid]
to
[inig]
(d is special, it looks for subdir 'd')
If you remove the lng and mnu files, you can also remove the sections under [Languages], and set
count=1
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
So now my Languages section looks like this:ghisler(Author) wrote:If you remove the lng and mnu files, you can also remove the sections under [Languages], and set
count=1
Code: Select all
[Languages]
Count=1
Default=1
1=English
2=Deutsch (German),g
Following the first respondent's reply I have also made the following changes to the Auto section:
Code: Select all
[auto]
auto=1
lang=1
alllang=0
iniloc=
iniall=0
mkgroup=1
mkdesktop=1
- ghisler(Author)
- Site Admin
- Posts: 48125
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
If you change the count to 1, you can also leave out the German language line. It's only needed if you want this language too, but without the German help (just the lng+mnu files).I have removed all the other references other than the german and english ones and changed count to 1. Is that correct?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com