![]() |
![]() ![]() ![]() |
acAutoUpgrader component.
|
property RestartParams: String;
|
The RestartParams property specifies the command-line arguments which should be used on restarting the updated application. When the application receives these command-line parameters (on restarting after update) it triggers OnAfterRestart event.
|
|
![]() |
|
For example, you think that local update is better done by a setup program. So you just need to download the setup file and execute it with "silent installation" command line option. The setup will locally extract all required files then run the main program upon completion.
|
|
Let suppose you are using Inno Setup (http://www.jrsoftware.org/isinfo.htm). Then just set the RestartParams property to "/silent" or "/verysilent" and point the #url in the InfoFile to your setup file.
|
|
![]() |
OnAfterRestart event, UpgradeMethod property;
|
InfoFile example.
|