ozgekaya
Posts: 20
Joined: Thu May 08, 2014 7:52 am

Shared proporties for multiple servers

Hello,

We are using advanced installer to deploy our product to 3 different servers on the same network (app,db and integration). On each installation sequence users need to specify the server names and associated passwords as custom property. I wonder if there is an easy way to reduce rework and ask for these properties only once.

Using an installation config table on DB server, using a shared director or using remote registry(if possible) are some options I have in mind. I'm open to all recommendations.

Thanks :)
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Shared proporties for multiple servers

Hi and welcome to Advanced Installer forums.

In order to store a property to the registry and reuse its value during an upgrade, you can check the Set persistent property option for it.

However, I'm afraid I don't fully understand your scenario. Do you want to store the server name and the password for all 3 servers when you install your application on the first server and not be asked for them when you install the application on the second and the third server? Or do you want to store the information when you install the application on each server separately and not be asked for it during an upgrade?

Can you please give us more details about your scenario (maybe exemplify)?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ozgekaya
Posts: 20
Joined: Thu May 08, 2014 7:52 am

Re: Shared proporties for multiple servers

Thanks for quick response.

It's exactly how you defined:
"However, I'm afraid I don't fully understand your scenario. Do you want to store the server name and the password for all 3 servers when you install your application on the first server and not be asked for them when you install the application on the second and the third server?"

I want to install DB server first and then install integration and application server and get the properties from Database server.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Shared proporties for multiple servers

Hi,

In this case you can save the custom properties that contain the serer name and the password to the registry or to a XML or INI file when the package is installed on the DB server, and then take them from there using the Search feature when the package is installed on the other two servers.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ozgekaya
Posts: 20
Joined: Thu May 08, 2014 7:52 am

Re: Shared proporties for multiple servers

Thanks
In this case do I need to define a folder search like

Code: Select all

 path: \\[PROP_DBSERVER]\[SystemFolder]
SO the installer goes to DBSERVER and finds the .INI with server names and passwords? This will only require DBSERVER name and it's better then taking all 3 names for each installation.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Shared proporties for multiple servers

Hi,

I don't think that you should create a "Folder Search" to find the path of the .INI file, because in my opinion, the installer creates that file at a specific location when it is installed on the first server and during the installation of the package on another server, you can set the installer to take that file from the location it created it to.

For example, if during the installation on the first server, the .INI file was created on the DB server at the path: \\[PROP_DBSERVER]\[SystemFolder], then during the installation on the other servers, the installer will take the file from the DB server path: \\[PROP_DBSERVER]\[SystemFolder]

You should only create the "INI Searches" that takes the values of the .INI file. And when configuring those searches you specify the folder where the .INI file is located (i.e. \\[PROP_DBSERVER]\[SystemFolder]), the name of the file, the section and the key.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ozgekaya
Posts: 20
Joined: Thu May 08, 2014 7:52 am

Re: Shared proporties for multiple servers

Hi Eusebiu,
For example, if during the installation on the first server, the .INI file was created on the DB server at the path: \\[PROP_DBSERVER]\[SystemFolder], then during the installation on the other servers, the installer will take the file from the DB server path: \\[PROP_DBSERVER]\[SystemFolder]

You should only create the "INI Searches" that takes the values of the .INI file. And when configuring those searches you specify the folder where the .INI file is located (i.e. \\[PROP_DBSERVER]\[SystemFolder]), the name of the file, the section and the key.
This seems working indeed. I got one last problem. I need to know [PROP_DBSERVER] beforehand to use it at installation of 2nd and 3rd servers. "Searches" runs before "User Selection" thus I can't search for the file after the user provides the [PROP_DBSERVER]. Is there any way to achieve this? Using a suctom action for search and running it on the "next" button is the only thing that I can think of.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Shared proporties for multiple servers

Hi,

I apologize for the delayed reply.

When you create the [PROP_SERVER] property in the Install Parameters page, you can check the "Set persistent property" option for it. In this case the value of the property will be saved in the registry at the following path: HKLM\Software\[Manufacturer]\[UpgradeCode]\Property Name (if the application will be installed per-user the registry entry will be stored under HKCU not HKLM).

So, during the 2nd and the 3rd install, you can create a search to take the value of that property from the registry.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ozgekaya
Posts: 20
Joined: Thu May 08, 2014 7:52 am

Re: Shared proporties for multiple servers

Hello,

I can store he data on registry or in a file. Let me summarize the scenario.

User installs a software(package) on Database server; let's say[PC1]. User enters 3 server name and domain/user names for this servers. User moves to second PC,[PC2] and installs another software. The installer asks for database servers name. User enters [PC1]. Installer searches data on [PC1](registry or file) and resolves all names.

When I'm using a remote server to install 2nd package, I first want user to provide remote database server name and then using this server name I want to execute search to have the required properties. I can achieve this without asking user the remote server name because I can search a predefined remote server. What I want is; invoking a user interface dialog and get database server name form user. After the user clicks next, search for the required properties on the remote server he provided. Show the list of properties to user and wait for confirmation.

Thank you very much for your help.

Regards,
Ozge
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Shared proporties for multiple servers

Hi Ozge,

Please keep in mind that all the searches are preformed before the dialogs to be displayed, so they are performed before the user to introduce the name of the server that contains the information.

However, as a workaround, you can try to add a "New Dialog in Sequence" after the "PrepareDlg" dialog where you can ask the user for the name of the server. That dialog will be displayed before the searches to be performed, but after the user clicks "Next", he cannot return to that dialog.

Otherwise, you can create you own custom action that performs all those searches and add it as a Published Event on the "Next" button of the dialog that you want. In this case you will not use the support from the "Searches" page.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ozgekaya
Posts: 20
Joined: Thu May 08, 2014 7:52 am

Re: Shared proporties for multiple servers

Hi Eusebiu,

What you have suggested works very well. Thank you very much! I don't need user to go back to that dialog. A small issue is during the search installer screens disappear showing no progress. I have to wait for network search to complete to see the next dialog. I think I can ignore this issue but I'd be happy if I can show an indicator.


Thanks again. I greatly appreciate your help.

Ozge
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Shared proporties for multiple servers

Hi Ozge,

You're welcome. Glad to help.

Indeed, no dialog is displayed when the searches are performed. What you can try, is to display a message box for a few seconds to inform the user that the searches are performed. You can find an example of such a message box on the dialog question thread.

Also, please make sure that you uncheck the "Wait for custom action to finish before proceeding" and "Wait for return code at the end of the sequence" options for that custom action.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ozgekaya
Posts: 20
Joined: Thu May 08, 2014 7:52 am

Re: Shared proporties for multiple servers

Hi Eusebiu,

Working perfectly.

Thanks again.
Ozge
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Shared proporties for multiple servers

You're welcome Ozge. Just let us know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”