While I was working on my application, my Office 365 subscription expired. The application has an export feature that will export the data into Excel if installed or open it as a formatted text document if not.
Although the subscription is expired, it still opens Excel.
Is there any way to check whether Excel is licensed/registered?
Code used to check for Excel installation:
Dim regKey As Object = My.Computer.Registry.ClassesRoot.OpenSubKey("Excel.Application", False).OpenSubKey("CurVer", False)
If regKey.GetValue("").ToString() Is Nothing Then