Updater mechanisim - Advanced Installer Community
eitanElmalam
Posts: 29
Joined: Wed Jul 30, 2014 12:02 pm

Updater mechanisim

Hello,

I install the software from my site on my computer , is a desktop application.
I put on the server the configuration file and after I install the version 1.0.0
I put in the site in same place the application version 1.0.1
I update the configuration file with version 1.0.1 and from where to download the update.
version 1.0.0 is point to the configuration file and define to check it every 1 day.
Now I want to know if the mechanisim working , what I need to do ?? I need to wait 24 hours and see if I have update.
I want that is will check now to know if the mechanisim working.


Thanks
Eitan Elmalam
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Updater mechanisim

Hello Eitan,

If you set the Silent mode update check frequency for one day, the update will not be triggered automatically, it will be triggered manual, from the application or using a shortcut.
If the check frequency has not passed or there are no updates available, the Updater will exit immediately.

You can search for available updates using the shortcut.

If you want to automatically search for updates, then you can select the Automatic: using a Windows scheduled task option for the Updater Execution. A Windows scheduled task will be created for Auto Updater executable file.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eitanElmalam
Posts: 29
Joined: Wed Jul 30, 2014 12:02 pm

Re: Updater mechanisim

Hello

Regular user do not know that he need to run exe file to get updating, and most of the application do not working like that.
It always automatic, the user get popup for it.
But the Automatic option is only for Enterpise package and not for Java package.
It very expansive for me enterpise package and I do not need it , I need only JAVA package but I need this functionalaty.
Please help, if you help me with this I give my promise to buy the java package.

Thanks
Eitan Elmalam
eitanElmalam
Posts: 29
Joined: Wed Jul 30, 2014 12:02 pm

Re: Updater mechanisim

Hello

Which executable file I need to run, that will give me the update process.
I execute the application and the application open and nothing hapeend.
If you need I can sent you the configuration files.
If the update will run when I open the application is good enought for me.

Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Updater mechanisim

Hello,

Indeed, the Schedule task feature is available starting with the Enterprise edition of Advanced Installer.

Please note that you can integrate the updater with your Java application. Please take a look on the How do I integrate the Advanced Updater with my java application? article with related information for hints and guidance.

There are other approaches for this too.
For example, you can use the Schtasks.exe tool to create scheduled tasks.
You can launch this tool by using the predefined Launch file custom action.
Edit its properties like that:
  • File To Launch: C:\windows\system32\schtasks.exe
  • Command Line: /Create /SC weekly /D MON,TUE,WED,THU,FRI /TN MyDailyBackup /ST 23:00 /TR c:\backup.cmd /RU MyDomain\MyLogin /RP MyPassword
Please note that this custom action require administrative privileges.

Another approach is to create the schedule task programmatically, for example you can create your custom action as a custom action written in C# or a custom action written in C++. Please take a look on the Creating Scheduled Tasks article and on the Options to integrate and debug custom actions article which may be useful to you.

Then you can go in the “Custom Actions” page and add a predefined Launch attached file custom action with sequence. This type of custom action can execute an application (EXE or DLL) or run a script (VBScript or Java script). Also, the source file will be embedded in the MSI file but will not be deployed at install time with the other application files.

If you are interested in purchasing an Enterprise license key, you can contact us at support at advancedinstaller dot com and maybe we'll be able to offer you a discount.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eitanElmalam
Posts: 29
Joined: Wed Jul 30, 2014 12:02 pm

Re: Updater mechanisim

Hello,

First , thank you very much for the good advise.
I will try to put button for check Update .. and from the button execute the exe file of updater.
But my question is, how can I now where the customer install the application, and where the exe file is, on his mechine ?
If I do not know whrere is it , how can I run it.

Thanks
Eitan Elmalam
eitanElmalam
Posts: 29
Joined: Wed Jul 30, 2014 12:02 pm

Re: Updater mechanisim

Hello,

I define the updater frequency for 1 day.
After 2 days when I upload updating software in the server and update the configuration file.
I run manualy the updater exe file and I get popup "Invalid command line".
what is the reason , I was suppose to get updating process.

Thanks.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Updater mechanisim

Hello Eitan,
But my question is, how can I now where the customer install the application, and where the exe file is, on his mechine ?
By default, Advanced Installer will save the APPDIR property in the registry page. The APPDIR is the path of the Application Folder in the Files and Folders page (it is usually the main installation folder).
I run manualy the updater exe file and I get popup "Invalid command line".
Please note that the Updater requires one of the predefined command line parameters to work correctly.
The User Guide also contains a tutorial for using the Updater which may help you.

In order to have a better view about this, please send us the .AIP(project file) and the updates configuration file.

Please let me know if that helped, otherwise give me more details.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eitanElmalam
Posts: 29
Joined: Wed Jul 30, 2014 12:02 pm

Re: Updater mechanisim

Hello,

Thanks it's help.
It find me an update when I choose the update, it give me error "Wrong file size" what is the reason ?

Thanks
Eitan Elmalam
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Updater mechanisim

Hi Eitan,

This may happens if the downloaded package does not have the same size as the package selected in the New Updates File.
Please make sure that you have configured properly your updates configuration project.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eitanElmalam
Posts: 29
Joined: Wed Jul 30, 2014 12:02 pm

Re: Updater mechanisim

Hello,

Thanks I fix the configuration file and the update process finish and it's install the new update software properly.
But I do not know why in the end after the installation it write to me the "The process end with failor" something like this ..
But the installation working fine and I have the new update , why it give error in the end ?
Did you have some log file I can check if have a problem ?? and tell you .

Thanks
Eitan Elmalam
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Updater mechanisim

Hi Eitan,

If you received the "Some of the updates failed to install properly" message, then, this is happening because the install condition is not met after the update is installed.

Please note that any update defined in the Updates Configuration file uses a detection criteria. This criteria is usually a file or a registry entry which contains the package version. If it's not met after the update is installed, the Updater will show this message. Therefore, you need to make sure you specified a correct file or registry entry in the Installed Detection section of the Update Properties page.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”