Installing msi on linux

what are the ways to open MSI files in linux?

Actually i was tried with other tools like nsis,7Zip but i was not able to open msi file with nsis. So is there any way to open msi file in Linux and to do some changes to that file.Please guide me regard this.

2 Answers 2

Looks like msitools should be able to help you.

I’ve been able to extract some MSI files with msiextract from that package.

I don’t think, it is easy possible, because MSI is a binary format similar as an .exe file. I am not aware of any library. But if you find a Unix library which can write streams in .exe files, you should do similar with MSI I think What is possible to convert MSI to XML (in Windows), edit in Unix and convert it back later (in Windows) to MSI.

thanks philim for your suggestion.the thing is i have a .msi file and i want to open this file and want to add some data.how can i do this in linux not in windows.

Yes, as I said: «Of course, you can do that in Linux: Use a Windows VM !! It may work probably also with WINE (a Windows subsystem).» Really: .msi is maybe one of the most Windows-only-special formats ever. You need special tools for that even in Windows itself. I don’t know a tool which could do that in Linux, and I don’t know someone, who would seriously think about writing one, because it makes no sense. I really tried to help.

I wrote down that tips, because, honestly, «want to add some data» is a sentence which suggests the assumption, that someone doesn’t know about the difficulties to do that even with the right tool under the «native» OS here. So I wrote about that difficulties. Normally, no professional setup developer «adds» some data to a given MSI. It is best to do fresh rebuilds or when modifying setups from other sources, to work with the socalled transforms or patches.

One more thing: Everybody can install a Windows OS as a VM under Linux for free for test for 30 days. If your wish of having a linux tool for editing windows stuff is simply «political», and the work itself is not so important, to do that, what’s necessary. ok..

Читайте также:  Linux java start jar

Just one mor thing to prove I really try to dive into even uncommon questions: There exist converters to xml (msi2xml) and vice versa for download. You can convert msi to xml (in Windows) and then edit msi as long as you want in linux. Converting back to msi has to be done in Windows again of course.

Источник

Installing msi on linux

Дата и время публикации: 2020-03-15 21:05:05
Дата и время модификации: 2020-03-22 07:07:07

Для несведущих и неискушенных людей установка msi-пакетов нетривиальная задачка, особенно, когда на государевы сайты, например nalog.ru, предлагают подобное установить на компьютер с предустановленным GNU/Linux , как показано на рисунке 1.1

На рисунке 1.1 показан файл InsD2019.msi , который требует предустановленного Wine , который можно установить согласно разным советам по установке, потому что утилита установки пакетов msi программа msiexec входит в его состав.

После всех подготовительных действий, производим установку пакета msi , как показано в дампе 2.1

user@home:~/Загрузки$ msiexec /i InsD2018.msi 0009:err:mscoree:LoadLibraryShim error reading registry key for installroot 0009:err:mscoree:LoadLibraryShim error reading registry key for installroot 0009:err:mscoree:LoadLibraryShim error reading registry key for installroot 0009:err:mscoree:LoadLibraryShim error reading registry key for installroot . . .

При этом, необращаем внимание на сообщение типа «0009:err:mscoree:LoadLibraryShim error reading registry key for installroot» , связанное с программой wineprefix , поэтому не стоит беспокоится.

Для отключения излишних сообщений, таких как «fixme:msi:internal_ui_handler internal UI » и т.п., не приводящим к сбоям работы программы msiexec , следует внести изменения в формат её выполнения, как показано в дампе 2.2

user@home:~/Загрузки$ WINEDEBUG=-all msiexec /i InsD2018.msi

В результате указанных действий в дампе 2.1 или 2.2 на экране должно отобразится окно, как показано на рисунке 2.1

Остальные инструкции по установке следует черпать на сайте nalog.ru .

После установки указанного приложения c сайта nalog.ru, наблюдалась знакомая картина, а именно — с рабочего стола не работали ярлыки запуска в среде функционирования Wine , которые представлены файлами с расширением .lnk .

Сайт разработан в соответствии с рекомендациями консорциума W3C для языка разметки HTML5.

Об авторе можно прочитать здесь.

Copyright © 2015 Андрей Ржавсков

Источник

Is it possible to run a Windows .msi installer?

Is it possible to install a Windows program from an MSI installer so that the installed program can be run with the Wine program loader?

1 Answer 1

Open the terminal, change directories with cd to the location of the .msi file, and install the .msi file with a command of the form wine msiexec /i whatever-filename.msi .

According to the official WineHQ FAQ:

MSI files cannot be run directly, you need to use the msiexec program. msiexec is a tool for installing .msi packages. MSI files can be installed in Wine from the terminal like this:

wine msiexec /i whatever-filename.msi 
wine start whatever-filename.msi 

That will then run the MSI program the same as if you had double-clicked it in Windows.

Читайте также:  Linux android emulator free

The first command can be changed if necessary to suit the circumstances. For example:

WINEPREFIX=/path/to/wineprefix wine msiexec /i /path/to/filename.msi 

or using wine64 instead of wine:

