Restart after Uninstall (.ini)

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey for Windows 4.

Moderators: Gurus, Addon Administrators

sterlingm
Posts: 27
Joined: Wed Feb 19, 2020 4:54 pm

Restart after Uninstall (.ini)

Post by sterlingm »

Some addons have the user restart MediaMonkey after they are installed.
From the install.ini file it looks like this line:

Function=OnStartup()

I would like to have the user restart MediaMonkey after they uninstall the addon. This way the panels are closed and the settings are wiped. Using the same code causes an "unknown name" error and uninstall fails. Take out that line and uninstall works as originally set but without a restart of MM.

I looked through the code samples on the wiki for scripts and could not find anything on this.

What is the code in the uninstall.ini to restart MM?

Thank you,
-Sterling