Share via


InstallCommand.ReplaceEnvironmentVariables(String) Method

Definition

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