Install application by file sync rules

DG
Damien, GROS
NEOPOST SHIPPING

Hi all,

SOTI version : 13.3.0.3965

TC57 : Android 8.1


I need to be able to install an application by the file sync rule. So I create a rule containing my package file which is pushed on my terminal and installs properly via a script.

I am asked to see the possibility of blocking the installation of the package as long as a specific file is in a specific folder as well.

The if command not working on android, I am blocked.

how would it be possible to check this before installing on Android?

Regards

6 years ago
Android
ANSWERS
RC
Raymond Chan Diamond Contributor
6 years ago

As far as I know, this is currently not possible, not until the script engine is updated with some new features requested long time ago.

DG
Damien, GROS
6 years ago

Thanks for the answer, do we know if this update of the script engine is planned in the short or medium term?

MD
Matt Dermody Diamond Contributor
6 years ago

You might be able to accomplish your goal with Virtual Groups, depending on the makeup of the file you're referring to. You can use Custom Data to extract a value from an XML or INI file on the device and then use that Custom Data as a criteria for a Virtual Group. File Sync Rules can target Virtual Groups, unlike a Profiles. 

DG
Damien, GROS
6 years ago
 
 
I thought about using custom data.
But trying to set one, it does not go back.
here is my setting: INI://%sdcard%\download\SOTI.ini?SC=identification&NM=lock
soti.ini :

[identification]
lock=OUI
I see the column that is added but the value does not go back.


Regards
MD
Matt Dermody Diamond Contributor
6 years ago

The formatting looks correct other than maybe the capitalization of the soti.ini file, although I'm not sure if that even matters. Do you see any Custom Data related errors in the device logs after that has been configured?

DG
Damien, GROS
6 years ago

I will this error now :

Error message received from device (Unable to parse custom data URI INI://\sdcard\SOTI.ini?SC=identification&NM=lock)

MD
Matt Dermody Diamond Contributor
6 years ago

Try the slashes the other way for Android:

INI:///sdcard/SOTI.ini?SC=identification&NM=lock

DG
Damien, GROS
6 years ago

It works thanks Matt

S
Scott
6 years ago (edited 6 years ago)

Depending on how tight the linkages, be prepared for some difficult timing issues with this method.  File sync rules and checkins don't necessarily happen at the same time and a custom data value that changes won't affect things on the sync cycle that it's read, but the next one.  Additionally, the search engine that drives virtual group membership is not always reliable either.  I have had instances where I have had to go into the Search Sync Interval control and hit the Refresh button before virtual groups get updated.  It generally works but this route will probably require some vigilance on your part.