Page 1 of 1

Uninstalling/installing via package

Posted: Mon Mar 10, 2014 5:49 pm
by icesteruk
I have this below working fine but seem to have an error when i do run it.
Code: [show] | [select all] lua
updater.package = "mysystem"

uninstallPackage(Updater.package)

installPackage(Updater.file_path .."/".. Updater.package .. ".xml")
But I recently noticed it always 'installs' the new package after my other script packages so I get errors, Any idea to make this install first? so my other packages load correctly?

At start its,

Mysystem
Myfolder
Colors

When I've ran the uninstall/install package it looks like

Myfolder
Colors
Mysystem...

Any idea on how to fix this? as other than that it works perfect for what im after

Re: Uninstalling/installing via package

Posted: Tue Mar 11, 2014 11:25 am
by keneanung

Re: Uninstalling/installing via package

Posted: Tue Mar 11, 2014 5:34 pm
by icesteruk
ah, dnot really understand that but I'll look into it more.. thanks