You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(MessageBox.Show("Windows Update Service is not available, try to start it?",Program.APP_TITLE,MessageBoxButtons.YesNo,MessageBoxIcon.Question)==DialogResult.Yes){
107
+
if(MessageBox.Show("Windows Update Service is not available, try to start it?",Updater.ApplicationTitle,MessageBoxButtons.YesNo,MessageBoxIcon.Question)==DialogResult.Yes){
106
108
agent.EnableWuAuServ();
107
109
agent.Init();
108
110
}
@@ -245,7 +247,8 @@ public MainForm() {
245
247
varmenuHandle=GetSystemMenu(Handle,false);// Note: to restore default set true
246
248
InsertMenu(menuHandle,5,MfByposition|MfSeparator,0,string.Empty);// <-- Add a menu separator
//will display prompt only if update available & when main form displayed
267
+
vartimer=newTimer();
268
+
timer.Interval=1000;
269
+
timer.Tick+=(_,_)=>{
270
+
timer.Enabled=false;
271
+
timer.Enabled=!Updater.CheckForUpdates(true);
272
+
};
273
+
timer.Enabled=true;
274
+
262
275
}
263
276
277
+
protectedoverridevoidWndProc(refMessagem){
278
+
279
+
base.WndProc(refm);
280
+
if(m.Msg==WmSyscommand){
281
+
switch((int)m.WParam){
282
+
caseSysMenuAboutId:
283
+
varasm=GetType().Assembly;
284
+
MessageBox.Show($"{Updater.ApplicationTitle}{asm.GetName().Version.ToString(3)}{(Environment.Is64BitProcess?"x64":"x32")}\nWritten by Sergiy Egoshyn (egoshin.sergey@gmail.com)",Updater.ApplicationTitle,MessageBoxButtons.OK,MessageBoxIcon.Information);
notifyIcon.ShowBalloonTip(int.MaxValue,"Please Check For Updates",
307
-
$"{Program.APP_TITLE} couldn't check for updates for {daysDue} days, please check for updates manually and resolve possible issues",ToolTipIcon.Warning);
340
+
$"{Updater.ApplicationTitle} couldn't check for updates for {daysDue} days, please check for updates manually and resolve possible issues",ToolTipIcon.Warning);
MessageBox.Show("Administrator privileges are required in order to download updates using windows update services. Use 'Manual' download instead.",Program.APP_TITLE,MessageBoxButtons.OK,MessageBoxIcon.Information);
766
+
MessageBox.Show("Administrator privileges are required in order to download updates using windows update services. Use 'Manual' download instead.",Updater.ApplicationTitle,MessageBoxButtons.OK,MessageBoxIcon.Information);
MessageBox.Show("Administrator privileges are required in order to install updates.",Program.APP_TITLE,MessageBoxButtons.OK,MessageBoxIcon.Information);
782
+
MessageBox.Show("Administrator privileges are required in order to install updates.",Updater.ApplicationTitle,MessageBoxButtons.OK,MessageBoxIcon.Information);
MessageBox.Show("Administrator privileges are required in order to remove updates.",Program.APP_TITLE,MessageBoxButtons.OK,MessageBoxIcon.Information);
798
+
MessageBox.Show("Administrator privileges are required in order to remove updates.",Updater.ApplicationTitle,MessageBoxButtons.OK,MessageBoxIcon.Information);
MessageBox.Show("For the new configuration to fully take effect a reboot is required.",Program.APP_TITLE,MessageBoxButtons.OK,MessageBoxIcon.Information);
1044
+
MessageBox.Show("For the new configuration to fully take effect a reboot is required.",Updater.ApplicationTitle,MessageBoxButtons.OK,MessageBoxIcon.Information);
switch(MessageBox.Show("Your version of Windows does not respect the standard GPO's, to keep automatic Windows updates blocked, update facilitation services must be disabled.",Program.APP_TITLE,MessageBoxButtons.YesNoCancel,MessageBoxIcon.Warning)){
1073
+
switch(MessageBox.Show("Your version of Windows does not respect the standard GPO's, to keep automatic Windows updates blocked, update facilitation services must be disabled.",Updater.ApplicationTitle,MessageBoxButtons.YesNoCancel,MessageBoxIcon.Warning)){
1041
1074
caseDialogResult.Yes:
1042
1075
chkDisableAU.Checked=true;// Note: this triggers chkDisableAU_CheckedChanged
0 commit comments