InstallCommand.ReplaceEnvironmentVariables(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the value of the given string with replaced and expanded environment variables from the current InstallCommand instance.
protected:
System::String ^ ReplaceEnvironmentVariables(System::String ^ name);
protected string ReplaceEnvironmentVariables (string name);
member this.ReplaceEnvironmentVariables : string -> string
Protected Function ReplaceEnvironmentVariables (name As String) As String
Parameters
- name
- String
A string that contains environment variables to replace.
Returns
A string
with the original environment variables replaced with their respective values.
Remarks
The name parameter may contain any number of environment variable tokens such as %path% or %InstallerFile%. This method replaces those tokens with their respective values from the EnvironmentVariables collection and returns the modified string.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for