You need a Custom Action Type 34 to run an exe with a working directory. Try this:
<CustomAction Id='LaunchFile' Directory='INSTALLDIR' ExeCommand='[INSTALLDIR]install_silent.bat' Return='asyncNoWait' /> K-ballo.- Charlie Grosvenor escribió: > > I am trying to run an application at the end of an install. The > application needs files that are installed as part of the install and > they need to be in the same directory. The CustomAction line I have is: > > <CustomAction Id='LaunchFile' FileKey='install_silent.bat' > ExeCommand='' Return='asyncWait' /> > > The above is trying to start the application in “c:\windows\system32” > not the application directory that it is installed in. Could somebody > tell me what I am doing wrong? Also how to I run an application at > uninstall? > > You can see my whole .wxs file below: > > <?xml version="1.0" encoding="utf-8"?> > > <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> > > <Product Id="AD2D4607-2DAF-4459-AB53-A5E6733CC27F" > UpgradeCode="95056130-FDDB-4835-BA81-F4CBBD2EFFAC" Name="UltraVNC Hook > Driver" Language="1033" Version="1.0.0.0" Manufacturer="UltraVNC"> > > <Package Description="UltraVNC Hook Driver" Comments="UltraVNC Hook > Driver" InstallerVersion="200" Compressed="yes" /> > > <Media Id="1" Cabinet="UltraVNC.cab" EmbedCab="yes" /> > > <Directory Id="TARGETDIR" Name="SourceDir"> > > <Directory Id="ProgramFilesFolder"> > > <Directory Id="INSTALLLOCATION" Name="UltraVNC Driver"> > > <Component Id="ProductComponent" > Guid="35137132-23B9-45fc-BC37-8AF22A300C4E"> > > <File Id='before.txt' Name='before.txt' DiskId='1' > Source='ultravnc\driver\before.txt'/> > > <File Id='install.bat' Name='install.bat' DiskId='1' > Source='ultravnc\driver\install.bat'/> > > <File Id='install_silent.bat' Name='install_silent.bat' DiskId='1' > Source='ultravnc\driver\install_silent.bat'/> > > <File Id='license.txt' Name='license.txt' DiskId='1' > Source='ultravnc\driver\license.txt'/> > > <File Id='setupdrv.exe' Name='setupdrv.exe' DiskId='1' > Source='ultravnc\driver\setupdrv.exe'/> > > <File Id='uninstall.bat' Name='uninstall.bat' DiskId='1' > Source='ultravnc\driver\uninstall.bat'/> > > <File Id='uninstall_silent.bat' Name='uninstall_silent.bat' DiskId='1' > Source='ultravnc\driver\uninstall_silent.bat'/> > > <File Id='vnccom.sys' Name='vnccom.sys' DiskId='1' > Source='ultravnc\driver\vnccom.sys'/> > > <File Id='vncdrv.dll' Name='vncdrv.dll' DiskId='1' > Source='ultravnc\driver\vncdrv.dll'/> > > <File Id='vncdrv.inf' Name='vncdrv.inf' DiskId='1' > Source='ultravnc\driver\vncdrv.inf'/> > > <File Id='vncdrv.sys' Name='vncdrv.sys' DiskId='1' > Source='ultravnc\driver\vncdrv.sys'/> > > <File Id='vnchelp.dll' Name='vnchelp.dll' DiskId='1' > Source='ultravnc\driver\vnchelp.dll'/> > > </Component> > > </Directory> > > </Directory> > > </Directory> > > <Condition Message='This application only runs on Windows XP'> > > VersionNT = 501 > > </Condition> > > <InstallExecuteSequence> > > <Custom Action='LaunchFile' After='InstallFinalize'/> > > </InstallExecuteSequence> > > <CustomAction Id='LaunchFile' FileKey='install_silent.bat' > ExeCommand='' Return='asyncWait' /> > > <Feature Id="UltraVNCFeature" Title="UltraVNC Feature" Level="1"> > > <ComponentRef Id="ProductComponent" /> > > </Feature> > > </Product> > > </Wix> > > Thanks > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users