I'm in the process of upgrading a batch script that I have to the newer Windows(10) features. My script calls 7-zip. I'm currently researching the different ways I can use to see if 7-zip is installed. I may eventually use Wix and the registry but I'm having trouble knowing the mechanics of the current system that Windows uses to determine which application a file opens within my batch script. I have done research on the internet but hit a wall. I have discovered the Assoc and Ftype commands, but there seems to be more that I am missing.
I have a directory on my thumb drive...
Directory of D:\stuff b\Mikey's Applications\Personal\WhichCMD
17/07/2019 12:30 PM <DIR> .
17/07/2019 12:30 PM <DIR> ..
17/07/2019 12:22 PM 1,601 64bit.txt
17/07/2019 12:20 PM 1,641 32biton64.txt
18/07/2019 11:32 AM 2,047 32bit.txt
18/07/2019 04:53 PM 821 32biton64.7z
4 File(s) 6,110 bytes
2 Dir(s) 10,150,608,896 bytes free
`
When I type 32biton64.txt
it brings up Notepad. Wonderful!
When I type 32biton64.7z
it brings up the 7-zip File Manager. Wonderful!
When I type assoc .txt
I get...
D:\stuff b\Mikey's Applications\Personal\WhichCMD>assoc .txt
.txt=txtfile
which is wonderful!
When I type assoc .7z
I get an error ...
D:\stuff b\Mikey's Applications\Personal\WhichCMD>assoc .7z
File association not found for extension .7z
So there is another system that Windows uses to find an application other than " Assoc and Ftype". What is it?