PDA

View Full Version : System Search Problem



MHYCaweasel
11-30-2005, 06:00 PM
Hello-
I have tried creating a custom System Search to search for a specific file in a specific location and then use it as Install Condition. I'm building a Single MSI install.

I have selected to search by:
Folder Path, by searching for a specific file

and then specified the file FOO and its location. The value is then stored as a name THISNAME which is used as an Install Condition with the text This installation has failed because FOO is not installed. .

When I launch the package, the installation fails with the above message, regardless of whether FOO is in the specified location or not.

What am I doing wrong?

RobertDickau
11-30-2005, 06:06 PM
If you create an MSI log file, what is the value of your system search property THISNAME? Perhaps the search settings need some tweaking...

MHYCaweasel
12-01-2005, 10:42 AM
OK. I'll give that a try and see what happens.

MHYCaweasel
12-02-2005, 12:44 PM
After a whole day of stumbling around and reading, I have not been able to set up my MSI project to log. I went to Build/Settings, the MSI log file tab, set a log file name and what events I wanted logged. I compiled a new MSI file, put it on a server and ran the install from a test machine. I have not been able to find the log file let alone see what my result THISNAME is.

Now what am I doing wrong?

RobertDickau
12-02-2005, 01:46 PM
The settings in that MSI Log tab are used only when you run the installer from the InstallShield environment.

