tiago-moura
Posts: 12
Joined: Thu Sep 10, 2015 9:55 pm

Installer Server and Client applications

Hi there, how are you doing?

We have a .NET solution with two distinct projects, one for the server side and other one for client side. The server is a Windows Service and the client a Windows form application. Today we have two different installers, one for each side, but we'd like to have only one installer and than the user should choose which side he wants to install. The installer also should work for x64 and x86 environments (it's already working).

Is it possible? Should I use the "features" resource? How to achieve this?

Thanks in advanced,

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

Re: Installer Server and Client applications

Hi Tiago and welcome to Advanced Installer forums,

To create a client-server application, you can select the Client/Server Application Installation Package template from the Start - > Installer Project Types. This template allows you to configure an installer for a client/server application. The wizard will guide you to configure the installation package.

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
tiago-moura
Posts: 12
Joined: Thu Sep 10, 2015 9:55 pm

Re: Installer Server and Client applications

Hi Dan,

Thank you for the prompt response. I created the aip from Visual Studio and didn't realized the other templates options.
Do you have a reference guide (or manual) for this kind of template?

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

Re: Installer Server and Client applications

Hi Tiago,

We don't have a dedicated article how you can create a Client/Server Application Installation Package. However, when selecting the related type of project you will have a wizard walk you through the generic settings.

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
tiago-moura
Posts: 12
Joined: Thu Sep 10, 2015 9:55 pm

Re: Installer Server and Client applications

Hi Dan,

I'm finishing my tests with the Client/Server template and I'll give you feedback soon.

Actually, I need to create one installer which will install both sides: client and server, and also for x64 and x86 platforms.
Is it possible? Could you advise how to to achieve the mixed plataforms with client/server? Our solution is built with "any cpu" option.

Many thanks,

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

Re: Installer Server and Client applications

Hi Tiago,

Since the platform is any CPU, you can create your installation package as a 32-bit package. There is no need for a mixed package type as you do not have specific files for the X86-bit machine and specific files for the X64-bit machines. It is recommended to use this package type if your application contains no 64-bit binaries and you don't want to interact with any 64-bit folder or registry location.

If you need any help, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tiago-moura
Posts: 12
Joined: Thu Sep 10, 2015 9:55 pm

Re: Installer Server and Client applications

Hi Dan,

My solution is any cpu, but I use external libraries (such as SQL Server CE) which have files for x64 and x86. Can I use the mixed package just for these files?

Thanks,
Tiago
tiago-moura
Posts: 12
Joined: Thu Sep 10, 2015 9:55 pm

Re: Installer Server and Client applications

Hi Dan,

As per your comment, I just tested our installer on a x64 machine and the software is installed into C:/Program Files (x86) folder, but I undestand it should be installed in C:/Program Files. All output binaris in my solution are compiled as "Any CPU".

Could you advise how to proceed?

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

Re: Installer Server and Client applications

Hi Tiago,

Indeed, when a 32-bit application writes or reads a value under the C:\Windows\System32 directory , the application reads from the C:\Windows\SysWOW64 directory on a 64-bit OS.
Their 32-bit counterparts are resolved to redirected locations as follows:
  • ProgramFilesFolder - C:\Program Files (x86)\
  • CommonFilesFolder - C:\Program Files (x86)\Common Files\
  • SystemFolder - C:\Windows\SysWOW64\
This is the default behavior for Windows Installer. A 32-bit installation package, on 64-bit machines, cannot install resources into 64-bit locations (i.e. "Program Files" folder).

If you need to install resources into 64-bit locations (i.e. "Program Files" folder) you can select the Mixed 32/64-bit matching the platform option for the package type. This way, the package runs as a 32-bit package on 32-bit systems and as a 64-bit package on x64 systems. It allows you to have a single installation package that will install on both platform types (32-bit and 64-bit platforms) and can install files or registry in the real system paths regardless of the platform.

When the "Mixed 32/64-bit matching the platform" package type is selected in the Install Parameters page, then the wizard will launch and will guide you step by step through every stage required to organize your “Mixed 32/64-bit matching the platform” package.

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

Return to “Building Installers”