[wix-users] Can anyone give me a nice simple example of returning values from a Custom Action?

harald goci harald.goci at panagenda.com
Wed Sep 13 02:52:40 PDT 2017

Hello Paul!
I created a very simple WiX custom action and integrated it in very simple
Sources can be found here:

Consider to make log files of the installation in verbose mode. Then you
will see the property changes in the log.

Hope that helps,
Harald Goci
Senior Software Engineer

Email: harald.goci at panagenda.com - Web: www.panagenda.com
Phone: +43 1 890 12 89-44 - Fax: +43 1 890 12 89-15

(Embedded image moved to file: pic14604.jpg)

panagenda GmbH - Schreyvogelgasse 3/10 - 1010 Vienna - Austria
Registered Office: Vienna - HG Wien - FN 293516t - VAT-ID: ATU63362738
Executive Directors: Florian Vogler (CEO & CTO), Felix Vogler (CFO & COO)

(Embedded image moved to file: pic03902.jpg)

The information in this E-Mail is confidential and privileged. It is
intended solely for the addressee. Access to this E-Mail by anyone else is
unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken in reliance on it is prohibited
and will be unlawful. If you receive this message in error, please notify
the sender immediately and delete all copies of this message.

From:	Paul Mumford via wix-users <wix-users at lists.wixtoolset.org>
To:	wix-users at lists.wixtoolset.org
Cc:	Paul Mumford <paul.mumford at gmail.com>
Date:	13.09.2017 11:15
Subject:	Re: [wix-users] Can anyone give me a nice simple example of
            returning values from a Custom Action?
Sent by:	"wix-users" <wix-users-bounces at lists.wixtoolset.org>

Hi Jospeh, thanks for replying!

Yes the cases of the values are correct but to be certain ive just changed
them all to be upper case both in the c# code and the wxs. Like the man
says in alien, 'its the only way to be sure' :) Didnt make any difference.

With regards to costing:
a) I only vaguely know what that means, i think its the sequence of the UI
bit that determines the presents size of the install right? I dont know if
its related but we decided to use the '"WixUI_Minimal" instead of the Mondo
one (we just dont need the extra bits for this application). The custom UI
runs straight after the user ticks the accept license and presses install
which is fine and what we want.

I think you are onto something with the scheduling though, what would you
recommend for our requirements there? The various types are listed but I
dont really know what any of them mean. 'InstallValidate' makes sense in my
head but i suppose the point im after is directly after user presses
install button and before the actual MSI actions if that makes sense.

Could someone tell me the etiquette of replying to the mailing list, im
new. Should I reply to the group in general or just individuals or both?
Cheers P.

On 12 September 2017 at 16:22, Joseph L. Casale <jcasale at activenetwerx.com>

> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Paul Mumford via wix-users
> Sent: Tuesday, September 12, 2017 2:05 AM
> To: wix-users at lists.wixtoolset.org
> Cc: Paul Mumford <paul.mumford at gmail.com>
> Subject: [wix-users] Can anyone give me a nice simple example of
> values from a Custom Action?
> > In c# I say:
> >
> > session["THING_INSTALL_TYPE"] = "Client";
> >              * <Condition>**THING_INSTALL_TYPE = "Client"</Condition>*
> >             </Component>
> Are you certain you are writing the value in the case that your
> conditional checks with?
> It may be more robust to check for the value case insensitively.
> Also, I believe you are scheduling this too late, InstallValidate runs
> after costing
> and it's costing which indicates what is about to be installed so the
> condition is
> evaluated before.
> jlc

WiX Toolset Users Mailing List provided by FireGiant

More information about the wix-users mailing list