Hi there!
Although your path calculation is correct (it could be more efficient if Path.Combine() method is used), UWS.Configuration assembly location, other than GAC, is not documented or guaranteed. You could still, probably, use
Assembly.Load(string asmName) method to try to load UWS.Configuration from GAC instead of file system.
Can we ask what is the use case for changing UWS configuration while UWS is not even installed?
Also, we'd like to mention that UWS build 15 that will be released later today or tomorrow, will have UWS uninstallation moved from "Programs & Features" to UWS Programs menu folder. This allowed us to show a warning when UWS is uninstalled while there are registered applications (see screenshot).
Best regards,
UltiDev Team.
Ultidev Team attached the following image(s):
Please donate at
http://www.ultidev.com/products/Donate.aspx to help us improve our products.