I've made simple console app to open office documents in free web version of office365. Source: https://github.com/Norrica/OfficeEmulator/blob/master/Program.cs
It just moves file to OneDrive folder and launches default browser with link as an argument. Link contains unique CID:
https://onedrive.live.com/sync?ru=https://d.docs.live.net/{CID}/{fileName}}
Currently, this CID is hard-coded in source, but I want usert to be able to set it once, on the first launch of my app.
TL;DR: How to achieve different behavior for the first launch of a console app?