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!

Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Send exeName to server

Hello together,

I am facing the following problem. I am sending some information (properties) to the server when a user clicks a specific button. This works without problems, but I do not know how to send the name of the executed file to the server. I need the name because it contains important informations for me.

I know that there is something called AI_SETUPEXEPATH, but I can not find it in the list of the properties which can be sent to the server.
I tried to add custom properties with the values AI_SETUPEXEPATH or [AI_SETUPEXEPATH] - but none of them returned the path/name of the exe file.

If it is in any way possible to send the exefile name to the server when a user clicks a button, I would like to know it! Any help will be appreciated!

Thanks!

Jakob
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Send exeName to server

Hello Jakob,

I've tested your scenario but I cannot replicate it. Please find the attached sample as a reference.

Can you please make sure that you are running the .EXE file? You can go in the Media page and make sure that the Package Type is an .EXE.
Please note that if your package type is an .MSI, then the AI_SETUPEXEPATH property is empty, the property is not set.

In order to have a better look about this, you can attach your .AIP(project file) so we can investigate it. If it contains confidential information you can send us a small test project which reproduce this behavior.

Please let me know if that helped.

Best regards,
Dan
Attachments
AI_SETUPEXEPATH_Sample.aip
(16.5 KiB) Downloaded 283 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Send exeName to server

Hello Dan,

thanks for your answer!

I tried to add a custom VB script to be executed with this content:
MsgBox Session.Property("AI_SETUPEXEPATH")

When running my exe file (it is an exe, not an msi), I saw an ouput with the correct exe path. But I still do not manage to send it to the server.

What I do is the following:
* Go to custom actions
* Add a SendCollectedData Event
* Add Property -> AI_SETUPEXEPATH is not existing in the property list
so: I added a new property:
name: "myproperty" value: AI_SETUPEXEPATH
name: "myproperty2" value: [AI_SETUPEXEPATH]

The values myproperty and myproperty2 were sent to the server, but contained only the string "AI_SETUPEXEPATH" or "[AI_SETUPEXEPATH". what am I doing wrong? Thanks in advance!




EDIT:
<COMPONENT cid="caphyon.advinst.msicomp.MsiPropsComponent">
<ROW Property="exePath" Value="[AI_SETUPEXEPATH]"/>
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Send exeName to server

Hello Dan,

I opened your sample project, but it does only show a Message Box. What I need to do is send the information to the server when a user clicks a specific button.
I managed to executed a VB script, showing the exe-Path as a message, but whenever I try to send it as a property, it does not work.
Please, can you attach a sample where you use the AI_SETUPEXE path as a property that will be sent to the server? That would be great!
Thank you!

Jakob
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Send exeName to server

Good morning,

I think I solved it - it seems like I needed to set a custom property.

Thanks for your help so far!

Jakob
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Send exeName to server

Hi Jakob,

I'm glad you got this working by yourself. If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”