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

How to get the name of the installer exe

Thu Mar 05, 2009 7:39 pm

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

Fri Mar 06, 2009 8:34 am

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

Fri Mar 06, 2009 9:32 am

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”