How to get the name of the installer exe - 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!

chen
Posts: 18
Joined: Mon Nov 26, 2007 6:02 pm

How to get the name of the installer exe

We are adding some serial number to the file name to track how many people download the installation file. Is there way that we get the file name of the exe from the custom action? Can you provide a sample?

Thanks,

Chen
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to get the name of the installer exe

Hi Chen,

You can try using the "AI_SETUPEXEPATH" property. For an installation which uses an EXE bootstrapper this property should contain the full path of the EXE. You can use it to extract the EXE filename from the path.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
chen
Posts: 18
Joined: Mon Nov 26, 2007 6:02 pm

Re: How to get the name of the installer exe

Thanks for reply. That's exactly what I need.

However your reply seems to strip out [AI_] in front of "SETUPEXEPATH". It reads like
cosmin wrote:You can try using the "SETUPEXEPATH" property.

I only saw "AI_" part when I tried to ask you about how I can access this "SETUPEXEPATH" property. Just thought to let you know about it. Maybe it is some kind of keyword.

Thanks again for your help!

Regards,

Chen

Return to “Common Problems”