Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | app.uninstall SEARCH    

  Functions
app.autoRestart
app.booster
app.cancelClose
app.close
app.filename
app.getParam
app.icon
app.init
app.install
app.language
app.maintenance
app.minimize
app.name
app.openAtStartup
app.restart
app.restore
app.setup
app.title
app.uninstall
app.uninstall.create
app.uninstall.remove

  Events
event.initialize
event.load
event.terminate

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
app.uninstall

Language: MioScript
Product: MioFactory


Syntax

app.uninstall(appName, appId, allUsers, closeWhenCompleted)


Parameters

STRINGappNameApplication Name. You should use the string {APP_NAME} as shown in the sample below.
STRINGappIdApplication ID. You should use the string {APP_ID} as shown in the sample below.
BOOLallUsersOptional.
Default is false: the shortcuts are added for the current user.
If set to true, shortcuts are added to all users.
BOOLcloseWhenCompletedOptional.
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}")