I think the per-user location in the log is a red herring: I just happen to 
have the MSI in c:\Users\kparkes\Documents on my test machine.

With or without UI, properties are as follows:
ALLUSERS = 1
SOURCEDIR = C:\Users\kparkes\Documents\

-----Original Message-----
Re: [WiX-users] Directory and Registry Search failing in silent mode
From: Peter Shirtcliffe <pshirtcliffe@sd...> - 2011-11-29 15:55

The log says it's found in a per-user location: "Its value is
'C:\Users\kparkes\Documents\ABC\'."
HKCR is just a view merged from HKLM/Software/Classes and
HKCU/Software/Classes.

What does the log say the values of SOURCEDIR and ALLUSERS are in the
property dump(s) at the end ?


-----Original Message-----
From: Parkes, Kevin [mailto:Kevin.Parkes@...] 
Sent: 29 November 2011 15:33
To: wix-users@...
Subject: Re: [WiX-users] Directory and Registry Search failing in silent mode

I don't think it should be anything to do with user's profile: the Directory
search is looking for a sub-folder in the folder containing the MSI
([SOURCEDIR]) and the Registry search is looking in HKEY_CLASSES_ROOT.
InstallScope is perMachine
The problem does occur with MSI 5

-----Original Message-----
Re: [WiX-users] Directory and Registry Search failing in silent mode
From: Peter Shirtcliffe <pshirtcliffe@......> - 2011-11-29 14:52 
Dave says...

Could it be because the things you're looking for only appear in the user's
profile  - hkey_users and c:\users ?
When you switch from UI sequence to execute sequence, the intallation engine
switches to the service side and the current user becomes local system and
user-specific searches wouldn't work.

If you're running a per-user installation, the searches should be redirected
but are you ? Whats the value of ALLUSERS ? Is Package/InstallScope set to
perUser ? Are you using MSI 5 or something earlier ?

-----Original Message-----
From: Parkes, Kevin [mailto:Kevin.Parkes@...] 
Sent: 29 November 2011 14:20
To: wix-users@...
Subject: [WiX-users] Directory and Registry Search failing in silent mode

I have properties set by a <DirectorySearch> and a <RegistrySearch> both of
which work as expected with UI but neither of which is set when run in silent
mode:

<Property Id="ABCFOLDER">
  <DirectorySearch Id="ABCSearch" Path="[SOURCEDIR]ABC" Depth="1" />
</Property>

<Property Id="DOTXYZ">
  <RegistrySearch Id="DotXYZSearch" Root="HKCR" Key=".xyz" Type="raw" />
</Property>

Log file with UI:

  Action start 11:29:54: AppSearch.
  AppSearch: Property: DOTXYZ, Signature: DotXYZSearch
  MSI (c) (D0:A4) [11:29:54:650]: Note: 1: 2262 2: Signature 3: -2147287038
  MSI (c) (D0:A4) [11:29:54:730]: Note: 1: 1402 2: HKEY_CLASSES_ROOT\.xyz 3:
2
  AppSearch: Property: IPIFOLDER, Signature: ABCSearch
  MSI (c) (D0:A4) [11:29:54:740]: Note: 1: 2262 2: Signature 3: -2147287038
  MSI (c) (D0:A4) [11:29:54:760]: PROPERTY CHANGE: Adding ABCFOLDER property.
Its value is 'C:\Users\kparkes\Documents\ABC\'.
  Action ended 11:29:54: AppSearch. Return value 1.

Log file in silent mode:

 Action start 12:28:43: AppSearch.
  MSI (s) (44:9C) [12:28:43:152]: Note: 1: 2262 2: Signature 3: -2147287038
  MSI (s) (44:9C) [12:28:43:152]: Note: 1: 1402 2: HKEY_CLASSES_ROOT\.xyz 3:
2
  MSI (s) (44:9C) [12:28:43:152]: Note: 1: 2262 2: Signature 3: -2147287038
  MSI (s) (44:9C) [12:28:43:162]: Doing action: LaunchConditions
  Action ended 12:28:43: AppSearch. Return value 1.

What am I doing wrong?

Thanks

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to