[wix-users] Running a powershell script as a custom action...

Edwin Castro egcastr at gmail.com
Thu Jul 13 18:42:02 PDT 2017


PowerShell is written in C#. To run your script the target system already
needs to have PowerShell and, transitively, .NET.

--
Edwin G. Castro


On Thu, Jul 13, 2017 at 6:39 PM, Joel Budreau <joel.budreau at gmail.com>
wrote:

> Our installers don't currently require/install .NET. So I'm hesitant to add
> the full .NET redist to our installer just to run a C# custom action.
> Unless there's something here that I'm missing...
>
> On Thu, Jul 13, 2017 at 4:38 PM, Joseph L. Casale <
> jcasale at activenetwerx.com
> > wrote:
>
> > -----Original Message-----
> > From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On
> Behalf
> > Of Joel Budreau
> > Sent: Thursday, July 13, 2017 5:00 PM
> > To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> > Subject: [wix-users] Running a powershell script as a custom action...
> >
> > > It appears that the unofficial/official way to detect if a program is
> > > running inside of an Azure VM is to run this powershell script:
> > > https://gallery.technet.microsoft.com/scriptcenter/
> Detect-Windows-Azure-
> > > aed06d51
> >
> > Have you actually looked at the code in the script? Why not just author a
> > native custom action in C#?
> >
> > ____________________________________________________________________
> > 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