[wix-users] ExePackage with Payload

Vanniekerk, Tyrel (GE Healthcare) tyrel.vanniekerk at ge.com
Thu Jan 26 07:14:19 PST 2017


Hi,

I have several prerequisites for my installer that have more than one file.  Stuff like Adobe Acrobat and PDF 995 etc.  The snippet bellow works, but the installed build puts all the payload files in the setup exe except for the autosetup.exe file.  I have not found a way to get the ExePackage to refer to a payload file, it seems to want to have a physical file reference only.

Also, is there a way to just have it create the Prerequisites\Pdf995 folder with all the files in it instead of adding all those files to the setup exe?  How it does it right now if you have just the one exe in the ExePackage tag?

    <Fragment>
        <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Pdf995" Variable="Pdf995_1" Value="DisplayName" Format="raw" Result="value"/>
        <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Pdf995" Variable="Pdf995_2" Value="DisplayName" Win64="yes" Format="raw" Result="value"/>
        <PackageGroup Id="Pdf995">
            <ExePackage Id="Pdf995Package" DisplayName="PDF 995" Name="Prerequisites\Pdf995\autosetup.exe" SourceFile="$(var.SolutionDir)Prerequisites\Pdf995\autosetup.exe" Cache="no" Compressed="no" Permanent="yes" PerMachine="yes" Vital="yes" DetectCondition="(Pdf995_1="Pdf995" OR Pdf995_2="Pdf995")">
                <Payload Name="Prerequisites\Pdf995\autosetup.exe" SourceFile="$(var.SolutionDir)Prerequisites\Pdf995\autosetup.exe"/>
                <Payload Name="Prerequisites\Pdf995\install.ini" SourceFile="$(var.SolutionDir)Prerequisites\Pdf995\install.ini"/>
                <Payload Name="Prerequisites\Pdf995\pdf995.ini" SourceFile="$(var.SolutionDir)Prerequisites\Pdf995\pdf995.ini"/>
                <Payload Name="Prerequisites\Pdf995\pdf995s.exe" SourceFile="$(var.SolutionDir)Prerequisites\Pdf995\pdf995s.exe"/>
                <Payload Name="Prerequisites\Pdf995\PrinterShare.bat" SourceFile="$(var.SolutionDir)Prerequisites\Pdf995\PrinterShare.bat"/>
                <Payload Name="Prerequisites\Pdf995\ps2pdf995.exe" SourceFile="$(var.SolutionDir)Prerequisites\Pdf995\ps2pdf995.exe"/>
            </ExePackage>
        </PackageGroup>
    </Fragment>

Thanks,
Tyrel


More information about the wix-users mailing list