You could work around the issue by writing a small exe that changes the
current directory then calls the troublesome exe, then use that as your
exepackage and add the troublesome exe and txt as its payload.

Maybe the wix team (or you) could implement a
ExePackage@changeCurrentDirectory option, this may be as simple as writing
the wrapper exe.

Dave

-----Original Message-----
From: Miss Parker [mailto:caisa.westl...@gmail.com] 
Sent: 13 June 2012 06:27
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Burn: Exe package can't find payload file that'snot
a dll.

Hi Matt!

You mean like this?

 <ExePackage Id="TTUpdate" SourceFile="C:\Downloads\setversion.EXE"
PerMachine="yes" Vital="yes" >
        <Payload Id="Versiontext" SourceFile="C:\Downloads\version.txt" />

</ExePackage>

This is the way I have it today, and both files are copied to the same
package cache folder, but since the installation process of the exe isn't
started from that folder it's not going to find the text file. The process
is started from the path where the BA.exe is, and that's where it's looking
for the text file.

When I have the same case but the payload is a dll, then there is no problem
(maybe the dll gets registered in GAC?)

//Caisa

--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Burn-Exe-packag
e-can-t-find-payload-file-that-s-not-a-dll-tp7578750p7578794.html
Sent from the wix-users mailing list archive at Nabble.com.

-----------------------------------------------------------------------------
-
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to