Re: [WiX-users] Is there a way to dump all MSI properties?

2008-09-05 Thread Bob Arnson
Christopher Karper wrote:
> You write an immediate CA to do your token replacement, and put the
> resulting string in a temporary record...   Then you schedule your deferred
> CA for execution.
>   

MsiFormatRecord/WcaGetFormattedString take care of resolving all 
[FormattedPropertyValues] so you don't need to find individual values. 
Or, if you wanted to, you could parse the incoming data to look for all 
references to properties (say, if you wanted to use %prop% or {prop} or 
some other non-MSI approach) and look up each one individually.

-- 
sig://boB
http://joyofsetup.com/



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Is there a way to dump all MSI properties?

2008-09-05 Thread Christopher Karper
No, you're trying to do token replacement in files based on properties,
right?   That's exactly what I'm doing.

You write an immediate CA to do your token replacement, and put the
resulting string in a temporary record...   Then you schedule your deferred
CA for execution.

You write the deferred CA to go through that table with the temporary
records, and write them out to target filenames.  Voila, a 2-stage token
replacement scheme that doesn't affect the system until deferred actions
run.

Chris

On Fri, Sep 5, 2008 at 10:44 AM, dB. <[EMAIL PROTECTED]> wrote:

> That's not what I am trying to accomplish. I need a list of all
> properties available during an immediate CA. I don't know the property
> names ahead of time. Thx.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Christopher Karper
> Sent: Friday, September 05, 2008 10:02 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Is there a way to dump all MSI properties?
>
> The way I handled this for my DBScript piece was to load the file into a
> temporary table in an immediate action, then use the table entries in
> the
> deferred CA.  By loading the file immediately, you have access to all
> the
> properties, and can store it post-process.  Then your deferred action
> can
> use it to write out the contents to disk, or whatever other activity you
> had
> planned.
>
> Chris
>
> On Fri, Sep 5, 2008 at 8:47 AM, dB. <[EMAIL PROTECTED]> wrote:
>
> > It actually doesn't work. You only get the properties that were built
> > into the MSI at build time. Any ideas?
> >
> > Thx
> > dB.
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Rob
> > Mensching
> > Sent: Thursday, September 04, 2008 11:58 PM
> > To: General discussion for Windows Installer XML toolset.
> > Subject: Re: [WiX-users] Is there a way to dump all MSI properties?
> >
> > Yeah...
> >
> > -Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of dB.
> > Sent: Thursday, September 04, 2008 06:48
> > To: General discussion for Windows Installer XML toolset.
> > Subject: Re: [WiX-users] Is there a way to dump all MSI properties?
> >
> > Duh. Is it just as simple as the contents of the Property table +
> > Directory table for directories?
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of dB.
> > Sent: Thursday, September 04, 2008 9:46 AM
> > To: General discussion for Windows Installer XML toolset.
> > Subject: [WiX-users] Is there a way to dump all MSI properties?
> >
> > Hi,
> >
> >
> >
> > This is slightly unrelated to wix.
> >
> >
> >
> > I'm writing a deferred custom action that can evaluate a template
> file.
> > I want to expose all MSI properties as potential variables, so that
> the
> > user can deploy a file with x=[MSIPUBLICPROPERTY] in it and get the
> > value of MSIPUBLICPROPERTY written to the file.
> >
> >
> >
> > Because this is a deferred CA, I need to collect the properties
> upfront
> > in an immediate custom action. Is there a way to dump all MSI (public)
> > properties?
> >
> >
> >
> > Thx
> >
> > dB.
> >
> >
> >
> > -dB.
> >
> > dblock.org <http://www.dblock.org/>  / foodcandy.com
> > <http://www.foodcandy.com/>
> >
> >
> >
> >
> 
> > -
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> > challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> > prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> > world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > ___
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> 
> > -
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> > challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> > prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> > world
> 

Re: [WiX-users] Is there a way to dump all MSI properties?

2008-09-05 Thread Bob Arnson
dB. wrote:
> That's not what I am trying to accomplish. I need a list of all
> properties available during an immediate CA. I don't know the property
> names ahead of time. Thx.
>   

Properties set at runtime aren't reflected in the Property table and MSI 
doesn't offer a "property dump" API.

-- 
sig://boB
http://joyofsetup.com/



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Is there a way to dump all MSI properties?

2008-09-05 Thread dB.
That's not what I am trying to accomplish. I need a list of all
properties available during an immediate CA. I don't know the property
names ahead of time. Thx.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Christopher Karper
Sent: Friday, September 05, 2008 10:02 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Is there a way to dump all MSI properties?

The way I handled this for my DBScript piece was to load the file into a
temporary table in an immediate action, then use the table entries in
the
deferred CA.  By loading the file immediately, you have access to all
the
properties, and can store it post-process.  Then your deferred action
can
use it to write out the contents to disk, or whatever other activity you
had
planned.

Chris

On Fri, Sep 5, 2008 at 8:47 AM, dB. <[EMAIL PROTECTED]> wrote:

