Question: I was on Office 2010 and got asked to be in the pilot group for Office 365. After this period O365 went live and I deemed it a good idea to uninstall Office 2010.

After this was done all Office related filetypes lost their association with office and excel woorkbooks were always opened as a blank file.

Since repairing the installation did not resolve the issue I tried uninstalling. Since Office 365 is installed as 10 different products (1 for each language) on my machine I have to uninstall one by one.

After I uninstalled to de-DE version, which is my native locale, everyting worked again in en-US. Here comes my problem: How can I re-install the German language pack or uninstall Office 365 in a one-click manner completly to get it re-installed from the system center from scratch?

I can't just go to the System center configruation manager and click install. The system then will tell me, that office is already installed. If I uninstall everything by hand, I have to calculate about 2 hours per language pack at current performance of my hard drive.

Answer: 
Maybe the data base structure has changed, in my case, I had to slightly change @Davidenko's instructions.

Install a SQLite command-line shell, perhaps from here [sqlite.org/download.html](https://www.sqlite.org/download.html). It is bundled in the sqlite-tools.  

Copy the file

```
C:\Users\USERNAME\AppData\Roaming\ViberPC\YourNumber\viber.db

```

somewhere. Now in PowerShell or CMD `cd` to `viber.db` directory and open it with:

```
sqlite3 .\viber.db

```

That opens `viber.db` in the SQLite shell.  

**To export contacts as a CSV** file, write in the SQL shell:

```
.mode csv
.output contacts.csv
SELECT Contact.Name, Contact.Number, Contact.ViberContact FROM Contact;
.output stdout

```

**To export text messages as a CSV** including related contacts, write:

```
.mode csv
.output messages.csv
SELECT Contact.Name, Contact.Number, Contact.ViberContact, Events.TimeStamp, Messages.Body  FROM Contact INNER JOIN Events ON Contact.ContactID = Events.ContactID INNER JOIN Messages ON Events.EventID = Messages.EventID  ORDER BY Contact.Name;
.output stdout

```
On **ubuntu** I found it under:

* `/home/[user]/snap/viber-unofficial/37/.ViberPC/[phonenumber]/viber.db` (snap installation)
* `/home/[user]/.ViberPC/[phonenumber]/viber.db` (non-snap installation)

Then you can open with `sqlitebrowser`

```bsh
sudo apt install sqlitebrowser
sqlitebrowser viber.db

```