How to get the location of the installation file - Advanced Installer Community

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!

leetuck
Posts: 12
Joined: Tue Jun 16, 2009 1:44 pm

How to get the location of the installation file

Hi Guys,

I am probably being stupid but is there a property to get the location of the MSi file that is currently installing?

I basically want to copy the Msi to the APPDIR folder.

Thanks,
Lee
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: How to get the location of the installation file

Hello,

The location of the installer is held in the [SOURCEDIR] property if your installer is an .msi, and [SETUPEXEDIR] property if the installer is an .exe.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
leetuck
Posts: 12
Joined: Tue Jun 16, 2009 1:44 pm

Re: How to get the location of the installation file

Thanks... you're a star :]

Is there also a property to get the MSi name? I've looked in the help file but I can't find what properties are available.

Thanks,
Lee
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How to get the location of the installation file

Hi Lee,

I'm afraid there is no such property available.

However you could try using the property "OriginalDatabase". This will give you the full path of the MSI, including its name.
All you have to do is to parse it and retrieve the name desired.

Let me know if you have any questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”