To create an MSI log file outside the environment (on a test machine, a customer's system, and so forth), you'll use the /L switch to msiexec. For example, run this from a command prompt:

msiexec /i productname.msi /L*v everything.log

The Windows Installer Help Library has more information about the different logging switches you can use with msiexec.exe.

MHYCaweasel
12-02-2005, 06:42 PM
Robert-
Thanks for the tip. I ran the MSI and generated a log. The install still fails. I will post again after I've had a chance to look over the log in detail.

MHYCaweasel
12-06-2005, 03:51 PM
The post after this one is an genericized excerpt from the log file for my project. The arguments I'm using for logging are /Liucearv

I have selected to search by:
Folder Path, by searching for a specific file FOO.DLL at its location C:\FOO_PLACE. The value is then stored as a name THISNAME which is used as an Install Condition. Despite the presence of FOO.DLL in C:\FOO_PLACE, an error is returned with the specified message of "FOO must be installed for this installation to continue."

I also have an Install Condition checking for Internet Explorer 6, which is detected.

MHYCaweasel
12-06-2005, 03:56 PM
The message board here is unwilling to allow me to post my log file. May I email it?

Christopher Painter
12-06-2005, 04:08 PM
You really should log EVERYTHING ( /l*v ) otherwise something could get ommitted and we won't be able to help you. When you reply to this thread scroll down to "Additional Options" and notice the Manage Attachments button.

Valid file extensions: asl bmp doc gif jpe jpeg jpg pdf png psd txt zip

so just rename your log file to foo.txt or zip it up and attach it.

MHYCaweasel
12-06-2005, 04:38 PM
I can post the log now for some reason, but thanks for the tip. Here is the log with EVERYTHING logged:

MSI (c) (F8:8C) [16:15:38:468]: Doing action: AppSearch
Action 16:15:38: AppSearch. Searching for installed applications
Action start 16:15:38: AppSearch.
AppSearch: Property: THISNAME, Signature: NewSignature11
MSI (c) (F8:8C) [16:15:38:468]: Note: 1: 2262 2: CompLocator 3: -2147287038
MSI (c) (F8:8C) [16:15:38:468]: Note: 1: 2262 2: RegLocator 3: -2147287038
MSI (c) (F8:8C) [16:15:38:468]: Note: 1: 2262 2: IniLocator 3: -2147287038
MSI (c) (F8:8C) [16:15:38:468]: Note: 1: 1322 2:
MSI (c) (F8:8C) [16:15:38:468]: Note: 1: 1322 2:
MSI (c) (F8:8C) [16:15:38:468]: Note: 1: 2262 2: CompLocator 3: -2147287038
MSI (c) (F8:8C) [16:15:38:468]: Note: 1: 2262 2: RegLocator 3: -2147287038
MSI (c) (F8:8C) [16:15:38:468]: Note: 1: 2262 2: IniLocator 3: -2147287038
MSI (c) (F8:8C) [16:15:38:468]: Note: 1: 1322 2:
MSI (c) (F8:8C) [16:15:38:468]: Note: 1: 1322 2:
AppSearch: Property: Property1, Signature: Signature_1
MSI (c) (F8:8C) [16:15:38:468]: Note: 1: 2262 2: CompLocator 3: -2147287038
MSI (c) (F8:8C) [16:15:38:468]: Note: 1: 2262 2: RegLocator 3: -2147287038
MSI (c) (F8:8C) [16:15:38:468]: Note: 1: 2262 2: IniLocator 3: -2147287038
AppSearch: Property: IE6FOUND, Signature: NewSignature1
MSI (c) (F8:8C) [16:15:38:468]: Note: 1: 2262 2: CompLocator 3: -2147287038
MSI (c) (F8:8C) [16:15:38:468]: Note: 1: 2262 2: RegLocator 3: -2147287038
MSI (c) (F8:8C) [16:15:38:484]: Note: 1: 2262 2: IniLocator 3: -2147287038
MSI (c) (F8:8C) [16:15:38:484]: Note: 1: 1322 2:
MSI (c) (F8:8C) [16:15:38:484]: Note: 1: 1322 2:
MSI (c) (F8:8C) [16:15:46:043]: PROPERTY CHANGE: Adding IE6FOUND property. Its value is 'C:\Program Files\Internet Explorer\iexplore.exe'.
AppSearch: Property: IE6FOUND, Signature: sigShdocvw
MSI (c) (F8:8C) [16:15:46:043]: Note: 1: 2262 2: CompLocator 3: -2147287038
MSI (c) (F8:8C) [16:15:46:043]: Note: 1: 2262 2: RegLocator 3: -2147287038
MSI (c) (F8:8C) [16:15:46:043]: Note: 1: 2262 2: IniLocator 3: -2147287038
MSI (c) (F8:8C) [16:15:46:043]: PROPERTY CHANGE: Modifying IE6FOUND property. Its current value is 'C:\Program Files\Internet Explorer\iexplore.exe'. Its new value: 'C:\WINDOWS\System32\shdocvw.dll'.
AppSearch: Property: IE6FOUND, Signature: sigShdocvw1
MSI (c) (F8:8C) [16:15:46:043]: Note: 1: 2262 2: CompLocator 3: -2147287038
MSI (c) (F8:8C) [16:15:46:043]: Note: 1: 2262 2: RegLocator 3: -2147287038
MSI (c) (F8:8C) [16:15:46:043]: Note: 1: 2262 2: IniLocator 3: -2147287038
Action ended 16:15:46: AppSearch. Return value 1.
MSI (c) (F8:8C) [16:15:46:058]: Doing action: LaunchConditions
Action 16:15:46: LaunchConditions. Evaluating launch conditions
Action start 16:15:46: LaunchConditions.
Info 2898.Tahoma8, Tahoma, 0
FOO must be installed for this installation to continue.
MSI (c) (F8:8C) [16:15:48:443]: Product: THISAPP -- FOO must be installed for this installation to continue.

Action ended 16:15:48: LaunchConditions. Return value 3.
MSI (c) (F8:8C) [16:15:48:458]: Doing action: SetupCompleteError

Christopher Painter
12-06-2005, 04:59 PM
Actually I was wanting to look at the entire log not a snippet. Also it would help to know which AppSearch signature and property name as well as a copy of the records from AppSearch, Signature and LaunchCondition tables.

MHYCaweasel
12-06-2005, 05:31 PM
Christopher- I don't know how to get the records from the AppSearch, Signature and LaunchCondition tables, so please explain and I will post the info. In the meantime:

Search For: CAI3CCI.DLL
Search In: [CA_APPSW]
Store In: CACCIDETECT

Launch Condition: CACCIDETECT
Message: CA-CCI must be installed for this installation to continue.
Signature:NewSignature11

LaunchConditions -
Sequence Number: 410
Conditions: [null]
Comments: LaunchConditions

AppSearch -
Sequence Number: 400
Conditions: [null]
Comments: AppSearch

narmadachebrolu
03-21-2006, 05:07 PM
Hi Robert,

I added a system search to get some thing from xml file and store it into a property. then added another system search for registry entry using the path
SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\[_TIMEZONENAME] which is having the property _TIMEZONENAME value retrieved from xml file.... and this system search should find the value in registry and should store it in some other property...but it is not doing that
if i give SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Eastern Standard Time ............ then it is searching registry and storing it in the required property.... so my question is is there a way to set the sequence inside the appsearch.... how can i resolve this issue...

Thanks,
Narmada.

mclark
03-22-2006, 09:52 AM
I didn't see that the search evena happend.

I also noted that [CA_APPSW] has no value, and given that then CACCIDETECT, will also have no value. How is [CA_APPSW] getting set?

Search For: CAI3CCI.DLL
Search In: [CA_APPSW]
Store In: CACCIDETECT