Hi Bob, This makes sense, however I am not retrieving values set during the install time.
During the change only the properties set in UI sequence are not getting forwarded to Install sequence. and this happens only on machines with UAC enabled and logged in user is non build-in Admin. In other cases it works all well. To note: All works well if I run MSI with elevated command prompt or on a machine with UAC disabled. >From one of the MSDN posts here >(http://social.msdn.microsoft.com/forums/en-US/windowscompatibility/thread/48265402-1fbc-41d4-aedc-2c711750fe4a/) > this is what I am facing: (I haven't got any response to this on that post) Vista's new UAC and the existing managed install functionality are interacting in a bad way for me. My software allows you to change some settings when you select Modify from Software Explorer. The UAC prompt doesn't appear, the install is automatically elevated, BUT the install also sets the RestrictedUserControl property that prevents any of the new settings from reaching the server side of the installation: MSI (s) (E4:C8) [14:30:51:473]: PROPERTY CHANGE: Adding RestrictedUserControl property. Its value is '1'. MSI (s) (E4:C8) [14:30:51:473]: Ignoring disallowed property INSTALLDIR MSI (s) (E4:C8) [14:30:51:473]: Ignoring disallowed property... "Elevation" is not useful here. We need full privileges for a successful re-install. Before Vista, we used to test if the user is an admin and give an error message if not. Vista gives us the capability to tell if the user is an admin or if the install is elevated. But how do we know in advance if RestrictedUserControl will be set? We don't want to wait until the server side of the installation starts, after the user has already entered data. Could there be a way to force UAC elevation when the user selects Modify from add/remove programs? Many ways are provided to suppress the UAC prompt, but how do we make it appear when we need it? > Date: Mon, 8 Mar 2010 08:36:34 -0500 > From: b...@joyofsetup.com > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] Reinstall not updating correct registry value. > > On 3/6/2010 3:06 PM, Sachin Dubey wrote: > > My installer creates a registry key in HKLM and stores the INSTALLDIR > > value. It provides default INSTALLDIR, however user can change it and the > > changed value gets stored in registry. > > > MSI doesn't persist property values for you, so you need to write them > like you're doing and retrieve them using RegistrySearch for maintenance > mode like reinstall. > > -- > sig://boB > http://joyofsetup.com/ > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users _________________________________________________________________ Hotmail: Powerful Free email with security by Microsoft. http://clk.atdmt.com/GBL/go/201469230/direct/01/ ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users