I sorry but I'm stumped these commands work ok for me, could you post a
simplified project that fails.

Neil

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Kalvagadda, SivaKrishna (GMIT-TASS)
Sent: 10 July 2008 20:40
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Unable to execute commonds on commnad prompt..

Hi Thanks,

I used below code I am facing same problem :(.

It is opening command prompt and not executing the next CustomAction
below.
    <CustomAction Id="StartWebServer2" Property="StartWebServer"
ExeCommand="/c xmlconfig.bat" />

I tried different options also its behaving in same way, opens the
command prompt(just stays idle until I close it) but the next action is
not processing.


Regards,
SivaKrishna Kalvagadda,
201-671-5552.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Neil
Sleightholm
Sent: Thursday, July 10, 2008 2:26 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Unable to execute commonds on commnad prompt..

That custom action sets the property StartWebServer to
C:\WINDOWS\System32\cmd.exe (assuming your system folder is
C:\WINDOWS\System32).

Neil

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Kalvagadda, SivaKrishna (GMIT-TASS)
Sent: 10 July 2008 18:50
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Unable to execute commonds on commnad prompt..

Can you please explain me what does that property attribute do here
below ( in your sample code) 
  <CustomAction Id="StartWebServer1" Property="StartWebServer"
Value="[SystemFolder]cmd.exe" />

Regards,
SivaKrishna Kalvagadda,
201-671-5552.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Neil
Sleightholm
Sent: Thursday, July 10, 2008 1:48 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Unable to execute commonds on commnad prompt..

If you have a look at the <CustomAction> documentation in wix.chm I
think that explains the use of the property.

To run your batch file are you doing something like this:
    <CustomAction Id="StartWebServer1" Property="StartWebServer"
Value="[SystemFolder]cmd.exe" />
    <CustomAction Id="StartWebServer2" Property="StartWebServer"
ExeCommand="/c xmlconfig.bat" />

Neil

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Kalvagadda, SivaKrishna (GMIT-TASS)
Sent: 10 July 2008 02:45
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Unable to execute commonds on commnad prompt..

Thanks for your reply...

I tried with below code but no luck :(

<CustomAction Id="settaskCD1" Directory="TARGETDIR"
ExeCommand='cmd.exe' Return="check" />
<CustomAction Id="settaskCD2" Directory="TARGETDIR"
ExeCommand='xmlconfig.bat' Return="check" /> 

As you suggested I spited into two actions.

But I couldn't understand what does the property attribute refers to in
below sample  (Property="StartWebServer").

Actually I want to run .bat files from WIX.

Thanks one more time for reply.

Please help me on this.


Regards,
SivaKrishna Kalvagadda,
201-671-5552.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Neil
Sleightholm
Sent: Wednesday, July 09, 2008 4:52 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Unable to execute commonds on commnad prompt..

I think the problem is that you can't evaluate properties in the
ExeCommand attribute so you need to do it in two steps. Here is an
example that works for me:

    <!-- Start the Web Server at the end of the install -->
    <CustomAction Id="StartWebServer1" Property="StartWebServer"
Value="[SystemFolder]net.exe" />
    <CustomAction Id="StartWebServer2" Property="StartWebServer"
ExeCommand="start WebServer" />
    <InstallExecuteSequence>
      <Custom Action="StartWebServer1" After="InstallFinalize">NOT
Installed</Custom>
      <Custom Action="StartWebServer2" After="StartWebServer1">NOT
Installed</Custom>
    </InstallExecuteSequence>

I hope this helps,

Neil

Neil Sleightholm
X2 Systems Limited
[EMAIL PROTECTED]


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Kalvagadda, SivaKrishna (GMIT-TASS)
Sent: 09 July 2008 20:29
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Unable to execute commonds on commnad prompt..

Hi All,

I am very much new to WIX. I am trying to implementing executing
commands on Command prompt.
I am using below code to do but its failing while installation.

<Directory Id='TARGETDIR' Name='SourceDir'>
</Directory>
<CustomAction Id="settaskCD" Directory="TARGETDIR"
ExeCommand='[SystemFolder]cmd.exe  xxxx.bat' Return="check" /> 

Where xxxx.bat is placed on c:\ path.


I have tried with different methods like using properties. Please help
me on this.

Regards,
SivaKrishna Kalvagadda,
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.
--------------------------------------------------------

------------------------------------------------------------------------
-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to