I'm trying, with a script, to uninstall office then install outlook and then uninstall language packs. This is what I have for now:
The problem is that I want to integrate an argument where it looks if the language pack NL and FR are installed or not and if they do not, go to the next command.
This is the order I want to achieve in the script
1. Look for Openoffice and if not installed, install (command -> msiexec /qb! /i openofficeorg21.msi ALLUSERS=1 SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1) (command2 dictionnary-> msiexec /qb! /i SUN_OpenOffice21_Dico.msi) 2. Uninstall Office 2003 3. Uninstall language pack NL 4. Uninstall language pack FR 5. Install Outlook 2003
The used string is {901E0413-6000-11D3-8CFE-0150048383C9} for NL and {901E040C-6000-11D3-8CFE-0150048383C9} for FR. Those must be uninstalled, not installed.
Ok, so I would suggest looking into the WindowsInstaller.Installer object. You can use it's .ProductState method to determine what is or is not installed.