Пример #1
0
        private static void LaunchWaveface()
        {
            string installDir = MsiConnection.Instance.GetPath("INSTALLLOCATION");
            string filePath   = Path.Combine(installDir, "StationSystemTray.exe");

            UACHelper.CreateProcessAsStandardUser(filePath, "");
        }
Пример #2
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"));
            }
        }