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

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

Postby fdelente » 06.03.2019, 16:54

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
fdelente
 
Posts: 4
Joined: 06.03.2019, 16:52

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

Postby Dalai » 06.03.2019, 17:06

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
Dalai
 
Posts: 1041
Joined: 12.07.2016, 21:00

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

Postby fdelente » 06.03.2019, 17:17

Hello,

cmd gives these values:

Windows version 6.1.7601

DISM version 6.1.7600.16385
fdelente
 
Posts: 4
Joined: 06.03.2019, 16:52

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

Postby Dalai » 06.03.2019, 17:31

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
Dalai
 
Posts: 1041
Joined: 12.07.2016, 21:00

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

Postby boco » 06.03.2019, 17:48

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>
Microsoft update catalog: http://catalog.update.microsoft.com/v7/site/
Windows Install media download: https://support.microsoft.com/en-us/help/15088/windows-create-installation-media
boco
 
Posts: 2391
Joined: 24.11.2009, 17:00
Location: Germany

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

Postby fdelente » 06.03.2019, 18:12

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?
fdelente
 
Posts: 4
Joined: 06.03.2019, 16:52

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

Postby Dalai » 06.03.2019, 18:15

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
Dalai
 
Posts: 1041
Joined: 12.07.2016, 21:00

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

Postby fdelente » 06.03.2019, 20:04

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?
fdelente
 
Posts: 4
Joined: 06.03.2019, 16:52

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

Postby Dalai » 06.03.2019, 20:37

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
Dalai
 
Posts: 1041
Joined: 12.07.2016, 21:00

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

Postby aker » 06.03.2019, 21:24

Could you upload C:\Windows\Logs\DISM\DISM.log and post a link here?
Wer Rechtschreibfehler findet, darf sie behalten oder an den Meistbietenden versteigern. / Everybody finding a misspelling is allowed to keep or sell it.
aker

WSUS Offline Update „Community Edition“
https://gitlab.com/wsusoffline/wsusoffline/-/releases
aker
 
Posts: 3999
Joined: 02.03.2011, 15:32


Return to Installation / Updating

Who is online

Users browsing this forum: No registered users and 56 guests