Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

install condition issue (detecting office version)


Best Answer overlord , 19 March 2014 - 15:33

here is the log entry from a machine I have run the installer on: 

 

 

Machine A:

AppSearch: Property: OFFICE_VERSION, Signature: NewSignature12
MSI (c) (48:F0) [10:12:13:847]: Note: 1: 2262 2: Signature 3: -2147287038 
MSI (c) (48:F0) [10:12:13:847]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Excel\InstallRoot 3: 2 
Action ended 10:12:13: AppSearch. Return value 1.
MSI (c) (48:F0) [10:12:13:847]: Doing action: LaunchConditions
Action 10:12:13: LaunchConditions. Evaluating launch conditions
Action start 10:12:13: LaunchConditions.
Action ended 10:12:13: LaunchConditions. Return value 1.
MSI (c) (48:F0) [10:12:13:847]: Doing action: SetupInitialization

Note that the entry looks the same on Machine A and Machine B.

Machine A has office 2003 installed on it and the key is present.

 

Machine B has office 2010 and the key is not present.

 

 

 

Machine B:

AppSearch: Property: OFFICE_VERSION, Signature: NewSignature12
MSI (c) (04:84) [10:20:46:095]: Note: 1: 2262 2: Signature 3: -2147287038 
MSI (c) (04:84) [10:20:46:095]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Excel\InstallRoot 3: 2 
Action ended 10:20:46: AppSearch. Return value 1.
MSI (c) (04:84) [10:20:46:095]: Doing action: LaunchConditions
Action 10:20:46: LaunchConditions. Evaluating launch conditions
Action start 10:20:46: LaunchConditions.
Action ended 10:20:46: LaunchConditions. Return value 1.
MSI (c) (04:84) [10:20:46:095]: Doing action: SetupInitialization

I found this article  http://www.advancedi....php?f=2&t=9838

Which makes it sound like my problem is that I dont have both a 32bit and 64bit search. So I added another and I am testing it now. Will update with results shortly.

 

 

 

EDIT-- *** Yup that was it. I needed 2 system searches for this. Added to the condition to check for both 32 and 64bit and now it seems to work correctly***

Go to the full post


3 replies to this topic

overlord

overlord
  • Full Members
  • 38 posts

Posted 18 March 2014 - 20:02

Hey guys I'm back! I lost access to my old email account so I had to create a new user (formerly overlordchin). 

Anyhow I am having trouble getting an install condition to work correctly. I added a system search for the following key:

 

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\excel.exe 

 

and I am storing it in a property OFFICE_VERSION. After that I am using it in an install condition:

 

(Not OFFICE_VERSION="c:\Program Files\Microsoft Office\Office11\") AND(Not OFFICE_VERSION="c:\Program Files (x86)\Microsoft Office\Office11\")

 

which of course wont work if the main drive letter isn't c:\ or if it was installed to an alternate location.

 

is there a way I can tweak this to only look at the office11 part of the string? 

 

 

Thanks in advance for any insight you guys have to offer.

 

 

 



overlord

overlord
  • Full Members
  • 38 posts

Posted 18 March 2014 - 21:16

I tried changing it to look in 

"HKLM\Software\Microsoft\Office\11.0\Excel\Installroot"

 

I then changed the install condition to:

 

(Not OFFICE_VERSION)

 

 

Which fails to properly detect the installation of that version of office even though the key is present at that location.



overlord

overlord
  • Full Members
  • 38 posts

Posted 19 March 2014 - 15:33   Best Answer

here is the log entry from a machine I have run the installer on: 

 

 

Machine A:

AppSearch: Property: OFFICE_VERSION, Signature: NewSignature12
MSI (c) (48:F0) [10:12:13:847]: Note: 1: 2262 2: Signature 3: -2147287038 
MSI (c) (48:F0) [10:12:13:847]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Excel\InstallRoot 3: 2 
Action ended 10:12:13: AppSearch. Return value 1.
MSI (c) (48:F0) [10:12:13:847]: Doing action: LaunchConditions
Action 10:12:13: LaunchConditions. Evaluating launch conditions
Action start 10:12:13: LaunchConditions.
Action ended 10:12:13: LaunchConditions. Return value 1.
MSI (c) (48:F0) [10:12:13:847]: Doing action: SetupInitialization

Note that the entry looks the same on Machine A and Machine B.

Machine A has office 2003 installed on it and the key is present.

 

Machine B has office 2010 and the key is not present.

 

 

 

Machine B:

AppSearch: Property: OFFICE_VERSION, Signature: NewSignature12
MSI (c) (04:84) [10:20:46:095]: Note: 1: 2262 2: Signature 3: -2147287038 
MSI (c) (04:84) [10:20:46:095]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Excel\InstallRoot 3: 2 
Action ended 10:20:46: AppSearch. Return value 1.
MSI (c) (04:84) [10:20:46:095]: Doing action: LaunchConditions
Action 10:20:46: LaunchConditions. Evaluating launch conditions
Action start 10:20:46: LaunchConditions.
Action ended 10:20:46: LaunchConditions. Return value 1.
MSI (c) (04:84) [10:20:46:095]: Doing action: SetupInitialization

I found this article  http://www.advancedi....php?f=2&t=9838

Which makes it sound like my problem is that I dont have both a 32bit and 64bit search. So I added another and I am testing it now. Will update with results shortly.

 

 

 

EDIT-- *** Yup that was it. I needed 2 system searches for this. Added to the condition to check for both 32 and 64bit and now it seems to work correctly***


Edited by overlord, 19 March 2014 - 16:01.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 24 March 2014 - 17:08

Hi overlord,

 

glad that you've been able to solve your problem, and thanks fpr sharing the solution.

 

For completeness, addressing your original question: to look for the "office11" part of the string you might use:

OFFICE_VERSION ~>< "office11"

where >< means: left string contains right string, and ~ makes the comparison case insensitive.

 

(Note that this is probably not a robust way to dectect Office 11 if the user installed it in a custom location with a difefrent folder name)