Exemple #1
0
void registry_entry::load(std::istream & is, const version & version) {
	
	if(version < INNO_VERSION(1, 3, 21)) {
		(void)util::load<boost::uint32_t>(is); // uncompressed size of the entry
	}
	
	is >> util::encoded_string(key, version.codepage());
	if(version.bits != 16) {
		is >> util::encoded_string(name, version.codepage());
	} else {
Exemple #2
0
void run_entry::load(std::istream & is, const version & version) {

    if(version < INNO_VERSION(1, 3, 21)) {
        ::load<uint32_t>(is); // uncompressed size of the directory entry structure
    }

    is >> encoded_string(name, version.codepage());
    is >> encoded_string(parameters, version.codepage());
    is >> encoded_string(working_dir, version.codepage());
    if(version >= INNO_VERSION(1, 3, 21)) {
        is >> encoded_string(run_once_id, version.codepage());
    } else {
Exemple #3
0
void header::load(std::istream & is, const version & version) {
	
	options = 0;
	
	if(version < INNO_VERSION(1, 3, 21)) {
		(void)util::load<boost::uint32_t>(is); // uncompressed size of the setup header
	}
	
	is >> util::encoded_string(app_name, version.codepage());
	is >> util::encoded_string(app_versioned_name, version.codepage());
	if(version >= INNO_VERSION(1, 3, 21)) {
		is >> util::encoded_string(app_id, version.codepage());
	}
Exemple #4
0
 bool operator==(const version& left, const version& right)
 {
     return left.major() == right.major()
         && left.minor() == right.minor()
         && left.build() == right.build()
         && left.revision() == right.revision();
 }
Exemple #5
0
void ini_entry::load(std::istream & is, const version & version) {
	
	if(version < INNO_VERSION(1, 3, 21)) {
		::load<uint32_t>(is); // uncompressed size of the ini entry structure
	}
	
	is >> encoded_string(inifile, version.codepage());
	if(inifile.empty()) {
		inifile = "{windows}/WIN.INI";
	}
	is >> encoded_string(section, version.codepage());
	is >> encoded_string(key, version.codepage());
	is >> encoded_string(value, version.codepage());
	
	load_condition_data(is, version);
	
	load_version_data(is, version);
	
	if(version.bits != 16) {
		options = stored_flags<stored_ini_flags>(is).get();
	} else {
		options = stored_flags<stored_ini_flags, 16>(is).get();
	}
}
Exemple #6
0
    bool operator<(const version& left, const version& right)
    {
        if (left.major() < right.major())
        {
            return true;
        }
        else if (left.major() > right.major())
        {
            return false;
        }

        if (left.minor() < right.minor())
        {
            return true;
        }
        else if (left.minor() > right.minor())
        {
            return false;
        }

        if (left.build() < right.build())
        {
            return true;
        }
        else if (left.build() > right.build())
        {
            return false;
        }

        return left.revision() < right.revision();
    }