MGS
Posts: 114
Joined: Tue Oct 04, 2022 9:52 am

Extracting archives before starting services

Hi,

is there a way to extract zip archives before starting services?
The service needs the files inside the zip archive but the installer tries to start the service before extracting.
Adding the files to the project is not really an option because there are around 10000 files inside the and the installer would get too large.

Best regards,
Catalin
Posts: 6736
Joined: Wed Jun 13, 2018 7:49 am

Re: Extracting archives before starting services

Hello Johannes,

In order to achieve what you want, you can go to "Table Editor" --> "InstallExecuteSequence" and modify the sequence number for the action that extracts the archive to be lower than the one starting the services (called "StartService").

Another way would be to add the ZIP file as a temporary file and then extract it using a custom action scheduled before the "StartService" action, which is part of the "Add Resources" action group.

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MGS
Posts: 114
Joined: Tue Oct 04, 2022 9:52 am

Re: Extracting archives before starting services

Hello Catalin,

Thank you for the quick reply! That helped a lot, got it running for now. :)

As a reference for others, this is the sequence whose action sequence number had to be changed in order to extract the archive later:
"AI_ExpandArchInstall"

I also found more details in an old post of yours, Catalin, here:
viewtopic.php?p=103430#p103430

Best regards,
Johannes
Liviu
Posts: 1084
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Extracting archives before starting services

You're always welcome, Johannes!

We are glad that you have solved this problem.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”