I don't know that it is a bug (it's a reasonable behavior)... but the ability to have a default value is certainly a reasonable feature request.
On Tue, Oct 30, 2012 at 7:55 AM, Neil Sleightholm <n...@x2systems.com>wrote: > It doesn't seem to work, it undefines the variable if the registry value > doesn't exist. > > So this is what I am trying: > <Variable Name="Test" Type="numeric" Value="1" Persisted="yes" > bal:Overridable="yes" /> > <util:RegistrySearch Root="HKLM" Key="SOFTWARE\ACME" Value="Test" > Variable="Test" /> > > It I run the bundle and look in the log I see this: > [2080:1F4C][2012-10-30T14:49:33]: Initializing numeric variable 'Test' to > value '1' > > But if the registry value doesn't exist at the end of the log file where > the variables are listed "Test" is missing. > > As a workaround I am having to do this: > <Variable Name="Test" Type="numeric" Value="1" Persisted="yes" > bal:Overridable="yes" /> > <util:RegistrySearch Root="HKLM" Key="SOFTWARE\ACME" Value="Test" > Result="exists" Variable="TestSearch" /> > <util:RegistrySearch Root="HKLM" Key="SOFTWARE\ACME" Value="Test" > Variable="Test" Condition="TestSearch" /> > > Is this a bug? > > Neil > > -----Original Message----- > From: Rob Mensching [mailto:r...@robmensching.com] > Sent: 30 October 2012 13:55 > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] util:RegistrySearch default value > > Does it work if you define the Variable and give it a value? The > RegistrySearch runs later and should update it. > > On Mon, Oct 29, 2012 at 3:05 PM, Neil Sleightholm <n...@x2systems.com > >wrote: > > > Is it possible to set a variable to a default value if a registry > > value doesn't exist when using the util:RegistrySearch in a bundle > > like you can with Properties and RegistrySearch in an MSI? > > > > Neil > > > > Neil Sleightholm > > X2 Systems Limited > > n...@x2systems.com<mailto:n...@x2systems.com> > > > > > > ---------------------------------------------------------------------- > > -------- The Windows 8 Center - In partnership with Sourceforge Your > > idea - your app - 30 days. > > Get started! > > http://windows8center.sourceforge.net/ > > what-html-developers-need-to-know-about-coding-windows-8-metro-style-a > > pps/ _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > -- > virtually, > > Rob Mensching > http://RobMensching.com LLC > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics Download AppDynamics Lite for > free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- virtually, Rob Mensching http://RobMensching.com LLC ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users