3
Vote

Disable automatic switching of install sequence upon reboot

description

If the bootstrapper rebooted the box, it shouldn't switch sequence automatically to uninstall. This code is wrong:

void InstallerUI::LoadComponents()
{
m_all = LoadComponentsList();

// load xml file
InstallConfiguration * p_configuration = reinterpret_cast<InstallConfiguration *>(get(m_configuration));
CHECK_BOOL(p_configuration != NULL, L"Invalid configuration");

if (InstallerSession::Instance->sequence == SequenceInstall && m_all && p_configuration->supports_uninstall)
{
    LOG("All components installed, switching to uninstall.");
    InstallerSession::Instance->sequence = SequenceUninstall;
    m_all = LoadComponentsList();
    if (m_all)
    {
        LOG("All components uninstalled, nothing to do.");
        InstallerSession::Instance->sequence = SequenceInstall;
    }
}
}

See http://dotnetinstaller.codeplex.com/discussions/249031

comments

oferb00 wrote May 8, 2013 at 11:39 AM

??