Hi,
I am facing a problem for which I haven't found any solutions on the forum.
I have my own Dialog in User Interface -> Dialogs after the WelcomeDlg.
It is a simple Dialog with a Text Edit so that the user can type in the IPv4 adress of a machine or its name (e.g. "192.168.133.120" or "pcname"). The value is stored in HOSTNAMEDIT_PROPERTY.
When the use clicks on the "Next Button", I want to test if the name that the user entered is valid, that is if I can 'ping' the machine.
For that purpose, I use a "Published Events" on the "Next" button.
Its type is "DoAction", ist Argument is "myping.exe" and ist condition is "AI_INSTALL".
"myping.exe" is an executable that I built that returns 0 in the case of successful ping, and various other return values >= 0 otherwise. It is defined as follow in "Project Details" -> "Custom Actions" -> "UI Custom Actions".
The "Executions Properties" is "Synchronous execution, check return code".
I would thus expect the return value of this custom action to be the same of that of my "myping.exe".
However, when I build and run ("Run and Log")the installer, I get following error message :
Action 21:23:41: NewDialog. Dialog created
MSI (c) (F0:98) [21:23:47:730]: PROPERTY CHANGE: Modifying HOSTNAMEDIT_PROPERTY property. Its current value is '192.168.133.203'. Its new value: 'test string'.
MSI (c) (F0:98) [21:23:47:792]: Doing action: myping.exe
Action 21:23:47: myping.exe.
Action start 21:23:47: myping.exe.
MSI (c) (F0:98) [21:23:47:886]: Note: 1: 1722 2: myping.exe 3: E:\via488\tmp\MSI1CC3.tmp 4: test string
Do you know how I could solve this problem ?
Thank you in advance for your help,
Florent
FOLLOW US
Get the latest news in Application Packaging