Any one have any idea on adding logic into a transform that can determine which domain the machine is on and then install a customized configuration for that domain? This customazation file is different for each domain. I want to have logic in one transform to that can can do this.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
I actually did something similar a few days ago, not domain name, but with computername. In theory it is the same-ish.
I used Wisescript to enumerate the first 3 letters from the computername and set a property, and then set a feature in the msi to use the property if it was certain letters, and another feature if it wasnt. It installed different reg settings for different computer names.


Or, the below enumerates the domain name, just give the script some parameters, someone else may elaborate.

Set objSysInfo = CreateObject("ADSystemInfo")
Wscript.Echo "Domain Name: " & objSysInfo.DomainShortName
Answered 02/26/2008 by: reds4eva
Second Degree Blue Belt

Please log in to comment
0
Hi,

I think you can add a script to determine the domain and then depending upon that you can have components installing conditionally for that particular domain.

One more thing, I dont know whether you can determine the domain without adding the script but using Windows Installer itself. I am not sure of this, but may be someone can come up with solution??[8|]

Cheers
Answered 02/26/2008 by: India_Repackaging
Blue Belt

Please log in to comment
0
ORIGINAL: India_Repackaging
One more thing, I dont know whether you can determine the domain without adding the script but using Windows Installer itself. I am not sure of this, but may be someone can come up with solution??[8|]
There's no native way to do *the whole exercise* in WI. It has to be script of one form or another. How many domains are we talking about? It can't be many, can it? If it's manageable, you could test for the environment variable USERDOMAIN and branch accordingly. Environment variables can be used like quasi-properties - [%USERDOMAIN]. Note that in WI, unlike in DOS, only one '%' is used.
Answered 02/27/2008 by: VBScab
Red Belt

Please log in to comment
0
You should of course compaire the USERDOMAIN value with COMPUTERNAME as a same value would mean local logon which would not be the domain name.
Answered 02/27/2008 by: AngelD
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity