gsukisubramaniam
Posts: 2
Joined: Tue Jul 13, 2010 5:39 pm

Auto Updater for client specific application

Hi,

I am developing a windows based application in vb.net with MSSQL server. The application after installing to different clients, i may have to work on customization for the application depending on the client requests. I would work on the software customization and i would release a new dll for the client. The same dll would not suit to another client. So, i will have to configure my auto updater such that the application should search for the updates which is intended to the specific client id and then if there is any update, it should execute.

How to configure such a setting using advanced installer auto updater. Please help me by giving a sample coding/ application if possible.

Thanks in advance,

Suki Subramaniam
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Auto Updater for client specific application

Hello,

You can achieve this behavior the following way:
- in your updates configuration file select your update
- under Installed Detection, detect by running a custom EXE
- the settings should be the following:

Code: Select all

  - EXE Path: [{<ProductCodeGUID>}{<ComponentIdGUID>}]YourCustomDetection.exe
  - Arguments: user=<your_user_id>
ProductCodeGUID is your application's product code
ComponentIdGUID is the GUID of the component holding the executable that is performing the check (YourCustomDetection.exe in our example)
your_user_id is the user id for which you are releasing your update.

Your custom detection executable will get the user id from the command line, check to see if the computer on which you are checking is that user id's computer. If it is, do the checks necessary to see if the update is installed. Set the exit code to be different from zero if the update is already installed, otherwise set to zero. If the computer is not the one, report the update as installed so it is skipped.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
gsukisubramaniam
Posts: 2
Joined: Tue Jul 13, 2010 5:39 pm

Re: Auto Updater for client specific application

Thanks for your response. I would like to add another query with the existing one.

The installed application in the customer's computer would have several dlls in application folder. (For Ex: C:/Programfiles/vertexinfocomm/Spinsoft/ ), where vertexinfocomm is the software manufacturer and the spinsoft is the application folder. Similar set of dlls will be maintained in the server location at the sofware vendor. Once if there is an update in the application, the corresponding dll will be changed and updated in the server lying in software vendor's place. Now, The dll in the software vendor will carry a different version and the dll in the client computer carries a different version.

This is the situation, where Advanced Installer should initiate the copying of dlls that is present in the server location and pasting the same in the local system(Client end). This function can be done either automatically or from a user initiative function. To Put it in a nut shell, i am looking at a updater similar to that of an antivirus software, where the antivirus signature updates get updated in the client computer. The only difference from that is - Here, every user will require different updates and there will be unique path/ folder maintained in the server for each and every individual client.

So, there is no exe that is getting installed and only file transfer is what required.

Please suggest as how to enable this configuration using Advanced installer.

Thanks and Regards,

Suki Subramaniam G
Vertex Infocomm.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Auto Updater for client specific application

Hello,

From what I understand, you want some sort of synchronization between your server and your client. If a file on the server changes, the change should reflect on the client machine too.
It is important to note that the updater was not designed to support this behavior.
However, perhaps you can make it work by following these steps:
- when you update the dll on the server, add a new entry for the update in your Updates Configuration project so that the updates.txt file on the server has the new update containing your change.
- when you create the new entry in your Updates Configuration project, use the client id as described in my previous post to specify which client the update is for
- make sure you have created the .exe that does the check on the client side

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Auto Updater for client specific application

Hello Suki,

I looked over the .pdf you sent us.
I believed you wanted to have a unique updates.txt file for all customers. If you want a separate updates.txt for each of your clients, skip to the Updates.txt separate for each client section.
Below is a detailed explanation of the methods you could employ to achieve the desired behavior:

Common updates.txt
The behavior I intended to suggest was the following:

1) On the first install, your installer would create a registry value holding the customer's ID
If the client has multiple computers, you need to make sure your installer generates the same customer IDs for all the customer's computers.

2) the server has the following structure:

Code: Select all

|- updates.txt
|- ClientIDs
    |
    --- 000C4e
    |     +-- client_specific_installer.msi     
    |
    --- 00Aq7h
    |     +-- client_specific_installer.msi     
    |
    --- 00V85d
           +-- client_specific_installer.msi     
The updates.txt file would be unique for all clients.

3) Whenever you have an update for a specific client, you would:
- open your updates configuration project in Advanced Installer
- create a new updates entry
- select your client specific installer for that update
- in the right pane at the bottom, in the Installed Detection group you would use the option "Detect if the update is installed by 'Running a custom EXE'"
- set the following fields
EXE Path: [{<ProductCodeGUID>}{<ComponentIdGUID>}]YourCustomDetection.exe
Arguments: user=<your_user_id>
- the custom EXE you set above would be responsible for checking if the computer on which it is running belongs to the client the update is intended for and return a value accordingly.

Updates.txt separate for each client
1) the server needs to have the following structure:

Code: Select all

|- ClientIDs
    |
    --- 000C4e
    |     |- updates.txt
    |     +-- client_specific_installer.msi     
    |
    --- 00Aq7h
    |     |- updates.txt
    |     +-- client_specific_installer.msi     
    |
    --- 00V85d
           |- updates.txt
           +-- client_specific_installer.msi   
2) On the Updater page in Advanced Installer simply set the Updates URL field to something like:

Code: Select all

http://<yourwebsitehere>/ClientIDs/[CLIENT_ID]/updates.txt
The CLIENT_ID property must hold the client ID belonging to your customer. The updater would this way look in the client's appropriate folder for updates.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”