cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
emirikol
Level 2

Software conditions and registry keys

Hi, how can i check if office is installed as software condition?

i have tried checking if HKEY_CURRENT_USER\Software\Microsoft\Office exist but does not works.

any help is welcome

thanks
Labels (1)
0 Kudos
(1) Reply
KEiGHT
Level 6

#define SOURCE_FILES SRCDIR // from where to be installed
#define OFFICE10 "...where your app is at"
#define CMD_LINE1 " /silent /v/q" //if you need to be installed in silent mode

STRING szKeyRoot;

//set registry location
RegDBSetDefaultRoot(HKEY_CURRENT_USER);

szKeyRoot = "Software\Microsoft\Office"

if (RegDBKeyExist (szKeyRoot)<0) then
LaunchApplication ( OFFICE10 , CMD_LINE1 , SOURCE_FILES , SW_SHOW , 1000000 , WAIT | LAAW_OPTION_SHOW_HOURGLASS);
endif;
0 Kudos