WINEPREFIX=/path/to/wineprefix wine64 msiexec /i /path/to/filename.msi 

A WINE prefix is a folder that contains all of the WINE configurations as well as all of the Windows pieces that WINE uses for compatibility, including libraries and a registry.

If you want to uninstall the same .msi file later on run wine msiexec /x whatever-filename.msi

Источник

ArchPKGs

A Straightforward Tutorial on msi Installation on Arch-Based Linux (Manjaro/RebornOS)

«A general purpose tool for parsing miniSEED records (miniSEED inspector).» is the maintainer’s definition of msi . To get msi from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS, RebornOS, BlackArch and Anarchy is quite simple. This guide will be covering how to install/update/uninstall the package with either the default package manager pacman or an AUR helper like yay .

Table of Contents

Two typical approaches are used to install msi from AUR. pacman is the choice for you if you’re familiar with command-line interface and have the knowledge of how packages are built. If not, yay is a common alternative to install packages without the necessity to review PKGBUILD and build packages with makepkg afterwards.

sudo pacman -S --needed git && git clone https://aur.archlinux.org/msi.git && cd msi && makepkg -si
  1. Install git if it is not installed before.
  2. clone the package’s git repository from AUR.
  3. cd into the directory.
  4. Use makepkg to build the package. Also, it will automatically be installed with pacman afterwards.

Just like installing AUR packages, updating them is almost the same. Simply pull it from upstream then re-build it. However, it is still a good practice to upgrade your whole system first with sudo pacman -Syu before updating any packages to avoid dependency issues, since Arch is a rolling-release Linux distribution.

git pull && makepkg -si
  1. pull from the package’s git repository.
  2. Build the package with makepkg , then update it with pacman .

Uninstalling packages is the simplest of these three,all you need to do is choose whether to remove the unused dependencies and the configuration files used by the package.

sudo pacman -R msi
sudo pacman -Rs msi
sudo pacman -Rns msi

For more details about how to install AUR packages or how to install yay , please refer to this post.

Читайте также:  Lightweight code editor linux

stow Install (Update/Remove) Tutorial on Arch-Based Linux (Manjaro, BlackArch)

Quoting from extra/stow’s gist, it’s «Manage installation of multiple softwares in the same directory tree». To install and update this package (extra/stow) from Arch official repository (Extra) on Arch Linux and Arch-based distros (e.g. Manjaro, EndeavourOS, Anarchy, Garuda) is relatively easy. This guide will be covering how to install, update and remove the package with either the default package manager pacman or an AUR helper (e.g. yay).

Installing twitch-cli-bin in One Command on Arch Linux (Manjaro/Artix)

twitch-cli-bin is «The official Twitch CLI to make developing on Twitch easier.» based on its own profile. To install twitch-cli-bin from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS, BlackArch, Anarchy, ArcoLinux and Parabola is relatively easy. This tutorial will be covering how to install/update/uninstall the package with either the built-in package manager pacman or an AUR helper (e.g. yay).

Beginner’s Guide on Installing python2-pocketsphinx-git on Arch Linux/Manjaro/Garuda

«Python interface to CMU SphinxBase and PocketSphinx libraries» is their gist of python2-pocketsphinx-git. To get this package (python2-pocketsphinx-git) from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS and ArcoLinux is relatively easy. This tutorial will cover how to install, update and remove the package with either the built-in package manager pacman or an AUR helper (e.g. yay).

Step-by-Step Guide on firefox-esr-i18n-ko Installation on Arch Linux/Manjaro/Garuda

Referring to firefox-esr-i18n-ko’s gist, it is «Standalone web browser from mozilla.org, Extended Support Release». To get firefox-esr-i18n-ko from AUR (Arch User Repository) on Arch Linux and Arch-based Linux distributions (e.g. Manjaro, EndeavourOS, Garuda) is fairly easy. This tutorial will cover how to install, update and uninstall the package with either the built-in package manager pacman or an AUR helper (e.g. yay).

Complete Guide on firefox-nightly-hg Installation on Arch-Based Linux (Manjaro, Artix)

«Standalone web browser from mozilla.org, nightly version» is their outline of firefox-nightly-hg. To get this package (firefox-nightly-hg) from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS, Garuda, Artix, BlackArch and RebornOS is relatively simple. This tutorial will show you step-by-step how to install, update and remove the package with either the default package manager pacman or an AUR helper like yay.

Installing doxygen (Full Tutorial) on Arch-Based Linux (Manjaro/Anarchy)

doxygen is «Documentation system for C++, C, Java, IDL and PHP» according to its own profile. To install doxygen from Arch official repository (Extra) on Arch Linux and Arch-based Linux distros (e.g. Manjaro, EndeavourOS, Parabola, RebornOS, Anarchy, ArcoLinux) is comparatively simple. This tutorial will show you step-by-step how to install/update/remove the package with either the default package manager pacman or an AUR helper (e.g. yay).

More guides… copyright 2023 ArchPKGs. All Rights Reserved.

Источник

Оцените статью
Adblock
detector