[wix-users] Update service leaving logon unchanged

Vilius Šumskas v.sumskas at advantes.tech
Fri Nov 12 05:11:05 PST 2021


Sorry, I just checked our MSIs and it seems that our services are also uninstalled on reinstall. However I was told, that we are using LocalService account instead of LocalSystem which makes security admins happier, so they are less keen to change the account after the initial installation.

-- 
    Vilius

-----Original Message-----
From: Guido Schneider <Guido.Schneider at rohde-schwarz.com> 
Sent: Friday, November 12, 2021 12:57 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Vilius Šumskas <v.sumskas at advantes.tech>
Subject: RE: [wix-users] Update service leaving logon unchanged

Hello Vilius,
the windows service creation and service excutable file installation is all handled by the MSI installer when installing the MSI package that contains the service.
Updating the service means to install a new MSI package.

Ist the idea to split windows service managent and service excutable file installation into two MSI packages?

Best regards
Guido Schneider

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Vilius Šumskas via wix-users
Sent: Friday, November 12, 2021 11:29 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Vilius Šumskas <v.sumskas at advantes.tech>
Subject: *EXT* [Newsletter] Re: [wix-users] Update service leaving logon unchanged

Hi,

the question is why do you need to reinstall the service if it's already installed? We usually just stop the service, update the files underneath and then start the service back again.

-- 
    Vilius

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Guido Schneider via wix-users
Sent: Friday, November 12, 2021 11:00 AM
To: wix-users at lists.wixtoolset.org
Cc: Guido Schneider <Guido.Schneider at rohde-schwarz.com>
Subject: [wix-users] Update service leaving logon unchanged

Hello,
I’m installing a windows service using the WIX toolset.
In some environments the service has to run under a certain service account.
Therefore the service login information is changed after the service was installed.
When the service is updated the login information is restored to "LocalSystem" and the desired service login information has to be configured again.

Is it possible to update a service and leave the service login information unchanged?

Sample service definition:
...
        <Component Id="SampleSvc.exe" Guid=" 0772B74C-AF0C-4E32-86AC-36B6AE2285CC">
          <File Id="SampleSvc.exe" Name="SampleSvc.exe" Source="..\src\SampleSvc\$(var.BuildConfiguration)\SampleSvc.exe" KeyPath="yes" />
          <ServiceInstall Id="SampleSvcServiceInstall"
                          Name="$(var.SampleServiceName)"
                          Type="ownProcess"
                          Start="demand"
                          ErrorControl="normal"
                          DisplayName="Sample Service"
                          Description=" Sample Service Description "
                          >
            <ServiceDependency Id="Another_Service" />
            <util:ServiceConfig FirstFailureActionType="restart"
                                SecondFailureActionType="restart"
                                ThirdFailureActionType="restart"
                                RestartServiceDelayInSeconds="10" />
          </ServiceInstall>
          <ServiceControl Id="SampleSvcServiceControl" Name="rs_SampleSvc_service" Remove="both" Stop="both" />
        </Component>
...


Best regards
Guido Schneider


Content provided within this e-mail including any attachments, is for the use of the intended recipients and may contain Rohde & Schwarz company restricted information. Any unauthorized use, disclosure, or distribution of this communication in whole or in part is strictly prohibited. If you are not the intended recipient, please notify the sender by reply email or by telephone and delete the communication in its entirety.

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



Content provided within this e-mail including any attachments, is for the use of the intended recipients and may contain Rohde & Schwarz company restricted information. Any unauthorized use, disclosure, or distribution of this communication in whole or in part is strictly prohibited. If you are not the intended recipient, please notify the sender by reply email or by telephone and delete the communication in its entirety.


More information about the wix-users mailing list