Hi, I am having some problems with a custom action to run the installed executable after it has been installed. When I try and install the compiled msi it comes up with the following error:
"There is a problem with this Windows Installer package. A program required for this install to complete could not be run..." Here is a part of my wxs: <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='ProgramFilesFolder' Name='PFiles'> <Directory Id='Clickstream' Name='CS' LongName='Clickstream'> <Directory Id='INSTALLDIR' Name='CS' LongName='$(env.Product)'> <Component Id='MainExecutable' Guid='E30FF110-1F54-11DC-B819- DDF255D89593'> <File Id='CsEXE' Name='cs.exe' DiskId='1' Source='.\$ (env.Product)\cs.exe' Vital='yes' /> <Registry Id='CsRegGuid' Root='HKLM' Key='Software\Clickstream\$ (env.Product)' Name='1' Action='write' Type='string' Value='$(env.Guid)' /> <Registry Id='CsRegStartup' Root='HKLM' Key='Software\Microsoft \Windows\CurrentVersion\Run' Name='$(env.Product)' Action='write' Type='string' Value='[INSTALLDIR]cs.exe' /> <RemoveFile Id='LogFile1' On='uninstall' Name='userlog.txt' LongName='userlog.txt' /> <RemoveFile Id='LogFile2' On='uninstall' Name='minfo.txt' LongName='machineinfo.txt' /> <RemoveFile Id='LogFile3' On='uninstall' Name='sysinfo.csv' LongName='sysinfo.csv' /> <RemoveFolder Id='RemoveFolder' On='uninstall' /> </Component> <Component Id='EULA' Guid='D7DB1B08-1F54-11DC-9342-AEF255D89593'> <File Id='EULA' Name='License.rtf' DiskId='1' Source='License.rtf'> <Shortcut Id="shortcutEULA" Directory="ProgramMenuDir" Name="EULA" LongName="End User License Agreement" /> </File> </Component> </Directory> </Directory> </Directory> <Directory Id="ProgramMenuFolder" Name="PMenu" LongName="Programs"> <Directory Id="ProgramMenuDir1" Name='CS' LongName='Clickstream' > <Directory Id="ProgramMenuDir" Name='Tool' LongName='$ (env.Product)' /> </Directory> </Directory> <Directory Id="DesktopFolder" Name="Desktop" /> </Directory> <CustomAction Id="SampleExe" FileKey="CsEXE" ExeCommand="" /> <InstallExecuteSequence> <Custom Action="SampleExe" After="InstallFiles" /> </InstallExecuteSequence> Thanks. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users