コード例 #1
0
        private void MyInstaller_AfterUninstall(object sender, InstallEventArgs e)
        {
            string regAll     = @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run";
            bool   isSuccess  = RegisterTool.DeleteValue(regAll, AppName);
            string regCurrent = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run";

            isSuccess = RegisterTool.DeleteValue(regCurrent, AppName);
        }
コード例 #2
0
        private void MyInstaller_AfterInstall(object sender, InstallEventArgs e)
        {
            string regAll     = @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run";
            bool   isSuccess  = RegisterTool.SetValue(regAll, AppName, AppFile);
            string regCurrent = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run";

            isSuccess = RegisterTool.SetValue(regCurrent, AppName, AppFile);

            System.Diagnostics.ProcessStartInfo psiConfig = new System.Diagnostics.ProcessStartInfo(this.Context.Parameters["targetdir"] + "\\DesktopWeather.exe");

            System.Diagnostics.Process pConfig = System.Diagnostics.Process.Start(psiConfig);
        }