I've found using the @Name on Payload as well as MsiPackage and MspPackage 
elements allows you to place the files in specific sub folders. So using 
Name="payload\StealthConsole\Setup.exe" and 
Name="payload\StealthConsole\StealthWebparts.wsp" would ensure the files are in 
the same folder, however I seem to remember that the current working directory 
of your EXE is not always the directory where the exe resides. Odds are 
Setup.exe is dependent on the CWD to find the WSP file.

I seem to remember a request for a bug to be logged that the engine didn't set 
the CWD to that of the exe before invoking it, but a quick search didn't show 
any hits.

-----Original Message-----
From: Hans ter Horst [mailto:hoshis...@gmail.com] 
Sent: Thursday, October 25, 2012 10:05 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Burn: Are EXE file and Payload content placed in the same 
directory for an ExePackage?

Hello. As part of my bundle I have to deploy a SharePoint webpart and I use the 
tool most people use for this and tool comes with a Setup.exe, an XML file 
describing the installation and the WSP file to be deployed. I have the 
following in my Bundle.wxs file:

<PackageGroup Id="DeployWebConsole">
<ExePackage Id="DeployWebConsole"
                          Cache="no" Compressed="no"
                          DisplayName="DeployWebConsole" PerMachine="yes"
                          Permanent="yes"
                          Vital="yes"
                          SourceFile="Binaries\StealthConsole\Setup.exe"
                          InstallCondition="InstallConsole=1" > 
<PayloadGroupRef Id="StealthWebparts"/> </ExePackage> </PackageGroup>

With a Fragment describing the payload:

<Fragment>
<PayloadGroup Id="StealthWebparts">
<Payload SourceFile="Binaries\StealthConsole\StealthWebparts.wsp"/>
<Payload SourceFile="Binaries\StealthConsole\Setup.exe.config"/>
<Payload SourceFile="Binaries\StealthConsole\EULA.rtf"/>
</PayloadGroup>
</Fragment>

The Setup.exe finds the config file without problem but cannot find the WSP 
file. Normally when all three are in the same directory the install works fine. 
Any idea what could be going on?

Thanks!
--
http://monochrome.me.uk/blog/
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics Download AppDynamics Lite for free 
today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to