How to create a patch to update few files(say 3) of an app. - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

pintu.bppimt
Posts: 6
Joined: Fri Mar 11, 2011 10:03 am

How to create a patch to update few files(say 3) of an app.

Hi! friends,
I'm using advanced installer for the 1st time and facing a problem. I am here for some light. My requirement is -
I have an offline app. which registered user can download from a server. If any up gradation is made in the offline application i will put it in server. I have to put those newly added or modified files to the user machines when the user get connected with the internet . I think patch can help me to do this. The concept is like the way anti virus software is installed and updated from server. So please help me how to create the patch for this purpose.

Thanks,
Pintu
Last edited by pintu.bppimt on Mon Mar 14, 2011 4:52 pm, edited 2 times in total.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to create a patch to update few files(say 3) of an app.

Hello Pintu and welcome to the Advanced Installer Forums,

I have answered a similar question just now. Please follow this thread to see my answer.
The concept is like the way anti virus software is installed and updated from server.
An antivirus software may download only a few database files to perform an upgrade, whereas our auto-updater downloads either a patch or major upgrade install package which performs the upgrade on the target machine.

Let us know if you have any questions.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pintu.bppimt
Posts: 6
Joined: Fri Mar 11, 2011 10:03 am

Re: How to create a patch to update few files(say 3) of an app.

Hi Mihai,

Very very thanks to you for your prompt replay. I have able to create the patch and use it successfully from your thread and tutorial available and it works fine. But my requirement is that my application must have the ability to check for patch automatically (say once in a week) and when it detects it has to be automatically install it in client machine. Here is one important event is during the up gradation some old file can't be deleted.
Does updater of Advanced installer will serve my objective? I am creating a sample application of Updater and when click on the "check for update " getting the error message "Invalid command line".

Here is the update configuration file-
;aiu;

[Update]
Name=Update-v1
URL=http://localhost:8080/updateFiles/
Size=7
MD5=56b6f09c50bfb4706563cdf3463a6cc3
CommandLine=/qn
ServerFileName=updateConfig.txt
RegistryKey=HKLM\SOFTWARE\ABC\Tutorial Application\Settings\AppPath
Version=1.0.0


Waiting for solution ...........
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to create a patch to update few files(say 3) of an app.

Hi Pintu,
But my requirement is that my application must have the ability to check for patch automatically (say once in a week) and when it detects it has to be automatically install it in client machine.
You can schedule the auto-updater to perform a check from the Updater Page in the Run Updater section.
Here is one important event is during the up gradation some old file can't be deleted.
Here is an article from our user guide that can help you achieve this functionality.
I am creating a sample application of Updater and when click on the "check for update " getting the error message "Invalid command line".
Our auto-updater must run with the appropriate command line. This is described in our tutorial and detailed in this article from our user guide.
Our tutorial uses this command line:

Code: Select all

/checknow
Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”