Wix Toolset 3.10

During my installation UI process, I ask the user for the installation
directory of an existing product.  I use the executables from this product
in the creation of my shortcuts.  This works perfectly as I can use the
variable recuperated from my custom UI dialog in the target specification
of the shortcut:

       <Shortcut Id= "Pt3DbCfgStartMenuShortcut"
                  Name="Configure Databases"
                  Description="Database Configuration"
                  Target="[DLCDIR]bin\_progres.exe"
                  WorkingDirectory="INSTALLDIR"/>


How can I use the same [DLCDIR]bin\_progres in the creation of a service?


I tried something like this (DLCDIR is later set by the UI dialog):

      <Directory Id="DLCDIR" Name='Progress' />

   <DirectoryRef Id="DLCDIR">
     <Component Id="Pt3AgentService" Guid="MYGUID">
        <File Id="Pt3Sct" Name="_progres.exe" Source="bin\_progres.exe"/>
        <ServiceInstall Id="pt3Agent_svc" Description="Protop 3 DB Agent
Service"
                        DisplayName="pt3AgentService"
Name="pt3AgentService" Start="demand" Type="ownProcess"
ErrorControl="normal"/>
        <ServiceControl Id="Start_pt3Agent" Name="pt3AgentService"
Start="install" Stop="both" Remove="uninstall"
                        Wait="yes" />
      </Component>
    </DirectoryRef>


ServiceInstall seems to want a Directory parent and light.exe complains
that it cannot find 'bin\_progres.exe'.


Paul

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to