/build/static/layout/Breadcrumb_cap_w.png

Searching for Office Version and Changing Install Directory to match

I'm wondering if anyone has a good solution to my problem. I am creating an application package that installs to a particular directory based upon which version of Office is installed on the system (2000 or 2003).

This is what I have tried to no avail:

1) Created a Property OFFICEDIR and set it to NULL
2) Added a System Search to return the value of the parent directory
3) Moved AppSearch to the top of the install script for both User and Immediate
4) Changed the name of the install directory to the Property Variable, in my case OFFICEDIR
5) Added a If Statement to Set the Property of OFFICEDIR to "OFFICE11" if the app search returns "office11"

None of the above steps worked for me so I tried changing the System Search to look for a registry value and place the returned result (0 or 1) into SEARCHRESULTS

Modified my if statement to use the SEARCHRESULTS property instead to change the value of OFFICEDIR. But still the MSI does not change the default value of OFFICEDIR to the new value.

Help anyone?

0 Comments   [ + ] Show comments

Answers (1)

Posted by: aogilmor 19 years ago
9th Degree Black Belt
0
you should be able to read this reg into a property
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\9.0\Common\InstallRoot
path=<office install path>

it'll vary based on office version, e.g.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\10.0\Common\InstallRoot
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