This is my c# code to use the justdownload command
private string AutoUpdaterJustDownload()
{
Process process = Process.Start(_updaterPath, " /silentall -nofreqcheck -justdownload -url http://mydeploymentsite.com/myapp.msi");
process.WaitForExit();
string updatestatus = process.ExitCode.ToString();
process.Close();
return updatestatus;
}
The exit code is 0 if it finds the updated file and the process does not wait for its exit. It also brings up the download UI minimized. I thought /silentall would prevent the UI from showing up and I'd get a return code of 0 after the file was finished downloading. I'd like to download it in the background and prompt the user to update once the download is done. Is there a way to see if the update is done?
Also, my server txt file shows 2 versions, the current version and the new version. When the download UI shows, it always shows 2 files, but there is only 1 msi. We do not plan to have multiple versions available, we keep all clients on the same version. Is it best to create the update file to only ever have the most current version in it?
Is there a way to launch to download UI with the buttons disabled?
Thanks,
Scott
FOLLOW US
Get the latest news in Application Packaging