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?
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)
Please log in to answer
Posted by:
aogilmor
19 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.