activescott / activescott/lessmsi

Support Extracting files from Windows Installer Merge Modules (.msm files)

Ouverte
#216 1 commentaire 1 réaction 0 personnes assignées Voir sur GitHub
enhancement help wanted
Langage dominant
C#
Étoiles
1.8k
Forks
188
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**Describe the bug**
Dll-extraction fails for Microsoft Visual C++ Redistributable 143 Merge Module with following error:

```
Failed to create view with query: SELECT * FROM `Media`

Technical Detail:

at Microsoft.Tools.WindowsInstallerXml.Msi.View..ctor(Database db, String query)
at Microsoft.Tools.WindowsInstallerXml.Msi.Database.OpenExecuteView(String query)
at LessMsi.Msi.Wixtracts.CabsFromMsiToDisk(Path msi, Database msidb, String outputDir)
at LessMsi.Msi.Wixtracts.ExtractFiles(Path msi, String outputDir, MsiFile[] filesToExtract, AsyncCallback progressCallback, ExtractionMode extractionMode)
at LessMsi.Gui.MainForm.btnExtract_Click(Object sender, EventArgs e)
```

**To Reproduce**
Steps to reproduce the behavior:
1. Install `Visual Studio Installer`, then the component `C++ 2022 Redistributable-MSMs`.
2. Open the file `C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\v143\MergeModules\Microsoft_VC143_CRT_x64.msm` in LessMSI.
3. Click on 'Extract'.
4. See error, no dlls are extracted.

**Expected behavior**
The extraction should succeed without an error popout and the dlls should be visible in the target directory.

**Screenshots**

![Image](https://github.com/user-attachments/assets/a8814d04-487d-4751-9bbb-1723b884d825)

**Desktop (please complete the following information):**
- OS: Windows 11
- Version 2.4.0.0

**Additional context**

Here is the related file:
[Microsoft_VC143_CRT_x64.msm.txt](https://github.com/user-attachments/files/18481270/Microsoft_VC143_CRT_x64.msm.txt)

You have to remove the `.txt` suffix.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.