Hi,

I got the following Wix 3.6 solution in VS2012 :

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"; 
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"; 
xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension";>
           <Product Id="5087FDD6-DAA5-4BF0-A187-AB252CA26D74" Name="Myapp 5 
Services" Language="1033" Version="5.0.0.0" Manufacturer="Evry" 
UpgradeCode="fcd829da-e04d-46b7-bd16-a901f0340217">
                      <Package InstallerVersion="200" Compressed="yes" 
InstallScope="perMachine" Platform="x64" />

    <Directory Id="TARGETDIR" Name="SourceDir">
        <Directory Id="MYAPPINSTALLDIR" Name="Myapp5Service">
            <Component Id="SampleServiceComponent" DiskId="1" 
Guid="6f51c0f3-776c-4aec-a200-1f199352c6c3" Win64="yes">
              <File Id="Myapp5.WindowsService.exe" 
Name="Myapp5.WindowsService.exe" 
Source="$(var.Myapp.WindowsService.TargetDir)\Myapp5.WindowsService.exe" 
KeyPath='yes'/>
              ...

              <ServiceInstall Id="InstallMyappService" 
DisplayName="MyappService" Name="Myapp5.WindowsService.exe" Description="Myapp 
5 Service - För effektivare och enklare operationsplanering" 
Account="LocalSystem" ErrorControl="normal" Start="auto" Type="ownProcess" 
Vital="yes" />
              <ServiceControl Id="ControlMyappService" 
Name="Myapp5.WindowsService.exe" Start="install" Stop="both" Remove="uninstall" 
Wait="yes" />
            </Component>
        </Directory>
    </Directory>


    <WixVariable Id="WixUIBannerBmp" 
Value="$(var.ProjectDir)\Image\myappTopBanner.bmp" />
    <WixVariable Id="WixUIDialogBmp" 
Value="$(var.ProjectDir)\Image\myappDialogBackground.bmp" />

    <Property Id="WIXUI_INSTALLDIR" Value="MYAPPINSTALLDIR" />
    <UIRef Id="WixUI_InstallDir" />

    <Feature Id="ProductFeature" Title="Wix_Myapp.WindowsService" Level="1">
      <ComponentRef Id="SampleServiceComponent" />
    </Feature>
    <Media Id="1" Cabinet="SampleServiceComponent.cab" EmbedCab="yes" />
           </Product>
</Wix>

This will install my Windows Service and start it, everything is fine so far.

Now I need to let the user set a AppConfig setting plus a basadress(WCF) in the 
app.config file of the Windows Service during(before service is installed) and 
the question is how I do this? I suppose an extra dialog would be the best 
where there is explanation and two textinputs for the settings but I can´t find 
how to do this with Wix?

Pleas help.

A example would be great!

BestRegards
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to