Re: [WiX-users] util:RegistrySearch default value if not found

2012-12-15 Thread up2date cyborg
It's ok, I found a work around here:
http://sourceforge.net/mailarchive/message.php?msg_id=30030043

On Sat, Dec 15, 2012 at 2:33 PM, up2date.cyb...@gmail.com <
up2date.cyb...@gmail.com> wrote:

> Hi, in a bundle, using util:RegistrySearch, is there a way to set a
> default value to a variable?
> What I have now:
>  Value="MyValue" Result="value" />
> I want to pass the value to a MSI package with:
> 
>
> If the registry value is not found, the command line of the msi is
> "MYMSIVAR=", so I'd like to:
> -define a default value if registry value doesn't exist
> OR
> -don't set the MsiProperty if the registry value doesn't exist
>
> Can someone help me? or tell me another way
> thanks
>
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] util:RegistrySearch default value if not found

2012-12-15 Thread up2date.cyb...@gmail.com
Hi, in a bundle, using util:RegistrySearch, is there a way to set a 
default value to a variable?
What I have now:

I want to pass the value to a MSI package with:


If the registry value is not found, the command line of the msi is 
"MYMSIVAR=", so I'd like to:
-define a default value if registry value doesn't exist
OR
-don't set the MsiProperty if the registry value doesn't exist

Can someone help me? or tell me another way
thanks

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] util:RegistrySearch default value

2012-10-30 Thread Rob Mensching
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 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:
>  bal:Overridable="yes" />
>  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:
>  bal:Overridable="yes" />
>  Result="exists" Variable="TestSearch" />
>  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  >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


Re: [WiX-users] util:RegistrySearch default value

2012-10-30 Thread Neil Sleightholm
It doesn't seem to work, it undefines the variable if the registry value 
doesn't exist.

So this is what I am trying:



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:




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 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


Re: [WiX-users] util:RegistrySearch default value

2012-10-30 Thread Rob Mensching
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 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
>
>
> --
> 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-apps/
> ___
> 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


[WiX-users] util:RegistrySearch default value

2012-10-29 Thread Neil Sleightholm
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

--
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-apps/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users