Hello all,
 
I created the following (excerpt):
 
<?define DefaultWinService="1"?>

 
<Property Id="WINDOWSSERVICE" Value="$(var.DefaultWinService)"/>

 
<Component Id="serviceSupervisorExe"
Guid="439d3ca1-328f-4c87-8d82-7e8c4795369f">

<File Source="$(var.BinDir)supervisor.exe" KeyPath="yes">

<TypeLib Id="{B95A6747-2CF9-4d28-B9EB-7A989407EA3F}"
Description="IPcpWnp 1.0 Type Library" HelpDirectory="BINDIR"
Language="0" MajorVersion="1" MinorVersion="0">

<AppId Id="{44B05440-795C-11D6-AC6C-0050DAC262B2}"
LocalService="classlib" >

<Class Id="{76f4DEE0-7955-11D6-AC6C-0050DAC262B2}"
Context="LocalServer32" Description="PcpWnp Class" Version="1.0">

<ProgId Id="pcplus.PcpWnp.1" Description="PcpWnp Class">

<ProgId Id="pcplus.PcpWnp" Description="PcpWnp Class" />

</ProgId>

</Class>

</AppId>

<Interface Id="{0E70C7C0-7959-11D6-AC6C-0050DAC262B2}" Name="IPcpWnp"
ProxyStubClassId="{00020424-0000-0000-C000-000000000046}"
ProxyStubClassId32="{00020424-0000-0000-C000-000000000046}" />

<Interface Id="{56036B10-7955-11D6-AC6C-0050DAC262B2}"
Name="IPcpWnpSink"
ProxyStubClassId="{00020424-0000-0000-C000-000000000046}"
ProxyStubClassId32="{00020424-0000-0000-C000-000000000046}" />

</TypeLib>

</File>

<RegistryValue Root="HKCR" Key="AppID\supervisor.exe" Name="AppID"
Value="{44B05440-795C-11D6-AC6C-0050DAC262B2}" Type="string" />

<ServiceInstall Arguments="-winservice"

Description="Volt Delta Classlib middleware service"

DisplayName="$(var.Manufacturer) $(var.ProductName)"

ErrorControl="normal"

Name="classlib"

Start="auto"

Type="ownProcess"

Vital="yes">

<ServiceDependency Id="Dhcp" />

<ServiceDependency Id="Dnscache" />

<!-- the ServiceDependencies are required on Windows 7. solves: DNS not
available and machines have IP 0.0.0.0 -->

</ServiceInstall>

<ServiceControl Id="classlib.service"

Name="classlib"

Remove="uninstall"

Stop="both"/>

</Component>

<Component Id="runkeySupervisorExe"
Guid="67B5C702-9E8D-4bd2-8EE5-4C1ED56DFAB3">

<File Source="$(var.BinDir)supervisor2.exe" KeyPath="yes">

<TypeLib Id="{B95A6747-2CF9-4d28-B9EB-7A989407EA3F}"
Description="IPcpWnp 1.0 Type Library" HelpDirectory="BINDIR"
Language="0" MajorVersion="1" MinorVersion="0">

<AppId Id="{44B05440-795C-11D6-AC6C-0050DAC262B2}" >

<Class Id="{76f4DEE0-7955-11D6-AC6C-0050DAC262B2}"
Context="LocalServer32" Description="PcpWnp Class" Version="1.0">

<ProgId Id="pcplus.PcpWnp.1" Description="PcpWnp Class">

<ProgId Id="pcplus.PcpWnp" Description="PcpWnp Class" />

</ProgId>

</Class>

</AppId>

<Interface Id="{0E70C7C0-7959-11D6-AC6C-0050DAC262B2}" Name="IPcpWnp"
ProxyStubClassId="{00020424-0000-0000-C000-000000000046}"
ProxyStubClassId32="{00020424-0000-0000-C000-000000000046}" />

<Interface Id="{56036B10-7955-11D6-AC6C-0050DAC262B2}"
Name="IPcpWnpSink"
ProxyStubClassId="{00020424-0000-0000-C000-000000000046}"
ProxyStubClassId32="{00020424-0000-0000-C000-000000000046}" />

</TypeLib>

</File>

<RegistryValue Root="HKCR" Key="AppID\supervisor2.exe" Name="AppID"
Value="{44B05440-795C-11D6-AC6C-0050DAC262B2}" Type="string" />

<RegistryValue Root="HKLM"
Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Run" Name="Classlib"
Value="[INSTALLLOCATION]bin\supervisor2.exe" Type="string" />

</Component>

 

 
<Control Id="ServiceOrRunkey" Type="RadioButtonGroup" X="190" Y="155"
Width="90" Height="40" Property="WINDOWSSERVICE">

<RadioButtonGroup Property="WINDOWSSERVICE">

<RadioButton X="0" Y="0" Width="80" Height="18" Text="Windows Service"
Value="1" />

<RadioButton X="0" Y="20" Width="80" Height="18" Text="Run Key Start"
Value="0" />

</RadioButtonGroup>

</Control>

 
<Feature Id="WindowsService" Title="Start CLASSLIB as Windows Service"
Level="0">

<Condition Level="1"><![CDATA[WINDOWSSERVICE=1]]></Condition>

<ComponentRef Id="serviceSupervisorExe"/>

</Feature>

<Feature Id="Runkey" Title="Start CLASSLIB as Run Key" Level="0">

<Condition Level="1"><![CDATA[WINDOWSSERVICE<>1]]></Condition>

<ComponentRef Id="runkeySupervisorExe"/>

</Feature>

 
When I select the Windows Service feature, then everything is installed
as expected, when I select the Run Key feature, then this feature ist
not installed (and the windows serivce feature is also not installed).
And when I set the following:
 
<?define DefaultWinService="0"?>

Then I can select the Run Key feature and it is installed but I can not
install the Windows Service feature by selecting it. What am I doing
wrong?

Cheers Frank

 
Go Green - Please consider the environment before printing this email
 
</PRE><html><p style="color: black; font-family: Arial; font-size: 8pt">
 
Volt Delta International GmbH, Landsberger Str. 110, D-80339 Muenchen <br />
Sitz: Muenchen, Amtsgericht Muenchen, HRB 156693, VAT-ID DE814437634 <br />
Managing Directors (Geschaeftsfuehrer): Noel Hughes, Hans Pokorny, Yusuf Bulan
 
</p> </html>
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to