How can I set up, ComputerName must contain "xxx" (3-4 specific letters/numbers) as a PREREQ within an MSI.
I have an app that we want to push out to only a subset of machines, but currently they do not have them categorized, or in groups. So in the past they ran a VBScript that contained a "ComputerName" must contain and then had 3-4 specific variables, to distinguish the specific computer subset, say "TRN", or "VIR2" or "VMIT" in order for the VB script to kick off the MSI. I got all the Reg key adds and icon replacements, etc, out of the VB script and embedded into the MSI, now I am trying to come up with a way to add a similar ComputerName Check within the MSI, and was unsuccessful at putting the VBScript as a Custom Action, to run before app install launch, so I was trying to add the Name Query within the LaunchCondition found on the General Information Page, it has it's own little drop down boxes giving you options to build a statement but everything I have tried so far has failed, can anyone assist with the correct syntax here?
This has been answered Thanks, I love the variety of answers.
Answers (2)
ComputerName >< "TRN" OR ComputerName >< "VIR2" OR ComputerName >< " VMIT" | ERROR! Computer name must containĀ "TRN", "VIR2" or "VMIT". |
ComputerName << "TRN" OR ComputerName << "VIR2" OR ComputerName << " VMIT" | ERROR! Computer name must start with "TRN", "VIR2" or "VMIT". |