A customer asked me:
“Mike, I’m deploying Windows 7 and Windows 8.1 and in some cases there is different versions of applications for different versions of the OS, but I would like to use Mandatory Applications in customsettings.ini based that is tied to model?”
That is a scenario that is rather easy to fix, however it can be fix in many different ways. Scripting is one, rerunning the gather step and use conditions based on other way, using OSVersionNumber is another. It could also be the situation that you for a reason is running Windows 7 x86 and Windows 8.1 x64 as your two different operating system and therefor you have different applications, but you would like to be able to have only “one” application. That way you can still use rules to deploy the application or you would make it easier for the technician that performs the deployment of the client. But here is one other trick:
Using Bundles with conditions
Let us assume that you are deploying Windows 7 and Windows 8.1 to a certain hardware model and that hardware requires a certain software and that the software comes in two different versions then you can do the following:
- Import the Windows 7 and Windows 8 application.
- Set the conditions for each application
- Hide the Applications
The “Install – Software for Model X – Windows 8.1 x64” has been hidden, repeat for the Windows 7 x86 application. - Create a bundle application
- Add the both applications as dependences.
If you install the bundle only one of the applications will be installed, since the dependences have conditions that does not overlap.
Using Customsettings.ini and MandatoryApplications to install each application for the correct operating system.
If you modify the rules in LiteTouch (customsettings.ini) you can now based on model use the bundle GUID instead of having to use two applications
Using MandatoryApplications001 with the GUID from the Bundle and installing it based on Model.
/mike
Categories: Deployment, Lite Touch, MDT
Excellent Post Mike! Somebody was just asking me about this, great write up!
Thanks :-)