Installing a module and once detected, activates
I am not sure how to even do this or if its even possible.
In my main application in the menu I would like to add the word Update (But greyed out)
When you run the application and check the menu you can see the word Update, if you click on it, nothing happened, greyed out.
However, if I was to install an updater create elsewhere, so this time when the main application is run it detects a file abc.dll which is the updater utility and displays the updater.
Is this possible to do and how would I go about doing this?
All I need to know is the code to enter into the main application. I've got the updater set aside for this.
Thank you.
Re: Installing a module and once detected, activates
Do you mean you want to detect if abc.dll has been loaded into the current appdomain you're able to all its methods, or do you mean you simply want to check if abc.dll exists?
To check if it exists, you can use File.Exists (https://docs.microsoft.com/en-us/dot...tframework-4.8)
To check if a namespace has been loaded into the appdomain, you can get the current loaded assemblies and see if yours exists using
Code:
AppDomain.CurrentDomain.GetAssemblies()