robinsong
Posts: 1
Joined: Tue Apr 15, 2008 8:53 pm

updater.ini not pulling a new exe from server

I am trying to us the updater.ini feature from inside my application but it does not want to pull a new version down from the server. I am using your c# code converted to VB

Private Sub CheckNow()
Dim process As Process = System.Diagnostics.Process.Start(updaterModulePath, "/checknow")
process.Close()
End Sub

It returns the message box "Your software is up to date" when in fact the version on my local machine is 1.5.3 and the server is 1.5.5. I delete the ini file from the server and it does not give me an error...so the software is not even checking the site for a new version. Is there code to check for a new version? Is it waiting a full day before checking for a new version?



Local Copy (updater.ini) (**** modified)
=================================================

;aiu;
[MDKBlastSoftware]
Name = MDK Blast Software
URL = http://www.blastingreports.com/*******/ ... ******.exe
Size = 4669440
Description = This is the latest version of MDK Blast Forms
FilePath = %ProgramFiles%\Mindoka\MDK Blast Forms\MDK-Blast Forms.exe
Version = 1.5.3
[General]
ApplicationName=MDK Blast Forms
DownloadsFolder=D:\Program Files\Mindoka\MDK Blast Forms\updates\
ID={FA56CF0E-AC68-4333-9A20-6A6C054C478D}
URL=http://www.blastingreports.com/
AppDir=D:\Program Files\Mindoka\MDK Blast Forms\
CheckFrequency=1
CompanyName=Mindoka



Server Copy (updater.ini)
============================================================

;aiu;

[MDKBlastSoftware]
Name=MDK Blast Forms
URL=http://www.blastingreports.com/applicat ... kblast.exe
Size=4764073
FilePath=[APPDIR]MDK-Blast Forms.exe
Version=1.5.5
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: updater.ini not pulling a new exe from server

Hi,

Here are the steps for updating an installation using the Auto Updater:

1) First, you need to create the first package
- you create the first package in which you setup the initial installation
- in the "Updater" page you check the "Enable Advanced Updater" option
- in the "Updates URL" field you will set the URL where the updates configuration file will be placed (for example: http://www.server.com/updates.txt)
- you integrate the Updater into your application (it should be launched when your application starts of by using a menu inside your application)
- you save and build the project (v1.msi)

2) After the first package has been distributed and installed you need to create the update
- you back-up the AIP of the first package
- you open it in Advanced Installer and in the "Product Details" page you increase the version (for example 1.0.1)
- when you go to another page you will be prompted about changing the product code
- in this dialog you select "Yes" because the update must have a different product code than the original package
- you update the package (add/modify files, registry keys etc.)
- you save the project using "Save As" and you build it (v2.msi)

3) When the updated package is complete you need to create the updates configuration file
- in Advanced Installer you create an "Updates Configuration" project
- in the "Updates" page you add the updated package (v2.msi)
- in the "Download URL" field you set the URL where the updated package is located (for example: http://www.server.com/v2.msi)
- in the "Installed Detection" section you set the detection criteria for the update (the version of the main EXE of your application or a registry value which contains the version of the package)
- in the "Media" page you set the name of the configuration file (updates.txt)
- you save and build the project

Now you place the updates configuration file (updates.txt) and the updated package (v2.msi) on the server (in the URLs you specified in the projects -> "www.server.com/") and you can update the first installation by launching your application (or using the menu which runs the Updater).

You can try our tutorial for the Auto Updater. Also, you can check out the available options and settings for the updater.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Rawand
Posts: 13
Joined: Tue Apr 08, 2008 2:33 pm

Re: updater.ini not pulling a new exe from server

Hi,
Im trying to configure an updater and have some problems, I configured as you described here but after downloading the v2.msi file it failes to install it, (i configured the v2 package to add one file to v1 installed package) i have a question
-do i need to keep everything that exist in v1 and add the file or its ok for v2 to only have the file i want to update with?

and the updater only downloads the .msi file and not the other files and folders that exist in the package which i think its the reason why cannot install the update, and one more question is
-the .msi suppose to download the other stuff in the package during installation or i have to configure them also?
Regards
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: updater.ini not pulling a new exe from server

Hi,
I configured as you described here but after downloading the v2.msi file it failes to install it
Can you please give me more details about this? What is the exact behavior you are encountering?
do i need to keep everything that exist in v1 and add the file or its ok for v2 to only have the file i want to update with?
Please note that the upgraded package must always be created by modifying the old one. If you use the automated upgrade feature (you perform a full upgrade) then the upgraded package can contain any files you want. However, only the files in the upgraded package will be present after the upgrade. Basically, the old package will be uninstalled and the new one will be installed.

If you use a patch, the upgraded package must contain all the resources in the target package. Also, the packages used to create a patch must respect some rules. Therefore, to answer to your question, it is recommended that the upgrade package contains all the resources in the target package.
the updater only downloads the .msi file and not the other files and folders that exist in the package
I'm not sure I understand what you mean. Please note that an update consists in only one file (for example a single MSI file which contains all the files of the installation).
the .msi suppose to download the other stuff in the package during installation or i have to configure them also?
I'm not sure I understand this. How did you configure your installation package? When you build your Advanced Installer project, what files are generated?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Rawand
Posts: 13
Joined: Tue Apr 08, 2008 2:33 pm

Re: updater.ini not pulling a new exe from server

Hi,
Thanks for your reply, Patch solves everything i disobayed some rules and now it works fine.

Return to “Common Problems”