This document provides the instruction to run msconvert to convert RAW format on Linux.

`msconvert` from ProteoWizard is designed to run on Windows, however, it is possible to run it using `wine`. The following instructions were test on Ubuntu 16.04 with ProteoWizard 2.0.

## install wine

```sh
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable
sudo apt-get -y install winetricks
```

## set environment variable

```sh
export WINEARCH=win32      ## force to run in 32-bit mode
export WINEPREFIX=~/.wine  ## change as you want
```

## install essential dlls

```sh
## VC runtime enviroment
winetricks vcrun2008          
```

## download and unzip pwiz

```sh
## load the dll for RAW format
wine regsvr32 MSFileReader.XRawfile2.dll
## run msconvert.exe
wine msconvert.exe
```
