When push apk...update or uninstall/install?

Solved
JW

Hi.

android tc52x 

mobicontrol 15.6

I use mc pkg studio to push new apk updates for our app.
I use js for my prei (and other) scripts.

A practical example would best describe my question.

App (apk) current version on scanner: v2.0

New app (apk) version to be pushed: v3.0

Sometimes it will uninstall v2.0 then install v3.0

Other times it will update v2.0 to v3.0.

Updates seem to really crash it so then I have to manually uninstall then Force Package Reinstallation from Soti.

1. What determines whether it does an uninstall or update?
2. What js command can I use to force our application to uninstall first (in the prei cmd script)?

thanks!

3 years ago
Android
ANSWERS