MSI error code 1619 when trying to install msi package on win 2000

P

Pini

Hi all i have a machine with win 2000 sp 4
The windows installer is 3.1 and iam trying to run a package from a
remote machine using
system.managment API.

// If local we don't use the user and password
if (IsLocalHost(destMachine))
{
user = string.Empty;
password = string.Empty;
}

string destTempFolder = @"\\" + destMachine + "\\" +
config.DestindationTempFolder;

// Copying the installer to the dest machine
CopyInstallerToDestMachine(user, password, destTempFolder);

// Getting the remote machine scope
ManagementScope scope = GetRemoteMachineScope(destMachine,
user, password);

ManagementPath mp = new ManagementPath("Win32_Product");
ObjectGetOptions og = new ObjectGetOptions();
ManagementClass mc = new ManagementClass(scope, mp, og);

// Getting the reboot option from the config
string rebootOption = config.RebootOption;

string installationParams = "REBOOT=" + rebootOption;

object[] args = { destTempFolder + @"\" +
config.AgentInstallerFileName, installationParams, true };

// Installing the agent
uint returnCode = (uint)mc.InvokeMethod("Install", args);
if (returnCode != 0 &&
returnCode != 1641)


I am getting the 1619 error code, this problem does not occur when the
target machine is win xp!
Any suggestions?
 
Top