Is this a file you're installing? If so, the FileKey should be set to the Id (not the filename) of the File element that installs the EXE.
Windows Installer should be coping with paths with spaces in here - it's hardly a rare requirement considering that probably 99% of packages install to "[drive]:\Program Files". Are you sure Subtext.exe can cope with spaces in the command line parameter? If your program is dependent on the Visual C++ runtime DLL and you're installing on a side-by-side capable OS (Windows XP or newer) and the runtime is installed via a merge module, do be aware that the runtime isn't available until after InstallFinalize. Any custom action dynamically linking to the C runtime will fail on systems where the appropriate CRT version is not yet installed. -- Mike Dimmick -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harm-Jan Zwinderman Sent: 19 June 2007 11:42 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Question about CustomAction Dear All, I am trying to use a CustomAction in my installer. The CustomAction looks like this: <CustomAction Id="SetPort" FileKey='Subtext.exe' ExeCommand='file="[INSTALLDIR]Ports.cfg"' Return="check"/> The CustomAction is called in the InstallExecuteSequence as: <Custom Action="SetPort" After="InstallFinalize">1</Custom> When running the installer, the product is installed. However at the end of the installation process I do get an error message: There is a problem with this Windows Installer package...... (Error 1722) Judging the msi log the install fails on my CustomAction. The product is installed in the directory 'C:\Program Files\Charm\Product' I do have the impression that running the CustomAction fails because the command: C:\Program Files\Charm\Product\Subtext.exe "C:\Program Files\Charm\Product\Ports.cfg" contais a space in the path. That is it cannot run C:\Program Files\Charm\Product\Subtext.exe because of the space between 'Program' and 'Files' in C:\Program Files\. Is there a way to circumvent this? Thanks in advance. Harm-Jan Zwinderman -- Charm B.V. Kruislaan 406 1098 SM Amsterdam T +31 (0)20-751 2190 [EMAIL PROTECTED] ------------------------------------------------------------------------- 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 ------------------------------------------------------------------------- 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