TetoKaiba
Posts: 1
Joined: Wed Apr 12, 2023 5:22 pm

How to create a file during a prerequisite installation in my installer

I have built an installer with a featured-base prerequisite.
About this prerequisite, I want to save the path user chose for the prerequisite program in a file inside my main installer directory, so my Java program, when launched, can read from this file the path where the requested program is installed. Is this possible? Thank you.
Catalin
Posts: 6582
Joined: Wed Jun 13, 2018 7:49 am

Re: How to create a file during a prerequisite installation in my installer

Hello and welcome to our forums,

This could be possible, but it's mostly up to how the setup package of your prerequisite was created.

Some setup packages will write their installation folder into the registry as an entry.

In this case, we can perhaps have a script that reads that and save it into your file.

Otherwise, I'm afraid this is not quite possible.

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

Return to “Building Installers”