Page 1 of 1

Error 87 with win7: add-package is not an option

PostPosted: 06.03.2019, 16:54
by fdelente
Hello,

I have this problem with a win7 computer: when I start UpdateInstaller.exe on it, it stops with this error:

error 87
add-package is not an option. Type dism /? to see available options.

Do I have to update dism to a newer version? If so, how can I do it? Thanks!

F. Delente

Re: Error 87 with win7: add-package is not an option

PostPosted: 06.03.2019, 17:06
by Dalai
Please post the full build number of your Windows and/or DISM. You can see the former in a CMD (command prompt) window and the latter with DISM /? on a CMD.

Regards
Dalai

Re: Error 87 with win7: add-package is not an option

PostPosted: 06.03.2019, 17:17
by fdelente
Hello,

cmd gives these values:

Windows version 6.1.7601

DISM version 6.1.7600.16385

Re: Error 87 with win7: add-package is not an option

PostPosted: 06.03.2019, 17:31
by Dalai
Try the following command:
Code: Select all
dism /online /? | findstr /i "add-package"
Do you see any output? Also, please check the state of "Windows Modules Installer" service (TrustedInstaller) in services.msc and enable it if it's disabled.

Regards
Dalai

Re: Error 87 with win7: add-package is not an option

PostPosted: 06.03.2019, 17:48
by boco
As a reference, here's the output of my Win7 x64:
Code: Select all
Q:\wsusupdate\client\cmd>dism /online /? | findstr /i "add-package"
  /Add-Package            - Adds packages to the image.

Q:\wsusupdate\client\cmd>

Re: Error 87 with win7: add-package is not an option

PostPosted: 06.03.2019, 18:12
by fdelente
I have "add-package" like you as a result of the findstr command, so this option IS available even though the error message says otherwise... That's strange!

Regarding the "Windows Module Installer", I saw nothing similar in the services, but my Windows is in french, so it may have been translated some other way... What is the executable name? Maybe I can find it in the task manager?

Re: Error 87 with win7: add-package is not an option

PostPosted: 06.03.2019, 18:15
by Dalai
Try this:
Code: Select all
sc query TrustedInstaller
sc qc TrustedInstaller

You can't find that service in Task Manager because it's most likely disabled, causing this error.

Regards
Dalai

Re: Error 87 with win7: add-package is not an option

PostPosted: 06.03.2019, 20:04
by fdelente
Thanks for all this useful info! I'm much more versed in linux than in Windows :^)

sc query TrustedInstaller gives:
Code: Select all
TYPE: 10 WIN32_OWN_PROCESS
STATE: 1 STOPPED
WIN32_EXIT_CODE: 0 (0x0)
SERVICE_EXIT_CODE: 0 (0x0)
CHECKPOINT: 0x0
WAIT_HINT: 0x0


and sc qc TrustedInstaller:

Code: Select all
SERVICE_NAME: TrustedInstaller
TYPE: 10 WIN32_OWN_PROCESS
START_TYPE: 3 DEMAND_START
ERROR_CONTROL: 1 NORMAL
BINARY_PATH_NAME: C:\Windows\servicing\TrustedInstaller.exe
LOAD_ORDER_GROUP: ProfSvc_Group
TAG: 0
DISPLAY_NAME: Programme d'installation pour les modules Windows
SERVICE_START_NAME: localSystem


If i understand correctly, it's not disabled but started on demand, that is by UpdateInstaller.exe when I start it?

Re: Error 87 with win7: add-package is not an option

PostPosted: 06.03.2019, 20:37
by Dalai
That's really strange. I was quite sure the service is disabled on your system (see this response on SuperUser). To answer your question: No, TrustedInstaller will be started by other services or system components when necessary. WSUS Offline will only take care of Windows Update service (wuauserv).

OK, I guess we need DISM.log. Look for it in C:\Windows\Logs\DISM\dism.log, compress is somehow (ZIP, RAR, 7z), upload it somewhere and link to it here so we can take a look at it.

Regards
Dalai

Re: Error 87 with win7: add-package is not an option

PostPosted: 06.03.2019, 21:24
by aker
Could you upload C:\Windows\Logs\DISM\DISM.log and post a link here?