Conditional installs based on ComputerName?
Posted 21 July 2005 - 22:54
What I ideally want to do is create a single package that I can deploy to desktops and laptops, whereby the laptops get additional components/features installed that the desktops dont. Since our organisation has a computer naming convention to distinguish a desktop from a laptop, this is the preferred method of detection/setting the condition.
I've tried using the ComputerName property to no avail and I've also tried using AppSearch combined with the RegLocator table to check for the computer name stored in the registry. Sadly, this only stores the key value "ComputerName" and not the actual data value (ie the computername itself)
Any other ideas?
Posted 22 July 2005 - 11:16
ComputerName ~>< "Laptop"
should work (is true if the computer name includes the word "laptop", not case sensitive)
Posted 22 July 2005 - 12:37
I'll give this a try and see if it works for me.
Posted 22 July 2005 - 14:33
The ~ is not required but useful to make the comparison non-case-sensitive.
Posted 22 July 2005 - 16:31
It has worked a treat! I knew it had to be something simple.
Your help is much appreciated