Jump to content











Photo
- - - - -

Reducing Win10 and older OSs footprint

wimlib-imagex wimlib-clc winsxs_reduce

  • Please log in to reply
420 replies to this topic

#251 wimb

wimb

    Platinum Member

  • Developer
  • 3119 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 4 weeks ago

Check out listdlls : https://docs.microso...nloads/listdlls

 

gives path of the dlls used.

 

I think good App, will try on Mini 10x64 ....



#252 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 15546 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 4 weeks ago

Am I missing something? :w00t:

 

Doesn't Dependency Walker work in that environment? :unsure:

 

:duff:

Wonko



#253 antonino61

antonino61

    Silver Member

  • Advanced user
  • 937 posts
  •  
    Italy

Posted 4 weeks ago

yes it does, but the very question is, does any of them programs really help us find what makes an exe work and not work on 2 almost parallel systems? what exactly is missing in the latter that is not in the former? 

I also checked the logs and they do not seem to explain the difference, they just show that the process completes in one instance and does not in another, just in case we did not know.



#254 wimb

wimb

    Platinum Member

  • Developer
  • 3119 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 4 weeks ago

Doesn't Dependency Walker work in that environment? :unsure:

 

 

Yes it works in Mini 10x64 and is a nice App to find out what files are missing for required functionality.

 

What we need to know now is:

What is the easiest way to find out what System32 files should not be removed in Mini10x64

so that we can make a list of System32 files that can safely be removed in Mini10x64, while preserving functionality comparable to full Win10x64.

 

The list of System32 files larger than say 500 kB and that can be removed is what we are looking for.

 

I think ListDlls can be useful for this task.



#255 antonino61

antonino61

    Silver Member

  • Advanced user
  • 937 posts
  •  
    Italy

Posted 4 weeks ago

no need to seek files smaller than one meg, is there?



#256 antonino61

antonino61

    Silver Member

  • Advanced user
  • 937 posts
  •  
    Italy

Posted 4 weeks ago

dependency walker, I find it too accurate, inasmuch as it detects plenty of errors even in applications that still work in the practical, albeit untechnical, sense of the word.



#257 wimb

wimb

    Platinum Member

  • Developer
  • 3119 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 4 weeks ago

no need to seek files smaller than one meg, is there?

 

Later we can search in the files with size below 500 kB, but at first I think it is most useful to go for the larger files


  • antonino61 likes this

#258 antonino61

antonino61

    Silver Member

  • Advanced user
  • 937 posts
  •  
    Italy

Posted 4 weeks ago

rite u r. up with dutch pragmatism!!"



#259 ReTokener

ReTokener

    Frequent Member

  • Developer
  • 276 posts

Posted 4 weeks ago

assuming we have a tasklist and we get a dlllist of each tasklist-item, do we have a list of (required) dll-positives?

then delete all (not required) dll-files exceeding (500kb)-limit?


  • wimb likes this

#260 wimb

wimb

    Platinum Member

  • Developer
  • 3119 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 4 weeks ago

assuming we have a tasklist and we get a dlllist of each tasklist-item, do we have a list of (required) dll-positives?

then delete all (not required) dll-files exceeding (500kb)-limit?

 

Yes that is what needs to be done.

 

ListDlls gives the DLL List for each TaskList item and I can combine this info with a DirList of System32 sorted by Size



#261 gbrao

gbrao

    Frequent Member

  • Advanced user
  • 429 posts
  •  
    India

Posted 4 weeks ago

listdlls can give you "list all DLLs loaded into all processes". processname/pid is optional.


  • ReTokener likes this

#262 gbrao

gbrao

    Frequent Member

  • Advanced user
  • 429 posts
  •  
    India

Posted 4 weeks ago

What does "Date accessed" really mean ?

 

Explorer -> Detail view -> Show Date accessed column -> Sort by that column

 

The dlls that haven't been accessed since you booted windows - will that give you a list of dlls not really needed ?


  • antonino61 likes this

#263 ReTokener

ReTokener

    Frequent Member

  • Developer
  • 276 posts

Posted 4 weeks ago

here is a script to enumerate (by listdlls) filtered dll files (incl. size) in use.

Attached File  dlllist.7z   693.09KB   6 downloads

password = dll

 

place the script next to listdlls.exe and run it as admin.

 

