newsticker_32.png \
)
{
- # This is our uninstall callback: it will be called by KVIrc when addon.uninstall is invoked
- newsticker::core::uninstall
}
-addon.setconfigurecallback(newsticker)
-{
- newsticker::configure
-}
-
-
# Get the path that this script was launched from
%mypath = $file.extractPath($0)
-# The installer will copy our files and generate automatically an uninstallation alias for them
-%installer = $new(installer,0,myinstaller)
+addon.installfiles "newsticker" "pics" %mypath/pics/*.png
+addon.installfiles "newsticker" "locale" %mypath/locale/*.mo
-# copy files in each subdirectory
-# the pics
-%installer->$copyFiles("%mypath/pics/","*.png",$file.localdir("pics"))
-%installer->$copyFiles("%mypath/locale/","*.mo",$file.localdir("locale"))
-
-# then generate the uninstall alias
-%installer->$generateUninstallAlias("newsticker::core::uninstall")
+addon.setconfigurecallback(newsticker)
+{
+ newsticker::configure
+}
-# finally kill the installer helper
-delete %installer
# Fetch the script now