/// <summary> /// Gets a preprocessor variable value with the given name. /// </summary> /// <remarks> /// TODO: This can be configuration specific. /// </remarks> public string GetPreprocessorVariableValue(string name) { string constants = GetEvaluatedProperty("DefineConstants"); NameValuePairCollection nameValuePairs = new NameValuePairCollection(constants); return(WixPropertyParser.Parse(nameValuePairs.GetValue(name), this)); }
/// <summary> /// Gets the full filename including the root directory path to this binary. /// </summary> /// <remarks> /// The full path is generated by using the WixDocument's filename. /// </remarks> public string GetFileName() { string relativeFileName = WixPropertyParser.Parse(Source, OwnerWixDocument); return(GetFullPath(relativeFileName)); }