Wpf get installation directory
NET Framework must be installed on the client. Internet Explorer automatically detects whether clients are installed with. If the. To detect whether the. If you navigate to these file types and the. NET Framework is not installed on the client, the bootstrapper application requests permission to install it.
If permission is not provided, neither the. NET Framework nor the application is installed. If permission is granted, Internet Explorer downloads and installs the. After successful installation of the. NET Framework, the originally requested file is opened in a new browser window. For more information, see Deploying the.
NET Framework and Applications. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Please rate your experience Yes No. Any additional feedback? Submit and view feedback for This product This page.
In this situation, the Property Environment. CurrentDirectory cannot return the expected result. Is there an alternative? As a matter of fact, Microsoft provides another method. Here is what I found:. This method returns the location of the loaded executable file.
Asked 7 years, 3 months ago. Active 7 years, 3 months ago. Viewed 2k times. Improve this question. ModS ModS 2 2 gold badges 10 10 silver badges 27 27 bronze badges. Are you wanting to do this in the installer or in your WPF application when the user runs it? You say after it is installed but that could mean after installation on the last page of the installer or when the user runs the application after installation. Please be as clear as possible. Sorry, When the user runs the application, the nature of the application is to consistently fetch resources from this folder.
Add a comment. Active Oldest Votes. GetDirectoryName Assembly. Location ; You will need to include the following namespaces using System. IO; using System. Combine Path. Location , "Resources" ;.
0コメント