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

  • Thread starter Thread starter Pini
  • Start date Start date
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?
 
Are you sure the copy worked? 1619 implies it couldn't open the MSI file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top