Hi,

I am trying to run the commands from command prompt using custom action
below, it opens the command prompt but it is not executing any command I
supply, command prompt stays idle until I close.

Please help me on this. I have been trying to execute below for last 3
days.


Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="INSTALLLOCATION" Name="MyAppDir" LongName="My
Application Directory">

          <Component  Id="WebVirtualDirComponent1"
Guid="8c7d59c0-b84d-40d9-b3a5-0c73b6487ae5">
            <File  Id='WixExampleFile1' Name='cmd.exe'
Source='C:\cmd.exe' DiskId='1' />
          </Component>

        </Directory>
      </Directory>
    </Directory>
    <Property Id="RegSet" Value="xmlconfig.bat"/>
    <CustomAction Id="DoSomething"
              FileKey="WixExampleFile1"
              ExeCommand="-iisreset"
              Execute="deferred"
              Return="ignore"
              HideTarget="yes" 
              Impersonate="no" />
    
    <InstallExecuteSequence>
      <Custom Action="DoSomething" Before="InstallFinalize" ></Custom>
     
    </InstallExecuteSequence>

    <Feature Id="ProductFeature" Title="Feature Title" Level="1">
      <ComponentRef Id="WebVirtualDirComponent1" />
    </Feature>

Regards, 
Siva, 
201-671-5552. 

--------------------------------------------------------------------------
This message w/attachments (message) may be privileged, confidential or 
proprietary, and if you are not an intended recipient, please notify the 
sender, do not use or share it and delete it. Unless specifically indicated, 
this message is not an offer to sell or a solicitation of any investment 
products or other financial product or service, an official confirmation of any 
transaction, or an official statement of Merrill Lynch. Subject to applicable 
law, Merrill Lynch may monitor, review and retain e-communications (EC) 
traveling through its networks/systems. The laws of the country of each 
sender/recipient may impact the handling of EC, and EC may be archived, 
supervised and produced in countries other than the country in which you are 
located. This message cannot be guaranteed to be secure or error-free. This 
message is subject to terms available at the following link: 
http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you 
consent to the foregoing.
--------------------------------------------------------------------------
 

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to