Announcement

Collapse
No announcement yet.

MSI chain questions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MSI chain questions

    Hi,
    I followed this article
    http://www.mindquake.com.br/en/examples/msichain
    I have few questions:

    1. The last file (mainsetup) run twice. any reason ?
    2. The msi's will run quietly [in my case I think it's running "/passive"] ?
    3. The artice is true to msu files, too ?

    Thanks

  • #2
    1. The last file (mainsetup) run twice. any reason ?
    Perhaps you didn't follow the instructions, and included the mainsetup twice (i.e., added it incorrectly to the tInstallOrder array)? Hard to guess without seeing your project...

    2. The msi's will run quietly [in my case I think it's running "/passive"] ?
    If that isn't what you want, then you can edit the script as desired.

    3. The artice is true to msu files, too ?
    *.msu files are stand alone Windows Update packages, and are not processed by Windows Installer. You could modify the script and process those files, of course.

    Ulrich

    Comment


    • #3
      Hi Urlich,

      If I remove this part from mainscript.lua, the mainsetup [last msi] doesn't runtwice.
      I followed your article step by step.
      I will open new ticket and sent it to you.

      Thanks


      ########## Lua

      -- finally, deploy "mainsetup" as usual
      g_ExtractNamedMSIFromArchive("mainsetup", strInstallerPathExtracted);
      strCommandLine = "-i \""..strInstallerPathExtracted.."\"";
      local strMSILogFile = g_GetMSILogFile();
      if (strMSILogFile ~= "") then
      strCommandLine = strCommandLine.." /l \""..strMSILogFile.."\"";
      end
      Application.WriteToLogFile("Notice Launching MSI: " .. strCommandLine .. "\r\n");
      local nReturnCode = MSI.RunMsiexec(strCommandLine);
      local nMSIError = Application.GetLastError();
      if (nMSIError ~= 0) then
      g_ShowErrorMessage("MSG_ERROR", "ERR_SCRIPT_MSI_EXEC_SETUP_RUN", true, nMSIError, 57);
      else
      Application.WriteToLogFile("Notice MSI setup return code: "..nReturnCode.."\r\n");
      end
      Application.Show();

      Comment

      Working...
      X