|
|
|
|
Functions
Events
MioScript Reference
|
|
Syntax
| app.uninstall(appName, appId, allUsers, closeWhenCompleted) |
Parameters
| STRING | appName | Application Name. You should use the string {APP_NAME} as shown in the sample below.
| | STRING | appId | Application ID. You should use the string {APP_ID} as shown in the sample below.
| | BOOL | allUsers | Optional. Default is false: the shortcuts are added for the current user. If set to true, shortcuts are added to all users.
| | BOOL | closeWhenCompleted | Optional. Default is false: If set to true, the application is closed when uninstall is completed. |
Return value
No value is returned.
Description
Uninstalls silently the application from where it was installed by the user, or silently with app.install.
Warning: This function should not be called directly except if you are sure the application have full admin rights.
The following tasks are done:
remove the registry key created at install
remove the standard fies. If you have installed additional files via the installer or at run-time, you should remove the files before calling this function.
remove the folder, if not empty.
To prevent errors this function remove only known files such as application files, log files, local data, etc.
Important: The uninstallation is not processed immediately after the call of the function. If the application must be closed, use the corresponding parameter, or you may close the application before the uninstall is completed. |
MioScript Sample Code
app.uninstall("{APP_NAME}", "{APP_ID}") |
|
|
|