' ','W','H','E','R','E',' ','`','A','c','t','i' ,'o','n','`',' ',
'=',' ','\'','%','s','\'',0};
UINT type;
- LPWSTR source;
- LPWSTR target;
+ LPCWSTR source, target;
WCHAR *deformated=NULL;
row = MSI_QueryGetRecord( package->db, ExecSeqQuery, action );
type = MSI_RecordGetInteger(row,2);
- source = load_dynamic_stringW(row,3);
- target = load_dynamic_stringW(row,4);
+ source = MSI_RecordGetString(row,3);
+ target = MSI_RecordGetString(row,4);
TRACE("Handling custom action %s (%x %s %s)\n",debugstr_w(action),type,
debugstr_w(source), debugstr_w(target));
}
end:
- msi_free(source);
- msi_free(target);
msiobj_release(&row->hdr);
return rc;
}
switch (rc)
{
- case ERROR_FUNCTION_NOT_CALLED:
- case ERROR_SUCCESS:
- case ERROR_INSTALL_USEREXIT:
- case ERROR_INSTALL_FAILURE:
- return rc;
- case ERROR_NO_MORE_ITEMS:
- return ERROR_SUCCESS;
- default:
- ERR("Invalid Return Code %lx\n",rc);
- return ERROR_INSTALL_FAILURE;
+ case ERROR_FUNCTION_NOT_CALLED:
+ case ERROR_SUCCESS:
+ case ERROR_INSTALL_USEREXIT:
+ case ERROR_INSTALL_FAILURE:
+ return rc;
+ case ERROR_NO_MORE_ITEMS:
+ return ERROR_SUCCESS;
+ default:
+ ERR("Invalid Return Code %ld\n",rc);
+ return ERROR_INSTALL_FAILURE;
}
}
CustomEntry *fn;
DWORD rc = ERROR_SUCCESS;
- TRACE("calling function (%s, %s) \n", debugstr_w(stuff->source),
+ TRACE("calling function (%s, %s)\n", debugstr_w(stuff->source),
debugstr_w(stuff->target));
hModule = LoadLibraryW(stuff->source);
msi_free(deformated);
}
- TRACE("executing exe %s \n",debugstr_w(cmd));
+ TRACE("executing exe %s\n", debugstr_w(cmd));
rc = CreateProcessW(NULL, cmd, NULL, NULL, FALSE, 0, NULL,
c_collen, &si, &info);
msi_free(deformated);
}
- TRACE("executing exe %s \n",debugstr_w(cmd));
+ TRACE("executing exe %s\n", debugstr_w(cmd));
rc = CreateProcessW(NULL, cmd, NULL, NULL, FALSE, 0, NULL,
c_collen, &si, &info);
}
msi_free(prop);
- TRACE("executing exe %s \n",debugstr_w(cmd));
+ TRACE("executing exe %s\n", debugstr_w(cmd));
rc = CreateProcessW(NULL, cmd, NULL, NULL, FALSE, 0, NULL,
c_collen, &si, &info);
if (!deformated)
return ERROR_FUNCTION_FAILED;
- TRACE("executing exe %s \n",debugstr_w(deformated));
+ TRACE("executing exe %s\n", debugstr_w(deformated));
rc = CreateProcessW(NULL, deformated, NULL, NULL, FALSE, 0, NULL,
c_collen, &si, &info);