PDA

View Full Version : Check for Excel


jfeyes
09-10-2008, 10:30 AM
How do I check for the presence of Excel before allowing the setup to continue?

searcher123
09-10-2008, 11:56 AM
-- Check if Excel 2007 is installed
bExcelIsInstalled = Registry.DoesKeyExist(HKEY_CURRENT_USER, "Software\\Microsoft\\Office\\12.0\\Excel");

if (bExcelIsInstalled) then
Screen.Next();
else
result = Dialog.Message("Notice", "You must install Excel first", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Application.Exit(0);
end


--Check if Excel 2003 is installed
bExcelIsInstalled = Registry.DoesKeyExist(HKEY_CURRENT_USER, "Software\\Microsoft\\Office\\11.0\\Excel");

if (bExcelIsInstalled) then
Screen.Next();
else
result = Dialog.Message("Notice", "You must install Excel first", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Application.Exit(0);
end