Thank you for your time and comments.  I am still digging through the verbose
log captured during the on-demand install.  I am also re-reading the
sections in your book related to on-demand installs.

One brief clarification is that I run the wix bundle (with multiple msi
packages), which I compiled, for the first time on a Windows 8 x64 test
system.  After the bundle completes the advertised shortcut related to the
msi package and Feature which writes this registry key is on the desktop (or
in the (non-existent :) ) start menu ).  Since the bundle did prompt for
elevation, my initial assumption was that a later on-demand of the same user
would be a managed install.  So immediately after the first-install of the
bundle has completed I click on the applications's shortcut which starts a
on-demand install in the same Admin but not elevated context as when I
initially launched the Bundle.  

Before the on-demand setup starts the registry looks like this:
HKLM\SOFTWARE\Wow6432Node\Company (with a subkey related to another
application which was also installed).

Note the Company key was created by the first-install of the bundle on a
clean system, or it may exist if another Company product has previously
created it.

During the on-demand install, toward the end I get this error message:
MSI (s) (58:FC) [14:02:01:505]: Executing op:
RegOpenKey(Root=-2147483646,Key=SOFTWARE\Classes\Applications\AppName\SupportedTypes,,BinaryType=0,,)
MSI (s) (58:FC) [14:02:01:505]: Executing op: RegAddValue(Name=.qdd,,)
MSI (s) (58:FC) [14:02:01:505]: Executing op: RegAddValue(Name=.qws,,)
MSI (s) (58:FC) [14:02:01:505]: Executing op:
RegOpenKey(Root=-2147483646,Key=SOFTWARE\Rimage,,BinaryType=0,,)
MSI (s) (58:FC) [14:02:01:505]: Executing op: RegAddValue(Name=SDA,Value=#,)
MSI (s) (58:FC) [14:02:01:505]: Note: 1: 1406 2: SDA 3: SOFTWARE\Company 
MSI (c) (C8:64) [14:02:01:536]: Font created.  Charset: Req=0, Ret=0, Font:
Req=MS Shell Dlg, Ret=MS Shell Dlg

MSI (c) (C8:08) [14:02:04:485]: Machine policy value 'DisableUserInstalls'
is 0
Error 1406. Could not write value SDA to key \SOFTWARE\Company.  System
error .  Verify that you have sufficient access to that key, or contact your
support personnel.
MSI (s) (58:FC) [14:02:38:930]: Product: Company AppName -- Error 1406.
Could not write value SDA to key \SOFTWARE\Company.  System error .  Verify
that you have sufficient access to that key, or contact your support
personnel.

MSI (s) (58:FC) [14:02:38:930]: Note: 1: 1406 2: SDA 3: SOFTWARE\Company 
MSI (c) (C8:64) [14:02:38:930]: Font created.  Charset: Req=0, Ret=0, Font:
Req=MS Shell Dlg, Ret=MS Shell Dlg

Error 1406. Could not write value SDA to key \SOFTWARE\Company.  System
error .  Verify that you have sufficient access to that key, or contact your
support personnel.
MSI (s) (58:FC) [14:02:41:442]: Product: Company AppName -- Error 1406.
Could not write value SDA to key \SOFTWARE\Company.  System error .  Verify
that you have sufficient access to that key, or contact your support
personnel.

MSI (s) (58:FC) [14:02:41:442]: Note: 1: 1406 2: SDA 3: SOFTWARE\Company 
MSI (c) (C8:64) [14:02:41:442]: Font created.  Charset: Req=0, Ret=0, Font:
Req=MS Shell Dlg, Ret=MS Shell Dlg

Error 1406. Could not write value SDA to key \SOFTWARE\Company.  System
error .  Verify that you have sufficient access to that key, or contact your
support personnel.
MSI (s) (58:FC) [14:02:42:986]: Product: Company AppName -- Error 1406.
Could not write value SDA to key \SOFTWARE\Rimage.  System error .  Verify
that you have sufficient access to that key, or contact your support
personnel.

MSI (s) (58:FC) [14:02:42:986]: Note: 1: 1406 2: SDA 3: SOFTWARE\Company 
MSI (c) (C8:64) [14:02:42:986]: Font created.  Charset: Req=0, Ret=0, Font:
Req=MS Shell Dlg, Ret=MS Shell Dlg

Error 1406. Could not write value SDA to key \SOFTWARE\Company.  System
error .  Verify that you have sufficient access to that key, or contact your
support personnel.
MSI (s) (58:FC) [14:04:00:004]: Product: Company AppName -- Error 1406.
Could not write value SDA to key \SOFTWARE\Company.  System error .  Verify
that you have sufficient access to that key, or contact your support
personnel.

After the on-demand install the registry looks like this:
HKLM\SOFTWARE\Wow6432Node\Company\AppName\SubKey many values in 'SubKey'

The action which fails is trying to write a value to :
HKLM\SOFTWARE\Wow6432Node\Company

The registry permissions appear to be the same between the key which fails
and the subkeys which are written to in the same on-demand install.  But
those keys are authored with HKMU and the key which fails is authored with
HKLM.  I plan to investigate this further tomorrow.

I made a conscious distinction in authoring the root selection but may be
the problem.  The use of HKLM for this key which failed is driven by the
application design, which I probably need to work out with that developer. 
The use of HKMU for the subkeys was because my setup controls the purpose
for those keys.  I will investigate this further tomorrow.

Also there are two paths to avoid observing the above error (which both make
sense).
1) After the error is observed, launch the bundle and run repair, which
prompts for elevation and runs without posting any error, and writes the key
value.
2) Compile the product with the feature marked to not allow advertising. 
Then the registry is written during the first-install, after the bundle has
been elevated, (and there is no on-demand install).

Thanks again for your help understanding these issues.  Phill




--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/advertised-install-and-user-permissions-tp7594058p7594113.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to