Hi Rob,

Thanks for your reply.

I checked the verbose log. And I found that the problem might not be caused by 
the PARAFFIN. The log shows that custom action tries to call RUN.exe from the 
path, which I set as default path, say d:\PathA, in main.wxs:

   <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="APPLICATIONFOLDER" Name="PathA">

<Property Id="WIXUI_INSTALLDIR" Value="APPLICATIONFOLDER" />

And this default path will be shown in InstallDirDlg. User can change it, say 
PathB and install. All the files will be copied to d:\PathB, including RUN.exe. 
However custom action still tries to call RUN.exe from PathA. Therefore, I 
modified InstallDirDlg.wxs, and add 
<Publish Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]">1</Publish>
To Control "Next".

The problem is resolved.




Regards,

Chunyan




-----Ursprüngliche Nachricht-----
Von: Rob Mensching [mailto:r...@robmensching.com] 
Gesendet: Freitag, 16. Oktober 2009 13:45
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] Load file by PARAFFIN, custom action not run

I don't use Paraffin but have you verified that the File/@Id value is staying 
constant from run to run? If it is check out a verbose log file from a failed 
install to get more information about what failed.
virtually, Rob Mensching - http://robmensching.com

On Fri, Oct 16, 2009 at 4:15 AM, Jiang, Chunyan (GE Healthcare) < 
chunyan.ji...@ge.com> wrote:

> Hi Wix - users,
>
> I use PARAFFIN.exe to generated .WXS file to include and update the 
> files. It is an excellent tool. See the link:
> http://www.wintellect.com/CS/blogs/jrobbins/archive/2007/10/21/wix-a-b
> et ter-tallow-paraffin.aspx?CommentPosted=true#commentmessage
>
> However, I have another problem. There is one file, which is included 
> in PARAFFIN generated .WXS file, like:
> <File Id="file_E92584CFAEE24DFD8B1E8BFD27E2F079" Checksum="yes"
> Source="MyPath\RUN.exe" />
>
> I will use this file in my .WXS file as Custom Action:
> <CustomAction Id="RUNInstall"
> FileKey="file_E92584CFAEE24DFD8B1E8BFD27E2F079" ExeCommand="RUN.exe 
> -install -quiet" Return="asyncWait" />
>
> Before, I included this RUN.exe manuelly in my .WXS file. And the 
> custion action always works. However, since I use PARAFFIN and still 
> use this RUN.exe, this custom action will not work some times. And 
> there is error message:
>
> There is a problem with this Windows Installer package. A program 
> required for this install to complete could not be run. Contact your 
> support personnel or package vender.
>
> If I comment out the line of this file in PARAFFIN generated file, and 
> add it manuelly to my .WXS file, it works again, even I use the same 
> content as in PARAFFIN generated file.
>
> It is really strange. Could you tell me how to resolve it?
>
> Thanks again.
>
> Chunyan
>
> ----------------------------------------------------------------------
> -------- Come build with us! The BlackBerry(R) Developer Conference in 
> SF, CA is the only developer event you need to attend this year. 
> Jumpstart your developing skills, take BlackBerry mobile applications 
> to market and stay ahead of the curve. Join us from November 9 - 12, 
> 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the 
only developer event you need to attend this year. Jumpstart your developing 
skills, take BlackBerry mobile applications to market and stay ahead of the 
curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to