[wix-users] How to include a file as a binary and use it in a WixCA command line

Gary M garym at oedata.com
Tue May 3 14:07:35 PDT 2016


Thanks for the reply Walter

The WixCA uses a different construct. The command line is formed in a
unique customaction. The executing customaction uses the Property attribute
 to link the command line to to the WixCA dll.  I would need a reference to
accessible to replace string: [INSTALLER_SCRIPTS_DIR]install-smtp.ps1


    <CustomAction Id="installSMTPCmdLine"
                  Property="installSMTPExec"

Value=""C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe"
-ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -InputFormat
None -File [INSTALLER_SCRIPTS_DIR]install-smtp.ps1"
                  Execute="immediate" />

    <CustomAction Id="installSMTPExec"
                  BinaryKey="WixCA"
                  DllEntry="CAQuietExec64"
                  Execute="deferred"
                  Return="check"
                  Impersonate="no" />



On Tue, May 3, 2016 at 10:51 AM, Walter Dexter <wfdexter at gmail.com> wrote:

> Try this. I think it's right.
>
> <Binary Id="CreateHostsEXE"
> SourceFile="../../scripts/generateHostsFile.exe" />
> <CustomAction Id="OurAction"
>               FileKey="CreateHostsEXE"
>               ExeCommand="our command line args"
>               Execute="deferred"
>               Return="check" />
>
>
> On Tue, May 3, 2016 at 6:09 AM, Gary M <garym at oedata.com> wrote:
>
> > Hi,
> >
> > I have a few script files used with WixCA  command line. I would like to
> > access the file without having them installed. I'm looking to define the
> > scripts treated as  <binary>,  but don't know how to address them ie push
> > them into a command line.
> >
> > Help is appreciated
> >
> > ____________________________________________________________________
> > 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