[wix-users] Anyone know how to set a property from a powerscript customaction ?

Gary M garym at oedata.com
Fri Apr 29 14:03:47 PDT 2016


Phill,

Thanks for the reply.  Unfortunately, I'm not and cannot using VS for this
project. I wish I could.  I'm trying to resist introducing/enabling
platform technology that has not been not previously approved.  I also need
to stress the need for scripting language solutions. Introduction of
compiled/binary artifacts will alter the deployment timeline possibly
adding 6-9 months to release schedules as a well as increased costs.

The powershell issue boils down to language libraries, more specifically
what's shared between the installer's scope and the outboard scripting
motor. As indicated by Bob A on a stackoverflow thread, Jscript and
vbScript runs in the installer's runtime context. Conversely, powershell
and other spawned processes execute in private contexts. This means I
require a bridge/shim technology between powershell and msi contexts, a new
project budget I will not be able to get approved. The most timely solution
is a pivot, discard powershell for these functions and shift to vbScript or
Jscript.

The wix web site should  have a "best practices" section to help educate
developers new to wix and avoid some of these costly pitfalls. I'm sure I'm
not the only person bumping into these issues.

I


On Fri, Apr 29, 2016 at 7:11 AM, Phill Hogland <phill.hogland at rimage.com>
wrote:

> I don't know if (or why it would be) in Power Script.  As also indicated
> later in that thread, it appears to be a DTF C# example.  If using Visual
> Studio and if WiX toolset is installed create a new Windows Installer XML
> C# Custom Action project and then drop that code over the sample code that
> Votive created for you.  The source with samples and documentation for DTF
> are in the WiX Toolset source download.
>
> ________________________________________
> From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of
> Gary M <garym at oedata.com>
> Sent: Thursday, April 28, 2016 6:44:10 PM
> To: WiX Toolset Users Mailing List
> Subject: [wix-users] Anyone know how to set a property from a powerscript
>      customaction ?
>
> I was using vbscript for customaction, but I just realized jscript and
> vbscript are not allowed on these systems.
>
> I was using this as a guidance:
>
> http://stackoverflow.com/questions/1373600/how-do-i-populate-a-combobox-at-install-time-in-wix
>
> I'm assuming Session.Database.OpenView() is available in powerscript, but I
> can't find a reference to it..  Just calling Session.Database.OpenView(...)
>  fails.
>
> Any suggestions ?
>
> -g
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-users mailing list