Hi All,
This problem has made me stuck with no way out.

I have created MSI using Wix 3.0. have one component that creates the registry 
key on install and writes a value. The value is being set from UI.
I want to enable the "Change" option that should Reinstall the component that 
creates the registry (write) but the with modified value (value again set from 
UI).

I got some guidance from 
"http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg23903.html"; and 
wrote the code like:

1. Added the component to separate Feature (Feature1) with level 1.
a. Creates registry Key1, with Value = "[VALUE]". Set VALUE = " "
b. Set VALUE = Test_Install from UI during install.
2. The feature gets installed properly, registry key is created with desired 
value.
3. On change option, set the REINSTALL = "Feature1" and VALUE = 
"Test_Reinstall".
4. The Feature gets Reinstalled properly on Windows 2003 and XP (Vista with UAC 
disables). And the registry value is updated with "Test_Reinstall"

The problem is on Vista with UAC enables, the Feature gets installed, and the 
registry key gets updated but with " " (Default value set in Wix file) not with 
the VALUE set from UI.

Second observation - Reinstall (Change) doesn't prompt for credentials, unlike 
Install or Remove. 
>From log file on Reinstall:

MSI (s) (6C:C0) [19:44:39:276]: Product {39EB52BC-295A-4813-B85C-55FCEF59257C} 
is managed.
MSI (s) (6C:C0) [19:44:39:276]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (s) (6C:C0) [19:44:39:276]: User policy value 'AlwaysInstallElevated' is 0
MSI (s) (6C:C0) [19:44:39:276]: MSI_LUA: Credential prompt is not required at 
this point, product is managed and deployment compliant
MSI (s) (6C:C0) [19:44:39:276]: Note: 1: 2205 2:  3: MsiPackageCertificate 
MSI (s) (6C:C0) [19:44:39:276]: Note: 1: 2205 2:  3: MsiDigitalCertificate 
MSI (s) (6C:C0) [19:44:39:277]: PROPERTY CHANGE: Adding ProductState property. 
Its value is '5'.
MSI (s) (6C:C0) [19:44:39:277]: PROPERTY CHANGE: Adding ProductToBeRegistered 
property. Its value is '1'.
MSI (s) (6C:C0) [19:44:39:278]: Entering 
CMsiConfigurationManager::SetLastUsedSource.
MSI (s) (6C:C0) [19:44:39:278]: Specifed source is already in a list.
MSI (s) (6C:C0) [19:44:39:278]: User policy value 'SearchOrder' is 'nmu'
MSI (s) (6C:C0) [19:44:39:278]: Machine policy value 'DisableBrowse' is 0
MSI (s) (6C:C0) [19:44:39:278]: Machine policy value 'AllowLockdownBrowse' is 0
MSI (s) (6C:C0) [19:44:39:279]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (s) (6C:C0) [19:44:39:279]: User policy value 'AlwaysInstallElevated' is 0
MSI (s) (6C:C0) [19:44:39:279]: Product {39EB52BC-295A-4813-B85C-55FCEF59257C} 
is admin assigned: LocalSystem owns the publish key.
MSI (s) (6C:C0) [19:44:39:279]: Product {39EB52BC-295A-4813-B85C-55FCEF59257C} 
is managed.
MSI (s) (6C:C0) [19:44:39:279]: Running product 
'{39EB52BC-295A-4813-B85C-55FCEF59257C}' with elevated privileges: Product is 
assigned.
MSI (s) (6C:C0) [19:44:39:279]: Adding new sources is not allowed.
MSI (s) (6C:C0) [19:44:39:279]: Package name retrieved from configuration data: 
Test.msi'
MSI (s) (6C:C0) [19:44:39:279]: Determined that existing product (either this 
product or the product being upgraded with a patch) is installed per-machine.
MSI (s) (6C:C0) [19:44:39:279]: Note: 1: 2205 2:  3: Error 
MSI (s) (6C:C0) [19:44:39:281]: Note: 1: 2262 2: AdminProperties 3: -2147287038 
MSI (s) (6C:C0) [19:44:39:281]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (s) (6C:C0) [19:44:39:281]: User policy value 'AlwaysInstallElevated' is 0
MSI (s) (6C:C0) [19:44:39:281]: Product {39EB52BC-295A-4813-B85C-55FCEF59257C} 
is admin assigned: LocalSystem owns the publish key.
MSI (s) (6C:C0) [19:44:39:281]: Product {39EB52BC-295A-4813-B85C-55FCEF59257C} 
is managed.
MSI (s) (6C:C0) [19:44:39:281]: Running product 
'{39EB52BC-295A-4813-B85C-55FCEF59257C}' with elevated privileges: Product is 
assigned.
MSI (s) (6C:C0) [19:44:39:281]: Machine policy value 'EnableUserControl' is 0
MSI (s) (6C:C0) [19:44:39:281]: PROPERTY CHANGE: Adding RestrictedUserControl 
property. Its value is '1'.
MSI (s) (6C:C0) [19:44:39:281]: Ignoring disallowed property INSTALLDIR
MSI (s) (6C:C0) [19:44:39:281]: Ignoring disallowed property TARGETDIR
MSI (s) (6C:C0) [19:44:39:281]: Ignoring disallowed property VALUE



It shows the VALUE is set properly but while writing the registry passes it as 
" ".


Any help would be greatly appreciated in this regard. I can provide more 
details if needed.

Thanks
Sachin


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to