cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
weanich
Level 2

LaunchApplication run exe file and close before it success.

I have a custom action to run migration.exe which will edit the configuration file. The problem is the migration.exe can run but success too quick and no any update on configuration file. It can run without error but no any changes. Could someone help me to point out what do I miss? the below is code to trigger the migration.exe to update configuration file.

 

#define CONFIGMIGRATIONTOOL "XmlMigrationTool.exe"

function Install_RunXmlMigrationTool(hMSI)
NUMBER nTimeOut;
string szInstallDir, szPath, szCommandLine;
begin
// Set timeout
nTimeOut = CONFIG_TIMEOUT_SEC * 1000;

szInstallDir = GetProperty(hMSI, "CustomActionData");
szPath = szInstallDir ^ CONFIGMIGRATIONTOOL;

SprintfMsiLog("Executing '%s'", szPath);

LaunchApplication(szPath, szCommandLine, "", SW_HIDE, nTimeOut, LAAW_OPTION_WAIT);
end;

 

Labels (1)
0 Kudos
(0) Replies