Hi,

I need help please executing httpcfg.exe command from wix.  So far i have
the following code:

 <Binary Id='HTTPCFG' src='..\..\..\..\..\..\Externals\Bin\httpcfg.exe' />

    <Binary Id='InstallUtil'
src='C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtilLib.dll' />

    <!-- Custom actions for installing service-->
    <CustomAction Id='InstallServiceSetProp' Property='InstallService'
Value='/installtype=notransaction /action=install /LogFile=
"[#WindowsService]" "[#ConfigFile]"'/>
    <CustomAction Id='InstallService' BinaryKey='InstallUtil'
DllEntry='ManagedInstall' Execute='deferred' />

    <CustomAction Id='UnInstallServiceSetProp' Property='UnInstallService'
Value='/installtype=notransaction /action=uninstall /LogFile=
"[#WindowsService]" "[#ConfigFile]"'/>
    <CustomAction Id='UnInstallService' BinaryKey='InstallUtil'
DllEntry='ManagedInstall' Execute='deferred' />

    <CustomAction Id='CommitServiceSetProp' Property='CommitService'
Value='/installtype=notransaction /action=commit /LogFile=
"[#WindowsService]" "[#ConfigFile]"'/>
    <CustomAction Id='CommitService' BinaryKey='InstallUtil'
DllEntry='ManagedInstall' Execute='commit' />

    <CustomAction Id='RollbackServiceSetProp' Property='RollbackService'
Value='/installtype=notransaction /action=rollback /LogFile=
"[#WindowsService]" "[#ConfigFile]"'/>
    <CustomAction Id='RollbackService' BinaryKey='InstallUtil'
DllEntry='ManagedInstall' Execute='rollback' />


    <!-- Custom actions for setting service permission-->
    <CustomAction Id='ConfigurePort'  Return='ignore'  BinaryKey='HTTPCFG'
ExeCommand='set urlacl -u http://+:50300/OPGatewayService/ -a
"D:(A;;GA;;;NS)"'/>
    <CustomAction Id='UnConfigurePort'  Return='ignore'  BinaryKey='HTTPCFG'
ExeCommand='delete urlacl -u http://+:50300/OPGatewayService/'/>
    <CustomAction Id='RollbackConfigurePort'  Return='ignore'
BinaryKey='HTTPCFG' ExeCommand='delete urlacl -u http://
+:50300/OPGatewayService/'/>


    <InstallExecuteSequence>
      <InstallValidate Sequence="1400" />
      <RemoveExistingProducts
Sequence="1402">OLDFOUND</RemoveExistingProducts>
      <InstallInitialize Sequence="1500" />

       <Custom Action="ConfigurePort"
After="InstallService">$OPGatewayComponent>2</Custom>
      <Custom Action="UnConfigurePort"
After="UnInstallService">$OPGatewayComponent=2</Custom>
      <Custom Action="RollbackConfigurePort"
After="RollbackService">$OPGatewayComponent>2</Custom>

      <Custom Action='InstallServiceSetProp'
Before='StartServices'>$OPGatewayComponent>2</Custom>
      <Custom Action='InstallService'
After='InstallServiceSetProp'>$OPGatewayComponent>2</Custom>

      <Custom Action='UnInstallServiceSetProp'
After='StopServices'>$OPGatewayComponent=2</Custom>
      <Custom Action='UnInstallService'
After='UnInstallServiceSetProp'>$OPGatewayComponent=2</Custom>

      <Custom Action='CommitServiceSetProp'
After='RollbackService'>$OPGatewayComponent>2</Custom>
      <Custom Action='CommitService'
After='CommitServiceSetProp'>$OPGatewayComponent>2</Custom>

      <Custom Action='RollbackServiceSetProp'
After='InstallService'>$OPGatewayComponent>2</Custom>
      <Custom Action='RollbackService'
After='RollbackServiceSetProp'>$OPGatewayComponent>2</Custom>

      <Custom Action='NoDowngrade'
After='FindRelatedProducts'>NEWERFOUND</Custom>
    </InstallExecuteSequence>

It doesn't execute this command ConfigurePort, if i add it from command line
like this: httpcfg.exe set urlacl -u http://+:50300/OPGatewayService/ -a
"D:(A;;GA;;;NS)" everything is ok, but wix doesn't execute on installation.
At uninstallation it does remove it, after i added it from command line, so
it does execute UnConfigurePort Can someone tell me what i'm doing wrong?
Need help please

Thanks in advance,
Adriana
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to