|
|
@ -32,12 +32,9 @@ void Wizard::InstallationPage::initializePage()
|
|
|
|
// That way installing all three components would yield 300%
|
|
|
|
// That way installing all three components would yield 300%
|
|
|
|
// When one component is done the bar will be filled by 33%
|
|
|
|
// When one component is done the bar will be filled by 33%
|
|
|
|
|
|
|
|
|
|
|
|
if (field("installation.new").toBool() == true)
|
|
|
|
if (field("installation.new").toBool() == true) {
|
|
|
|
{
|
|
|
|
|
|
|
|
installProgressBar->setMaximum((components.count() * 100));
|
|
|
|
installProgressBar->setMaximum((components.count() * 100));
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (components.contains(QLatin1String("Tribunal"))
|
|
|
|
if (components.contains(QLatin1String("Tribunal"))
|
|
|
|
&& !mWizard->mInstallations[path]->hasTribunal)
|
|
|
|
&& !mWizard->mInstallations[path]->hasTribunal)
|
|
|
|
installProgressBar->setMaximum(100);
|
|
|
|
installProgressBar->setMaximum(100);
|
|
|
@ -59,8 +56,6 @@ void Wizard::InstallationPage::startInstallation()
|
|
|
|
mUnshield = new UnshieldWorker();
|
|
|
|
mUnshield = new UnshieldWorker();
|
|
|
|
mUnshield->moveToThread(thread);
|
|
|
|
mUnshield->moveToThread(thread);
|
|
|
|
|
|
|
|
|
|
|
|
qRegisterMetaType<Wizard::Component>("Wizard::Component");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
connect(thread, SIGNAL(started()),
|
|
|
|
connect(thread, SIGNAL(started()),
|
|
|
|
mUnshield, SLOT(extract()));
|
|
|
|
mUnshield, SLOT(extract()));
|
|
|
|
|
|
|
|
|
|
|
@ -125,11 +120,9 @@ void Wizard::InstallationPage::startInstallation()
|
|
|
|
|
|
|
|
|
|
|
|
if (language == QLatin1String("Polish")) {
|
|
|
|
if (language == QLatin1String("Polish")) {
|
|
|
|
mUnshield->setIniCodec(QTextCodec::codecForName("windows-1250"));
|
|
|
|
mUnshield->setIniCodec(QTextCodec::codecForName("windows-1250"));
|
|
|
|
}
|
|
|
|
} else if (language == QLatin1String("Russian")) {
|
|
|
|
else if (language == QLatin1String("Russian")) {
|
|
|
|
|
|
|
|
mUnshield->setIniCodec(QTextCodec::codecForName("windows-1251"));
|
|
|
|
mUnshield->setIniCodec(QTextCodec::codecForName("windows-1251"));
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
else {
|
|
|
|
|
|
|
|
mUnshield->setIniCodec(QTextCodec::codecForName("windows-1252"));
|
|
|
|
mUnshield->setIniCodec(QTextCodec::codecForName("windows-1252"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|