Eric_Liu
Posts: 16
Joined: Fri Dec 16, 2016 6:07 pm

How can I install two files with identical name in the same folder based on AD site name ?

This is a vbscript for list the AD Site Name for the local computer.
---------------------
Set objADSysInfo = CreateObject("ADSystemInfo")
WScript.Echo "Current site name: " & objADSysInfo.SiteName
---------------------
There are three AD site name exist in AD
ABC , DEF , GHJ

According to the following guide, I can install two files with identical name in the same folder based on a condition. (Such as OS version.)
http://www.advancedinstaller.com/user-g ... -name.html

However, can I install two files with identical name in the same folder based on a AD site name of a computer ?

if ABC then ..
DEF then ....
GHJ then ....
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: How can I install two files with identical name in the same folder based on AD site name ?

Hello,

First you should store the AD site name into an installer property. This could be done in your vbs script. Please take a look to our article : How to set an installer property using custom actions

Then you should follow the method described here : How to install two files with the same name in the same folder?

The conditions for the components should be based on the AD site name property from your scrip.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”