this is the first step, the next step is to find dll and mui files NOT in use.

 

regards   T.

 

 

 

 
 

 

 



#264 ReTokener

ReTokener

    Frequent Member

  • Developer
  • 276 posts

Posted 4 weeks ago

sourcefile:

Attached File  get_working_dll_files.7z   1.19KB   6 downloads

 

pw = dll

 



#265 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 15546 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 4 weeks ago

I see :), you are in "subtracting mode", I am more used to "adding mode", at least this is what I was using at the time for the "mini XP".

 

There the idea was to boot with really the minimal-minimal needed files to barely boot, then place a .exe in a given own directory and analyzing/profiling it to find all its .dll dependencies (besides the 20 or 25 "known .dll's" in Registry) and copy from another "full" OS instance the .dll's to that directory until the .exe ran.

 

This way the .dll's are initially duplicated/triplicated/etc. (and later you can move a single copy to the original location within the PATH), but each directory (and the .exe+.dll's in it) represented (when it worked, there were exceptions) a sort of self-standing portable, i.e. a "component". 

 

:duff:

Wonko


  • ReTokener and antonino61 like this

#266 ReTokener

ReTokener

    Frequent Member

  • Developer
  • 276 posts

Posted 4 weeks ago

Dear Wonko, if you responded at my post:

I interpreted "reducing-win10-and-older-oss-footprint" as "taking files away from Win10".

 

T.


  • antonino61 likes this

#267 antonino61

antonino61

    Silver Member

  • Advanced user
  • 937 posts
  •  
    Italy

Posted 4 weeks ago

can we proceed both ways? BTW, i did run listdlls but i did not have time to see what it yielded, as the cmd prompt window disappeared too quickly. what is the line argument we need to get a readable script of the exes?



#268 wimb

wimb

    Platinum Member

  • Developer
  • 3119 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 4 weeks ago

@ReTokener

Thanks for making get_working_dll_files_x64.exe

It is working quite nice to get the list of DLL files in use, which in Mini10x64 is about 1000 System32 DLL files of a total of about 3200 System32 DLL files

The percentage is huge which means that we must be very careful in removing System32 DLL files.

Anyway it is very nice that we can make now the List of System32 DLL files being in use.  :)

 

I think Wonko responded to my post about using Dependency Walker and not about your new program.


  • ReTokener likes this

#269 gbrao

gbrao

    Frequent Member

  • Advanced user
  • 429 posts
  •  
    India

Posted 4 weeks ago

 

place the script next to listdlls.exe and run it as admin.

 


 
 

 

 

 

Would it be necessary to start the programs you normally use, e.g. VLC, and then run your program ?

 

Program X might need certain dlls. If it is not running, your program would not list (edit) the dlls it needs. Or am I mistaken.



#270 wimb

wimb

    Platinum Member

  • Developer
  • 3119 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 4 weeks ago

Indeed in Mini10x64 environment you must start all Apps and Configuration programs for which you have and want to keep functionality.

 

Then when everything is running you can use get_working_dll_files_x64.exe as Admin to find what DLL files are in use  :)



#271 antonino61

antonino61

    Silver Member

  • Advanced user
  • 937 posts
  •  
    Italy

Posted 4 weeks ago

how do u get a list of the files that have never been in use?



#272 alacran

alacran

    Gold Member

  • .script developer
  • 1694 posts
  •  
    Mexico

Posted 4 weeks ago

@ antonino61

 

if you don't help don't get in the way.

 

That's why I'm not commenting anything now.  Let them finish, and latter we will get the explanations.

 

alacran



#273 antonino61

antonino61

    Silver Member

  • Advanced user
  • 937 posts
  •  
    Italy

Posted 4 weeks ago

i am trying to help



#274 alacran

alacran

    Gold Member

  • .script developer
  • 1694 posts
  •  
    Mexico

Posted 4 weeks ago

Molto aiuto è colui che non interferisce

 

alacran


  • antonino61 likes this

#275 antonino61

antonino61

    Silver Member

  • Advanced user
  • 937 posts
  •  
    Italy

Posted 4 weeks ago

@alacrán

 

since the 2 of us do not want to get in the way, would u pls tell me how I get a list of never used dlls to the best of ur knowledge and belief?





Also tagged with one or more of these keywords: wimlib-imagex, wimlib-clc, winsxs_reduce

3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users