|
|
@ -583,10 +583,8 @@ bool cmCPackInnoSetupGenerator::ProcessComponents()
|
|
|
|
"this script uses components }");
|
|
|
|
"this script uses components }");
|
|
|
|
|
|
|
|
|
|
|
|
// Installation types
|
|
|
|
// Installation types
|
|
|
|
bool noTypes = true;
|
|
|
|
|
|
|
|
std::vector<cmCPackInstallationType*> types(InstallationTypes.size());
|
|
|
|
std::vector<cmCPackInstallationType*> types(InstallationTypes.size());
|
|
|
|
for (auto& i : InstallationTypes) {
|
|
|
|
for (auto& i : InstallationTypes) {
|
|
|
|
noTypes = false;
|
|
|
|
|
|
|
|
types[i.second.Index - 1] = &i.second;
|
|
|
|
types[i.second.Index - 1] = &i.second;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -601,17 +599,16 @@ bool cmCPackInnoSetupGenerator::ProcessComponents()
|
|
|
|
typeInstructions.push_back(ISKeyValueLine(params));
|
|
|
|
typeInstructions.push_back(ISKeyValueLine(params));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!noTypes) {
|
|
|
|
// Inno Setup requires the additional "custom" type
|
|
|
|
// Inno Setup requires the "custom" type
|
|
|
|
cmCPackInnoSetupKeyValuePairs customTypeParams;
|
|
|
|
cmCPackInnoSetupKeyValuePairs params;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
params["Name"] = "\"custom\"";
|
|
|
|
customTypeParams["Name"] = "\"custom\"";
|
|
|
|
params["Description"] = "\"{code:CPackGetCustomInstallationMessage}\"";
|
|
|
|
customTypeParams["Description"] =
|
|
|
|
params["Flags"] = "iscustom";
|
|
|
|
"\"{code:CPackGetCustomInstallationMessage}\"";
|
|
|
|
|
|
|
|
customTypeParams["Flags"] = "iscustom";
|
|
|
|
|
|
|
|
|
|
|
|
allTypes.push_back("custom");
|
|
|
|
allTypes.push_back("custom");
|
|
|
|
typeInstructions.push_back(ISKeyValueLine(params));
|
|
|
|
typeInstructions.push_back(ISKeyValueLine(customTypeParams));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Components
|
|
|
|
// Components
|
|
|
|
std::vector<cmCPackComponent*> downloadedComponents;
|
|
|
|
std::vector<cmCPackComponent*> downloadedComponents;
|
|
|
|