This is a great idea! But, I'm receiving an error if the computer is not in a group that's causing the task sequence to fail. If the machine is in the AD group the script runs fine. I enabled the Set InstallApp step at the beginning of the sequence but it still fails.
Here's the section of the smsts.log that shows the error:
Property INSTALLAPP is now = False InstallSoftware 10/12/2010 4:09:09 PM 4008 (0x0FA8)
Process completed with exit code 1 InstallSoftware 10/12/2010 4:09:14 PM 4008 (0x0FA8)
C:\_SMSTaskSequence\WDPackage\Scripts\custom_appinstall.wsf(77, 3) Active Directory: The directory property cannot be found in the cache. InstallSoftware 10/12/2010 4:09:14 PM 4008 (0x0FA8)
InstallSoftware 10/12/2010 4:09:14 PM 4008 (0x0FA8)
InstallSoftware 10/12/2010 4:09:14 PM 4008 (0x0FA8)
Command line returned 1 InstallSoftware 10/12/2010 4:09:14 PM 4008 (0x0FA8)
Process completed with exit code 1 TSManager 10/12/2010 4:09:14 PM 1212 (0x04BC)
!--------------------------------------------------------------------------------------------! TSManager 10/12/2010 4:09:14 PM 1212 (0x04BC)
Failed to run the action: query LDAP. Incorrect function. (Error: 00000001; Source: Windows) TSManager 10/12/2010 4:09:14 PM 1212 (0x04BC)