We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ak_sma
Posts: 1
Joined: Tue Feb 25, 2025 12:08 pm

Get path from where the installer is being executed

Hi All,

I am new to advanced installer. I am trying the read a file that is located in the same directory from where the installer is being executed. I want to get the path of that folder. I will be bundling my installer.exe and a config file into a zip file. When user extracts that zip file, there will be two files, installer.exe and a config file. I want to read that config file from installer. Is there any way to do it?
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Get path from where the installer is being executed

Hello and welcome to our forums,

If you generate an EXE in Advanced Installer, you can use the SETUPEXEDIR property to retrieve the path of the EXE file.

After that, you'd have to do some modifications of that path so that it points to the config file.

Hope this helps!

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

Return to “Common Problems”