Page 1 of 2
Synchronize updates if there is novelties on the server
Posted: May 30th, 2020, 10:52 am
by Boni
Hi CSPro Team !!!!
For my project, I want to combine data synchronization on Dropbox and updates download functions. The problem is, each time the interviewer synchronize data, the program downloads the applications from server as if there is a change on these applications.
So, I would like to know how to write the program so that it checks on the server, if the applications have been changed compared to the applications on the Tablet before downloading updates, if not synchronize only the data and then exit ?
Thanks you.
Re: Synchronize updates if there is novelties on the server
Posted: May 30th, 2020, 7:21 pm
by josh
In CSPro 7.4 you can use the syncapp() (
https://www.csprousers.org/help/CSPro/s ... ction.html) function to update the application from the server only when it has changed. Note that it will show a message that it is connecting to the server and getting the application but if the application has not changed on the server then all it is doing is checking to see if the server has an update. It does not download anything that is not new.
In earlier versions of CSPro if you are using syncfile() to download the application files (pen and pff) they also only download the files if the server version is different from the local version. As with the above, it does show a message that it is getting the files but it is only checking to see if they are different.
Re: Synchronize updates if there is novelties on the server
Posted: May 31st, 2020, 6:37 am
by Boni
Thank you mister Josh !!
I just tried the syncApp function, I can't do it. I put my application packages installed with Deploy Applications tool on Dropbox, I also copies the same file deployed on my mobile device. when i try to synchronize to download updates, I'm recovering this message
Re: Synchronize updates if there is novelties on the server
Posted: May 31st, 2020, 9:35 am
by Boni
Boni wrote: May 31st, 2020, 6:37 am
Thank you mister Josh !!
I just tried the syncApp function, I can't do it. I put my application packages installed with Deploy Applications tool on Dropbox, I also copies the same file deployed on my mobile device. when i try to synchronize to download updates, I'm recovering this message
I realized that I had not correctly deployed the application. Instead of deploying to the server over the Internet, I did it locally and I loaded the folder obtained on the server.
But my problem is still not set. Trying to deploy the application on server over the internet, it doesn't work, I get this message. I don't understand anything.
Re: Synchronize updates if there is novelties on the server
Posted: June 1st, 2020, 8:53 am
by josh
Please check in the folder C:\Program Files (x86)\CSPro 7.4 to see if you can find the file DropboxAuth.exe. If it is not there that would explain the error you are getting. If it is not there please check if your antivirus program might have removed the file or placed it in a quarentine. If the file is there please try running it by double clicking on it. If it runs it should launch the web browser and show the Dropbox login. If it does not please let us know if you get any errors.
Re: Synchronize updates if there is novelties on the server
Posted: June 1st, 2020, 5:05 pm
by Boni
The file exists in the specified folder. When I try running it by double clicking, it doesn't run to launch the web browser, I rather receive failure message.
Thanks.
Re: Synchronize updates if there is novelties on the server
Posted: June 1st, 2020, 9:21 pm
by josh
The error message in the back is the one that might be useful. Can you move the front dialog box out of the way and post the screenshot of the error message in the back?
Also what version of Windows are you using? What is your default web browser?
Finally, make sure that you have a recent version of the .NET framework. Version 4.7.2 or above. You can download installers from
https://dotnet.microsoft.com/download/dotnet-framework
Re: Synchronize updates if there is novelties on the server
Posted: June 2nd, 2020, 5:59 am
by Boni
Dear Josh ! It works now, it was the web browser problem, if not, I have version 4.8 of .NET framework.
Thank you very much.
I sent you a project by email, for another problem. Thanks to look over the project.
Re: Synchronize updates if there is novelties on the server
Posted: June 2nd, 2020, 6:59 am
by josh
Glad to hear it is working. What did you do to fix the problem with the web browser? That will help anyone else who encounters the same error.
Re: Synchronize updates if there is novelties on the server
Posted: June 2nd, 2020, 9:06 am
by Boni
As you suggested, I checked my default web browser, it was "Internet Explorer" which was saved as default web browser, so I changed it by "Google Chrome". It work correctly now. Thanks