If you validate your msi you might find issues quicker. 

 

Add this:

<Property Id="net" Value="C:\WINDOWS\system32\net.exe">

 

Change the Target attribute of your shortcut to read Target="[net]" 

 

 

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Venkatesh
Malepati
Sent: Wednesday, August 08, 2007 3:09 PM
To: wix-users@lists.sourceforge.net
Cc: [EMAIL PROTECTED]
Subject: [WiX-users] Hi Rob and all

 

Hi Rob, 
Is the user group is still there?. I was wondering why nobody is
replying. 
This was my question ans I am trying hard to create a simple shortcut
for net.exe. 
When I start from the cmd prompt the service runs. However, It is not
working. 
I also tried to create a custom action like the following and it still
it did  not showing up. 

I am describinfg two methods here. Both methods are not working. What
should I do to create a short cut for an existing file which is already
presnt in the windows/system32 directory?.

  

1) I am trying to create a shortcut for an existing file"net.exe" in the
Windows/system32 directory. I am not packaging this file with the
install shield. I want just use this file to run Tomcat. I am using the
following code. This looks like simple, however when I run the install
shield, it does not create a short cut at all. I tried by creating a
custom action and try to use the peroprty in the shortcut. I donot know
what I am doing wrong. Please look at this tag and see, if I am doing
anything wrong here.

  <Component Id="comcat" DiskId="1"
Guid="7C170F2C-67F9-4f31-AE7D-134451321BE6"> 
         <Shortcut Id="Tomcat" Name="StartTC"
Directory="ProgramMenuFolder" Arguments="start TEAMSRDS"
LongName="1.Start Jakarta-Tomcat Server - Service Mode"

WorkingDirectory="directory3" Target="C:\WINDOWS\system32\net.exe" /> 
        
   </Component> 

Directory3 is where my tomcat is installed 
I called the service as RDS. 

2)       <Shortcut Id="Tomcat" Name="StartTC" Target="[RUNNET]" 
                 Directory="wixs1" Arguments="start TEAMSRDS" 
         WorkingDirectory="myvalue" /> 

<CustomAction Id="RNet" Property="RUNNET"
ExeCommand="C:\WINDOWS\system32\net.exe"/> 

 

Thanks for any help in adavance. 

 

Venkat 



This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to