- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- LaunchApplication run exe file and close before it success.
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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;