Your Custom Action has to be deferred.  If it is immediate (the
default), then it is run before the exe gets installed onto the system.

-Brian Simoneau

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
mikebartlett
Sent: Wednesday, May 30, 2007 12:57 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Help!!! Can't get Custom Action to launch EXE
installedwith App



Hi,

I am using Notepad.exe as an example.  I have created the following
simple
wxs, which compiles and links fine.  However when I run the MSI it
crashes
with an error.  According to all the documentation what I am doing is
right. 
can anyone help??  I would be very grateful for any assistance.

-Mike

<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>
  <Product Name='Test to run notepad'
Id='7bd1db07-03a2-421e-8b07-7313405728d7'
    Language='1031' Codepage='1252' Version='1.0.0' Manufacturer='Mike
Bartlett.'>

    <Package Id='422c530d-ac33-4e41-b3fb-c981387886ba'
Keywords='Installer'
      Description="Test to run Notepad"
      Comments='no comments.' Manufacturer='Mike Bartlett.'
      InstallerVersion='100' Languages='1031' Compressed='yes'
SummaryCodepage='1252' />

    <Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM
#1"
/>
    <Property Id='DiskPrompt' Value="Test to run notepad" />
    
    <Property Id='VERSION' Value="1.0.11" />
    
     <Directory Id='TARGETDIR' Name='SourceDir'>
      <Directory Id='WindowsFolder'>
        <Directory Id='tempdr' Name='tmp' LongName='temp'>
         <Directory Id='INSTALLDIR' Name='Nant' LongName='NantBuild'>
        <Component Id="component0" DiskId="1"
Guid="b0a36e15-083a-48c2-9641-426479d82f45">
          <File Id="notepad" Name="notepad"
src="C:\WINDOWS\system32\Notepad.exe" />
        </Component>
      </Directory>
     </Directory>
    </Directory>
   </Directory>

    <Feature Id='Complete' Title='Test to run notepad' Description='The
test.'
      Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR'>
        <ComponentRef Id='component0' />
    </Feature>

    
   <UIRef Id="WixUI_Minimal" />
    <UIRef Id="WixUI_ErrorProgressText" />

    <Property Id="WIXUI_INSTALLDIR">TARGETDIR</Property> 

    <CustomAction Id="run_notepad" FileKey="notepad" ExeCommand=" "
Return="check" />

<InstallExecuteSequence>
<Custom Action="run_notepad" After="InstallFiles"><![CDATA[NOT
Installed]]></Custom>
</InstallExecuteSequence>

  </Product>
</Wix>
-- 
View this message in context:
http://www.nabble.com/Help%21%21%21-Can%27t-get-Custom-Action-to-launch-
EXE-installed-with-App-tf3841607.html#a10877961
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------
-
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

Reply via email to