def GetOutputFileName(test, name, lang):
  """Creates the output file name based on the language and the name of the app.
  Args:
    test: Whether the input file name starts with TEST.
    name: The name of the application. I.e. Chrome, GoogleGears.
    lang: The language of the installer.
  Returns:
    The output filename
  """
  if test:
    file_name = 'Tagged_TEST_%sSetup_%s.exe' % (name, lang)
  else:
    file_name = 'Tagged_%sSetup_%s.exe' % (name, lang)
  return file_name