Giter VIP home page Giter VIP logo

python-installcab's Introduction

python-installcab

Extract and install components from cab based installers

This tool is intended to be used with wine

Experimental

The software is experimental so you should try it in a fresh wineprefix or make a backup of your wineprefix just in case (at least windows folder and .reg files at the root of your wineprefix).

Usage:

python installcab.py [options] cabfile filter [wineprefix_path]
  • cabfile: an exe installer or cab file that can be extracted with cabextract
  • filter: a filter for the components inside the cab file (will match anywhere in available files inside the cabinet)
  • wineprefix_path: you can set this, otherwise it will try to get from your WINEPREFIX environment variable

Options

  • --nocleanup: do not perform cleanup after running
  • --noreg: do not import registry entries
  • --nodll: do not install dlls into system dir
  • --register: register dlls with regsrv32
  • --stripdllpath: strip full path for dlls in registry so wine can find them through it's own resolver

Examples

python installcab.py ~/.cache/winetricks/win7sp1/windows6.1-KB976932-X86.exe x86_microsoft-windows-mediafoundation"

will extract and install any manifest files and dlls with 'x86_microsoft-windows-mediafoundation' in their path.

python installcab.py ~/.cache/winetricks/win7sp1/windows6.1-KB976932-X64.exe wmadmod

will extract and install any manifest files and dlls with 'wmadmod' in their path.

install-mf examples

You can also try the install-mf.sh file that installs WMF components from win7sp1 installer. There is also install-mf-64.sh for installing into a 64 bit wineprefix.

Note you will need to run winetricks mf first so the installer will be cached (for now install-mf.sh does not download the installer, but relies on winetricks to have done it beforehand).

What exactly it does

  1. Extracts from the cab file using cabextract with 'component' as filter
  2. Finds out what dll files and manifest files where extracted
  3. Will place dll files in $WINEPREFIX/windows/system32/ or syswow64 depending on arch
  4. Will convert manifest data to .reg file and import it through wine/wine64

The software doesn't try to find out dependencies or be smart about where to install dlls, it will just install dlls in the system32 or syswow64 directory, and import stuff into wine's registry from manifest files.

It does not aim to fully support cabinet installers, but is capable of installing just parts from an installer, going a bit further than what is actually possible with 'proper' support.

Dependencies

  • python
  • cabextract
  • wine

License

This software is released into the Public Domain by use of the Unlicense, see the LICENSE file for more details.

python-installcab's People

Contributors

jvanrhijn avatar tonix64 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.