Пример #1
0
 private void FinishStep_Entering(object sender, ChangeStepEventArgs e)
 {
     if (mode == InstallationMode.Uninstall)
     {
         label_Hint.Hide();
     }
 }
 private void FinishStep_Finish(object sender, ChangeStepEventArgs e)
 {
     if (cbRunNow.Checked)
         Process.Start(string.Format(Gui.Properties.Resources.FinishStepCommand, MsiConnection.Instance.GetPath("INSTALLLOCATION")));
     if (cbRestartNow.Checked)
         SetupHelper.Restart(this, RestartOptions.Schedule | RestartOptions.NoAsk);
 }
Пример #3
0
 private void FinishStep_Finish(object sender, ChangeStepEventArgs e)
 {
     if (cbRunNow.Checked)
     {
         Process.Start(string.Format(Gui.Properties.Resources.FinishStepCommand, MsiConnection.Instance.GetPath("INSTALLLOCATION")));
     }
 }
Пример #4
0
 private void FinishStep_Finish(object sender, ChangeStepEventArgs e)
 {
     if (mode == InstallationMode.Install ||
         mode == InstallationMode.Upgrade)
     {
         LaunchWaveface();
     }
 }
Пример #5
0
        private void FinishStep_Finish(object sender, ChangeStepEventArgs e)
        {
            if (cbRunNow.Checked && cbRunNow.Visible)
            {
                var program = string.Format(Gui.Properties.Resources.FinishStepCommand, MsiConnection.Instance.GetPath("INSTALLLOCATION"));
                UACHelper.CreateProcessAsStandardUser(program, "");
            }

            if (mode == InstallationMode.Install)
            {
                Microsoft.Win32.Registry.SetValue(@"HKEY_CURRENT_USER\Software\BunnyHome", "ResourceFolder", Wizard.GetVariable <string>("resourceFolder"));
            }
        }
Пример #6
0
 private void InstallationLocationStep1_MoveNext(object sender, ChangeStepEventArgs e)
 {
     Wizard.SetVariable <string>("resourceFolder", location.Text);
 }
Пример #7
0
 private void InstallationLocationStep1_Entering(object sender, ChangeStepEventArgs e)
 {
     location.Text = Path.Combine(Environment.GetEnvironmentVariable("UserProfile"), "Favorite Home");
 }
 private void InstallationModeStep_MoveNext(object sender, ChangeStepEventArgs e)
 {
     Wizard.LifecycleAction(LifecycleActionType.ModeSelected, imsModes.SelectedMode);
 }
Пример #9
0
 private void InstallationLocationStep_Entering(object sender, ChangeStepEventArgs e)
 {
     //if (!Wizard.GetVariable<bool>("CustomInstallation"))
     //    Wizard.ContinueMove();
 }
Пример #10
0
 private void InstallationModeStep_OnNext(object sender, ChangeStepEventArgs e)
 {
     Wizard.LifecycleAction(LifecycleActionType.ModeSelected, imsModes.SelectedMode);
 }
 private void InstallationLocationStep_Entering(object sender, ChangeStepEventArgs e)
 {
     if (Globals.GetVariable<bool?>("CustomInstallation") == false)
         Wizard.ContinueMove();
 }
 private void FinishStep_Entering(object sender, ChangeStepEventArgs e)
 {
     cbRunNow.Visible = cbRunNow.Checked = Globals.GetVariable<bool>("AllowRunOnFinish") && !MsiConnection.Instance.RebootRequired;
     cbRestartNow.Visible = cbRestartNow.Checked = (MsiConnection.Instance.RebootRequired || PrerequisiteManager.Instance.GetProperty(StandardProperties.RebootRequired, false)) && !SetupHelper.GetCommandLineOption("sssp.norestart", false);
 }
 private void WelcomeStep_OnNext(object sender, ChangeStepEventArgs e)
 {
     Wizard.LifecycleAction(LifecycleActionType.ModeSelected, mode);
 }
Пример #14
0
 private void FinishStep_Entering(object sender, ChangeStepEventArgs e)
 {
     cbRunNow.Visible = Wizard.GetVariable <bool>("AllowRunOnFinish");
 }
 private void WelcomeStep_MoveNext(object sender, ChangeStepEventArgs e)
 {
     Wizard.LifecycleAction(LifecycleActionType.ModeSelected, mode);
 }