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!

vidur
Posts: 43
Joined: Thu Jul 31, 2014 4:21 am

Conditional Windows server installer

Hi,

Im trying to build an installer which should not install if the OS is win Server. Unless we select an option to make it a server installer.

Here is what i have done:

Installer proprty - "SERVERINSTALLER" (0 - no and 1 - YES)

Only if this property is 1 i want it to install on win server .

in Launch condition i have put the following condition:

Code: Select all

(Not Installed) AND  (NOT (MsiNTProductType <> 1 OR VersionNT = 502  OR VersionNT64 = 502) OR SERVERINSTALLER ="1")
Will this work?
or is there an easier way of doing this?

Thanks for your reply
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Conditional Windows server installer

Hello,

You can easily configure your setup project not to install on Windows Server machines by using only the "MsiNTProductType" property. For example you can use a custom launch condition like this:
  • Condition: MsiNTProductType = 1
    Description: The setup package cannot be installed on Windows Server machines.
Let us know if this helped, otherwise please give us more details about what you are trying to accomplish.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vidur
Posts: 43
Joined: Thu Jul 31, 2014 4:21 am

Re: Conditional Windows server installer

Hi,
thanks for your reply. It worked
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Conditional Windows server installer

You're welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”