src/Cedar/SW.c
// Add the basically required files for the components to SFX compressed files list

Add the basically required files for the components to SFX compressed files list
Add the basically required files for the components to SFX compressed files list
bool SwAddBasicFilesToList(LIST* o, char* component_name)
{
	UINT i;
	if (o == NULL || component_name == NULL)
	{
		return false;
	}
	if (EndWith(component_name, "Server_and_Client_Full"))
	{
		for (i = 0; i < (sizeof(sfx_ntt_files) / sizeof(char*)); i++)
		{
			char* name = sfx_ntt_files[i];
			wchar_t name_w[MAX_PATH];
			wchar_t src_file_name[MAX_PATH];
			StrToUni(name_w, sizeof(name_w), name);
			ConbinePathW(src_file_name, sizeof(src_file_name), MsGetExeFileDirW(), name_w);
			Add(o, SwNewSfxFile(name, src_file_name));
		}
	}
	else if (EndWith(component_name, "Server_and_Client_ShareDisabled") || EndWith(component_name, "Server_and_Client"))
	{
		for (i = 0; i < (sizeof(sfx_ntt_files_share_disabled) / sizeof(char*)); i++)
		{
			char* name = sfx_ntt_files_share_disabled[i];
			wchar_t name_w[MAX_PATH];
			wchar_t src_file_name[MAX_PATH];
			StrToUni(name_w, sizeof(name_w), name);
			ConbinePathW(src_file_name, sizeof(src_file_name), MsGetExeFileDirW(), name_w);
			Add(o, SwNewSfxFile(name, src_file_name));
		}
	}
	else
	{
		return false;
	}
	Add(o, SwNewSfxFile("EntryPoint.dat", L"|EntryPoint.dat"));
#ifdef VARS_ENABLE_LIMITED_MODE
	Add(o, SwNewSfxFile("EntryPoint_LimitedMode.dat", L"|EntryPoint_LimitedMode.dat"));
#endif 
#ifdef VARS_ENABLE_LGWAN_MODE
	Add(o, SwNewSfxFile("EntryPoint_LgwanMode.dat", L"|EntryPoint_LgwanMode.dat"));
#endif 
	Add(o, SwNewSfxFile("install_src.dat", L"|install_src.dat"));
	return true;
}
bool SwAddBasicFilesToList ( LIST * o , char * component_name ) { UINT i ; if ( o == NULL || component_name == NULL ) { return false ; } if ( EndWith ( component_name , " " ) ) { for ( i = 0 ; i < ( sizeof ( sfx_ntt_files ) / sizeof ( char * ) ) ; i ++ ) { char * name = sfx_ntt_files [ i ] ; wchar_t name_w [ MAX_PATH ] ; wchar_t src_file_name [ MAX_PATH ] ; StrToUni ( name_w , sizeof ( name_w ) , name ) ; ConbinePathW ( src_file_name , sizeof ( src_file_name ) , MsGetExeFileDirW ( ) , name_w ) ; Add ( o , SwNewSfxFile ( name , src_file_name ) ) ; } } else if ( EndWith ( component_name , " " ) || EndWith ( component_name , " " ) ) { for ( i = 0 ; i < ( sizeof ( sfx_ntt_files_share_disabled ) / sizeof ( char * ) ) ; i ++ ) { char * name = sfx_ntt_files_share_disabled [ i ] ; wchar_t name_w [ MAX_PATH ] ; wchar_t src_file_name [ MAX_PATH ] ; StrToUni ( name_w , sizeof ( name_w ) , name ) ; ConbinePathW ( src_file_name , sizeof ( src_file_name ) , MsGetExeFileDirW ( ) , name_w ) ; Add ( o , SwNewSfxFile ( name , src_file_name ) ) ; } } else { return false ; } Add ( o , SwNewSfxFile ( " " , L" " ) ) ; #ifdef VARS_ENABLE_LIMITED_MODE Add ( o , SwNewSfxFile ( " " , L" " ) ) ; #endif #ifdef VARS_ENABLE_LGWAN_MODE Add ( o , SwNewSfxFile ( " " , L" " ) ) ; #endif Add ( o , SwNewSfxFile ( " " , L" " ) ) ; return true ; }
Add the basically required files for the components to SFX compressed files list
Add the basically required files for the components to SFX compressed files list
// Validate arguments
 // 共有機能有効版
 // 共有機能無効版
 // VARS_ENABLE_LIMITED_MODE
 // VARS_ENABLE_LGWAN_MODE
