RogerioRibeiro
Posts: 1
Joined: Wed Mar 19, 2025 4:46 pm

Problem with file in use during silent install - HELP

Hello. I'm new to Advanced Installer, having used Inno Setup for years. I managed to migrate my previous Inno Seup install project to Advanced Installer and everything works great during a regular (attended) installation. But my application uses an update service running in the background under the local account, and the silent installation fails with "fatal error" when this service tries to run the installer with "/exenoui /qn /norestart /l*v install.log". The install log shows something about "error 1921" and "verify that you have sufficient privileges to stop system services". I can see in the log that the installer fails while trying to stop my update service itself. Of course this is not possible because the service is the one running the installer, but how can I prevent this from causing a fatal error? I tried to install the service executable using CustomActions by referring to "sc.exe" in the System Folder, but the error persists.
My main question is: how can I schedule the replacement of the service EXE for the next system reboot if the service is running during a silent install? I suppose this should happen automatically instead of failing, but in silent mode it seems it doesn't.
PS: I know I can configure the installer so the service EXE file is overwritten only if the EXE being installed is newer, but doing that will only fix the problem until a new version is launched.
Catalin
Posts: 7504
Joined: Wed Jun 13, 2018 7:49 am

Re: Problem with file in use during silent install - HELP

Hello and welcome to our forums,

This is quite a strange behavior and I do not think the issue is related to the stopping of the service.

If possible, could you please forward me the following resources:

- a copy of the AIP file

- a download link for V1 of the product

- a test-case (step by step on how to reproduce this)

by email at support at advancedinstaller dot com so I can run some tests and further investigate this on our end?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”