private static void LaunchWaveface() { string installDir = MsiConnection.Instance.GetPath("INSTALLLOCATION"); string filePath = Path.Combine(installDir, "StationSystemTray.exe"); UACHelper.CreateProcessAsStandardUser(filePath, ""); }
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")); } }