NigelShaw
Posts: 58
Joined: Wed Apr 01, 2015 12:45 am

Updater - Suppress 'hide update options'

Wed Aug 17, 2022 8:30 pm

Hey

Ok so i have my around this now, hopefully this will be my final question?

I dont want to see the 'checking for updates' dialog so have added a command like this in vb.net to my solution-

Code: Select all

Dim p1 As Process = Process.Start(updateModultPath, "/justcheck")
p1.WaitForExit()
Dim ret As Decimal = p1.ExitCode

If ret = 0 Then
  Dim p2 As Process = Process.Start(updateModulePath, "/silent")
  p2.WaitForExit()
End If
This works and only if there is an update, will i get a visual dialog however, the dialog offers the user to cancel, install or remind tomorrow. Is there a way to remove this options and just do the following-

Check if there is an update
if no update, do nothing and do not show any 'checking for updates' dialogs
if there is an update, show a dialog of the update found and install it without any cancel or reminder etc

Is that possible? i couldnt see anything in the command lines that fitted



thanks

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Updater - Suppress 'hide update options'

Wed Aug 24, 2022 1:19 pm

Hello,
if there is an update, show a dialog of the update found and install it without any cancel or reminder etc
I'm afraid it is not possible to alter the Updater's UI - i.e. removing the "Cancel" button.

Please let me know if there is anything else I could help you with.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”