> It actually doesn't work. You only get the properties that were built
> into the MSI at build time. Any ideas?
>
> Thx
> dB.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Rob
> Mensching
> Sent: Thursday, September 04, 2008 11:58 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Is there a way to dump all MSI properties?
>
> Yeah...
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of dB.
> Sent: Thursday, September 04, 2008 06:48
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Is there a way to dump all MSI properties?
>
> Duh. Is it just as simple as the contents of the Property table +
> Directory table for directories?
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of dB.
> Sent: Thursday, September 04, 2008 9:46 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] Is there a way to dump all MSI properties?
>
> Hi,
>
>
>
> This is slightly unrelated to wix.
>
>
>
> I'm writing a deferred custom action that can evaluate a template
file.
> I want to expose all MSI properties as potential variables, so that
the
> user can deploy a file with x=[MSIPUBLICPROPERTY] in it and get the
> value of MSIPUBLICPROPERTY written to the file.
>
>
>
> Because this is a deferred CA, I need to collect the properties
upfront
> in an immediate custom action. Is there a way to dump all MSI (public)
> properties?
>
>
>
> Thx
>
> dB.
>
>
>
> -dB.
>
> dblock.org <http://www.dblock.org/>  / foodcandy.com
> <http://www.foodcandy.com/>
>
>
>
>

> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>

> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>

> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>

-
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the

Re: [WiX-users] Is there a way to dump all MSI properties?

2008-09-05 Thread Christopher Karper
The way I handled this for my DBScript piece was to load the file into a
temporary table in an immediate action, then use the table entries in the
deferred CA.  By loading the file immediately, you have access to all the
properties, and can store it post-process.  Then your deferred action can
use it to write out the contents to disk, or whatever other activity you had
planned.

Chris

On Fri, Sep 5, 2008 at 8:47 AM, dB. <[EMAIL PROTECTED]> wrote:

> It actually doesn't work. You only get the properties that were built
> into the MSI at build time. Any ideas?
>
> Thx
> dB.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Rob
> Mensching
> Sent: Thursday, September 04, 2008 11:58 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Is there a way to dump all MSI properties?
>
> Yeah...
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of dB.
> Sent: Thursday, September 04, 2008 06:48
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Is there a way to dump all MSI properties?
>
> Duh. Is it just as simple as the contents of the Property table +
> Directory table for directories?
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of dB.
> Sent: Thursday, September 04, 2008 9:46 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] Is there a way to dump all MSI properties?
>
> Hi,
>
>
>
> This is slightly unrelated to wix.
>
>
>
> I'm writing a deferred custom action that can evaluate a template file.
> I want to expose all MSI properties as potential variables, so that the
> user can deploy a file with x=[MSIPUBLICPROPERTY] in it and get the
> value of MSIPUBLICPROPERTY written to the file.
>
>
>
> Because this is a deferred CA, I need to collect the properties upfront
> in an immediate custom action. Is there a way to dump all MSI (public)
> properties?
>
>
>
> Thx
>
> dB.
>
>
>
> -dB.
>
> dblock.org <http://www.dblock.org/>  / foodcandy.com
> <http://www.foodcandy.com/>
>
>
>
> 
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> 
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> 
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Is there a way to dump all MSI properties?

2008-09-05 Thread dB.
It actually doesn't work. You only get the properties that were built
into the MSI at build time. Any ideas?

Thx
dB.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rob
Mensching
Sent: Thursday, September 04, 2008 11:58 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Is there a way to dump all MSI properties?

Yeah...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dB.
Sent: Thursday, September 04, 2008 06:48
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Is there a way to dump all MSI properties?

Duh. Is it just as simple as the contents of the Property table +
Directory table for directories?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dB.
Sent: Thursday, September 04, 2008 9:46 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Is there a way to dump all MSI properties?

Hi,



This is slightly unrelated to wix.



I'm writing a deferred custom action that can evaluate a template file.
I want to expose all MSI properties as potential variables, so that the
user can deploy a file with x=[MSIPUBLICPROPERTY] in it and get the
value of MSIPUBLICPROPERTY written to the file.



Because this is a deferred CA, I need to collect the properties upfront
in an immediate custom action. Is there a way to dump all MSI (public)
properties?



Thx

dB.



-dB.

dblock.org <http://www.dblock.org/>  / foodcandy.com
<http://www.foodcandy.com/>




-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Is there a way to dump all MSI properties?

2008-09-04 Thread Rob Mensching
Yeah...

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of dB.
Sent: Thursday, September 04, 2008 06:48
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Is there a way to dump all MSI properties?

Duh. Is it just as simple as the contents of the Property table +
Directory table for directories?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dB.
Sent: Thursday, September 04, 2008 9:46 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Is there a way to dump all MSI properties?

Hi,



This is slightly unrelated to wix.



I'm writing a deferred custom action that can evaluate a template file.
I want to expose all MSI properties as potential variables, so that the
user can deploy a file with x=[MSIPUBLICPROPERTY] in it and get the
value of MSIPUBLICPROPERTY written to the file.



Because this is a deferred CA, I need to collect the properties upfront
in an immediate custom action. Is there a way to dump all MSI (public)
properties?



Thx

dB.



-dB.

dblock.org <http://www.dblock.org/>  / foodcandy.com
<http://www.foodcandy.com/>




-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Is there a way to dump all MSI properties?

2008-09-04 Thread dB.
Duh. Is it just as simple as the contents of the Property table +
Directory table for directories?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dB.
Sent: Thursday, September 04, 2008 9:46 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Is there a way to dump all MSI properties?

Hi,

 

This is slightly unrelated to wix.

 

I'm writing a deferred custom action that can evaluate a template file.
I want to expose all MSI properties as potential variables, so that the
user can deploy a file with x=[MSIPUBLICPROPERTY] in it and get the
value of MSIPUBLICPROPERTY written to the file.

 

Because this is a deferred CA, I need to collect the properties upfront
in an immediate custom action. Is there a way to dump all MSI (public)
properties?

 

Thx

dB.

 

-dB.

dblock.org   / foodcandy.com
 

 


-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users