1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

WINE で lessmsi で msi ファイルを展開する

Last updated at Posted at 2020-07-31

背景

Linux + WINE で .msi ファイルを展開したい.

Linux native で動く msiextract(msitools) がありますが,

バグがあり, たまに展開できなかったり, 展開したファイルが壊れている msi ファイルがあったりします.
あとビルドがめんどい.
(apt とかにあるのはバージョン古くてうまく展開できないファイルがより多い)

msitools の Ubuntu 18.04 でのビルドメモ
https://qiita.com/syoyo/items/64ce9eea9176ce0a9d41

lessmsi

Windows native の msi 展開やファイルブラウザ lessmsi がありました.

ソースコードもあります. IE 拡張もあるので, Windows で使いたいときも便利です.
(issue でいくつか展開できない msi があるようですが, 少なくとも msiextract よりはうまくいく感じです)

GUI 版は, WINE 環境だと UI が真っ黒になり使い物になりませんでした.

展開先ディレクトリを指定の場合は, パス名の最後にバックスラッシュ(\)が必要です.

Unix shell だと, \ は複数行入力のエスケープ文字と扱われてしまうため, 以下のようにエスケープする必要があります.

$ lessmsi.exe x file.msi "dist\\"

binfmt + wine で Windows バイナリを Linux で ./a.exe のようにして実行するメモ
https://qiita.com/syoyo/items/9fd8758ea3878c36e807

.exe を直接実行できるようにしているとより便利に使えるでしょう.

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?