Hi.

 

I’ve got a WiX script that installs a webservice to IIS and it works great. The problem occurs when the user specifies a different directory than the standard one (like <drive>:<iisWebRoot>\MyWebservice\v2.0.0_test). Where <drive>:<iisWebRoot>\MyWebservice\v2.0.0 is the standard one

 

The IIS lists the webservice but the v2.0.0_test folder is not set as an application like it should be. I guess I need to change the alias of the WebVirtualDir element if the user changes destination folder, but I’m not sure where to start. Any hints to get me started would be much appreciated!

 

<Directory Id="TARGETDIR" Name="SourceDir">

 <Directory Id="INSTALLDIR" Name="Inet" LongName="[WEBROOT]">

  <Directory Id="ROOTDIR" Name="Pros" LongName="MyWebservice">

   <Directory Id="INSTALLLOCATION" Name="v2" LongName="v2.0.0">

<WebVirtualDir Id="TestWebVirtualDir2" Alias="MyWebservice" Directory="ROOTDIR" WebSite="DefaultWebSite" DirProperties="DirProps">

  <WebVirtualDir Id="TestWebVirtualDir" Alias="v2.0.0" Directory="INSTALLLOCATION" DirProperties="DirProps">

    <WebApplication Id="TestWebApplication" Name="v2.0.0" />

  </WebVirtualDir>

</WebVirtualDir

 

-Christer

 


Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Shmarya Rubenstein
Sendt: 1. august 2006 12:42
Til: [EMAIL PROTECTED]
Kopi: wix-users@lists.sourceforge.net
Emne: Re: [WiX-users] ExeCommand custom action

 

It's a command-line argument...

Essentially, I added the cli argument in order to workaround the need for "Working Directory"...

After a little more investigation, it seems that a type 50 CA is what I need...

 <CustomAction Id='LaunchConfig' Directory ='INSTALLDIR' ExeCommand='[INSTALLDIR]$(var.projectname).exe' Return='asyncNoWait'/>

works great...

On 8/1/06, Derek Cicerone <[EMAIL PROTECTED]> wrote:

What does the exe do to the xml file?  WiX has custom actions which support modifying xml files during setup.  They support rollback and install nothing to the target machine.

 

Derek

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Shmarya Rubenstein
Sent: Tuesday, August 01, 2006 2:21 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] ExeCommand custom action

 

Hi all,

I've got an ExeCommand custom action (like this):

<CustomAction Id="LaunchConfig" FileKey="$(var.projectname).exe" ExeCommand="&quot;[INSTALLDIR]$(var.projectname ).xml&quot;" Return="asyncNoWait"/>

How can I make it execute with a specific working directory?

Thanks,

--
Shmarya
-----------------------------------------------------------
[EMAIL PROTECTED] - http://shmarya.net
NUnit rocks! http://nunit.com




--
Shmarya
-----------------------------------------------------------
[EMAIL PROTECTED] - http://shmarya.net
NUnit rocks! http://nunit.com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to