% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/App.R
\name{rdesk_auto_update}
\alias{rdesk_auto_update}
\title{Automatically check for and install app updates}
\usage{
rdesk_auto_update(
  version_url,
  download_url,
  current_version,
  silent = FALSE,
  app = NULL
)
}
\arguments{
\item{version_url}{URL to a plain text file containing the latest version string (e.g., "1.1.0")}

\item{download_url}{URL to the latest installer .exe}

\item{current_version}{Current app version string e.g. "1.0.0"}

\item{silent}{If TRUE, downloads and installs without prompting. Default FALSE.}

\item{app}{Optional App instance for showing toast notifications.}
}
\value{
Invisible TRUE if update was applied, FALSE otherwise.
}
\description{
\code{rdesk_auto_update} is a high-level function designed for bundled (standalone)
applications. It checks a remote version string, compares it with the current
version, and if a newer version is found, it downloads and executes the installer
silently before quitting the current application.
}
