if ((Components[i].invisible) && (Components[i].downloadonly)) WritePrivateProfileString(Components[i].compname,"Attributes", "SELECTED|INVISIBLE|DOWNLOAD_ONLY",iniDstPath); else if ((Components[i].invisible) && !(Components[i].downloadonly)) WritePrivateProfileString(Components[i].compname,"Attributes", "SELECTED|INVISIBLE",iniDstPath); else if (!Components[i].empty) WritePrivateProfileString(Components[i].compname,"Attributes", "",iniDstPath); else WritePrivateProfileString(Components[i].compname,"Attributes", "SELECTED",iniDstPath);
CString strAttributes = "SELECTED"; CString strSep = "|";  if (Components[i].invisible) strAttributes += strSep + "INVISIBLE";  if (Components[i].downloadonly) strAttributes += strSep + "DOWNLOAD_ONLY";  if (Components[i].visible)    strAttributes = "VISIBLE";  WritePrivateProfileString(Components[i].compname, "Attributes", strAttributes, iniDstPath);
void LinuxInvisible(){	Setup0Short = "Recommended";	Setup1Short = "Custom";	CString Setup0Long = "Installs the most common options.  Quickest to download; recommended for most users.  Java not included.";	CString Setup1Long = "Recommended for advanced users or users with specific international language package requirements.  (Navigator will be installed by default.)";	WritePrivateProfileString("Setup Type0", NULL, "", iniDstPath);	WritePrivateProfileString("Setup Type1", NULL, "", iniDstPath);	WritePrivateProfileString("Setup Type0","Description Short",		(LPCTSTR)Setup0Short,iniDstPath);	WritePrivateProfileString("Setup Type0","Description Long", 		(LPCTSTR)Setup0Long,iniDstPath);	WritePrivateProfileString("Setup Type1","Description Short",		(LPCTSTR)Setup1Short,iniDstPath);	WritePrivateProfileString("Setup Type1","Description Long", 		(LPCTSTR)Setup1Long,iniDstPath);	WritePrivateProfileString("Setup Type2",NULL," ",iniDstPath);	WritePrivateProfileString("Setup Type3",NULL," ",iniDstPath);	CString Cee;	tempWidget = findWidget("SelectedComponents");	CString component;	for (int i=0; i<numComponents; i++)	{		if (Components[i].selected)		{			component = Components[i].compname;				Cee.Format("C%d", componentOrder);			WritePrivateProfileString("Setup Type0",(LPCTSTR)Cee,				(LPCTSTR)component,iniDstPath);			WritePrivateProfileString("Setup Type1",(LPCTSTR)Cee,				(LPCTSTR)component,iniDstPath);			if ((Components[i].invisible) && (Components[i].downloadonly))				WritePrivateProfileString(Components[i].compname,"Attributes",				"SELECTED|INVISIBLE|DOWNLOAD_ONLY",iniDstPath);			else if ((Components[i].invisible) && !(Components[i].downloadonly))				WritePrivateProfileString(Components[i].compname,"Attributes",				"SELECTED|INVISIBLE",iniDstPath);			else if (!Components[i].empty)				WritePrivateProfileString(Components[i].compname,"Attributes",				"",iniDstPath);			else				WritePrivateProfileString(Components[i].compname,"Attributes",				"SELECTED",iniDstPath);			componentOrder++;		}		else			WritePrivateProfileString(Components[i].compname,"Attributes",			"INVISIBLE",iniDstPath);	}}