开发者

windows container open ppt failed

container: mcr.microsoft.com/windows:1809

use odt to install office365 in container.

then use this command to open ppt with no response(open function not return)

$Powerpoint = New-Object -ComObject powerpoint.application

$ppt = $Powerpoint.presentations.open("c:\2.pptx", $TRUE, $FALSE)

dockerfile:

FROM mcr.microsoft.com/windows:1809
WORKDIR C:\\
RUN mkdir c:\\install
COPY .\\office2019 c:\\install\\office2019\\
WORKDIR c:\\install\\office2019
RUN mkdir C:\\Windows\\SysWOW64\\config\\systemprofile\\Desktop
RUN mkdir C:\\Windows\\system32\\config\\systemprofile\\Desktop
RUN C:\\install\\office2019\\setup.exe /configure C:\\install\\office2019\\config.xml

config.xml:

<Configuration>
  <Logging Level ="Standard" Path ="c:\\install\\logs" Template ="RI-O365NEW.log.txt"/>
  <Add OfficeClientEdition="32">
    <Product ID="O365ProPlusRetail">
      <Language ID="en-us" />
      <ExcludeApp ID="Excel" />
      <ExcludeApp ID="Groove" />
      <ExcludeApp ID="OneDrive" />
      <ExcludeApp ID="OneNote" />
      <ExcludeApp ID="开发者_Go百科;Outlook" />
      <ExcludeApp ID="Publisher" />
      <ExcludeApp ID="Word" />
    </Product>
  </Add>

  <!--  <RemoveMSI All="True" /> -->

  <Display Level="None" AcceptEULA="TRUE" />

  <!--  <Property Name="AUTOACTIVATE" Value="1" />  -->

</Configuration>

some test:

1.ppt delete object action is work enter image description here

2.use mcr.microsoft.com/windows/server:ltsc2022 is work

3.use office 2019, install failed

how to make it to work with mcr.microsoft.com/windows:1809 and object action? or how to get the error?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