Add Store to Windows Enterprise LTSB new methods

Discussion in 'Windows 10' started by hamza1983, Aug 22, 2016.

  1. hamza1983

    hamza1983 MDL Novice

    Nov 1, 2009
    45
    42
    0
    #1 hamza1983, Aug 22, 2016
    Last edited by a moderator: Apr 20, 2017
  2. NICK@NUMBER11

    NICK@NUMBER11 MDL Expert

    Mar 23, 2010
    1,369
    642
    60
    So could you confirm what is within the folder?
     
  3. dobbelina

    dobbelina MDL Senior Member

    Apr 2, 2009
    425
    509
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. hamza1983

    hamza1983 MDL Novice

    Nov 1, 2009
    45
    42
    0
    no it is appxbundle package from original disc

    SW_DVD5_NTRL_Win_10_1607_32_64_MultiLang_App_Update_X21-12056

    i need help to add this package in the mounted WIM LTSB
     
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    8,389
    28,857
    270
    #5 abbodi1406, Aug 22, 2016
    Last edited by a moderator: Apr 20, 2017
    The script is clearly for Updating Apps, not adding them (it's my script actually :p)
    while it might work becaue of sideloading apps mode, but it's not the correct way to add an app

    what's wrong with using this one simple command? :g:
    x86
    Code:
    Add-AppxProvisionedPackage -Online -PackagePath Microsoft.WindowsStore_8wekyb3d8bbwe.appxbundle -DependencyPackagePath Microsoft.VCLibs.x86.14.00.appx,Microsoft.NET.Native.Framework.x86.1.3.appx,Microsoft.NET.Native.Runtime.x86.1.3.appx -LicensePath Microsoft.WindowsStore_8wekyb3d8bbwe.xml
    x64
    Code:
    Add-AppxProvisionedPackage -Online -PackagePath Microsoft.WindowsStore_8wekyb3d8bbwe.appxbundle -DependencyPackagePath Microsoft.VCLibs.x64.14.00.appx,Microsoft.VCLibs.x86.14.00.appx,Microsoft.NET.Native.Framework.x64.1.3.appx,Microsoft.NET.Native.Framework.x86.1.3.appx,Microsoft.NET.Native.Runtime.x64.1.3.appx,Microsoft.NET.Native.Runtime.x86.1.3.appx -LicensePath Microsoft.WindowsStore_8wekyb3d8bbwe.xml
    insead copying files from other system and taking ownership, setting permission... blah blah of that nonsense
     
  6. dobbelina

    dobbelina MDL Senior Member

    Apr 2, 2009
    425
    509
    10
    #6 dobbelina, Aug 23, 2016
    Last edited by a moderator: Apr 20, 2017
    Nice!

    Couldn't one add this to the "RunOnce" reg key(Pointing to a script file) in the Software hive, so it executes automatically after/during install?
    (And the ps1 script somewhere on the DVD/Install media)
    Just an idea :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    8,389
    28,857
    270
    Or integrate it into wim image the same way :rolleyes:
    using -Path C:\Mount instead -Online
     
  8. dobbelina

    dobbelina MDL Senior Member

    Apr 2, 2009
    425
    509
    10
    #8 dobbelina, Aug 23, 2016
    Last edited: Aug 23, 2016
    I wonder if the store app can be "injected" to an image with Add-AppxProvisionedPackage ?

    Add-AppxPackage only works -Online as far as I know, hence you can't inject it into a image/WIM file.

    I'm no pro at this so please correct me if i'm wrong.:confused:

    The above is done to the already running system after/during install, and my idea would be to script it into the "RunOnce"
    key as that seems feasible, and you would have the store installed without any user input. :D

    A third alternative if one is hellbent on having it incorporated 100%, would be to run the above
    Pshell script on a live system, and use a registry snapshot tool to figure out the differences, which
    one then tries to incorporate into the offline hive, but that's a longshot that I have no clue if it's doable...?

    Running the above "one liner" from shewolf will not only register the store app, it will register all apps,
    so you will have a lot of registry changes to contemplate :eek:

    This would probably work and narrow it down somewhat:
    Add-AppXPackage -Register '%ProgramFiles%\WindowsApps\Microsoft.WindowsStore*\AppXManifest.xml' -DisableDevelopmentMode
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    8,389
    28,857
    270
    #9 abbodi1406, Aug 23, 2016
    Last edited by a moderator: Apr 20, 2017
    Provisioned = installed for all users
    it's not to define an app type
    the command is Add-AppxProvisionedPackage, what's more clear you want? :g:

    Code:
    Add-AppxProvisionedPackage -Path C:\Mount -PackagePath Microsoft.WindowsStore_8wekyb3d8bbwe.appxbundle -DependencyPackagePath Microsoft.VCLibs.x64.14.00.appx,Microsoft.VCLibs.x86.14.00.appx,Microsoft.NET.Native.Framework.x64.1.3.appx,Microsoft.NET.Native.Framework.x86.1.3.appx,Microsoft.NET.Native.Runtime.x64.1.3.appx,Microsoft.NET.Native.Runtime.x86.1.3.appx -LicensePath Microsoft.WindowsStore_8wekyb3d8bbwe.xml
    powershell is easier, dism require more parameters for each dependency package, but both function the same
    Code:
    dism /Image:C:\Mount /Add-ProvisionedAppxPackage /PackagePath:Microsoft.WindowsStore_8wekyb3d8bbwe.appxbundle /DependencyPackagePath:Microsoft.VCLibs.x64.14.00.appx /DependencyPackagePath:Microsoft.VCLibs.x86.14.00.appx /DependencyPackagePath:Microsoft.NET.Native.Framework.x64.1.3.appx /DependencyPackagePath:Microsoft.NET.Native.Framework.x86.1.3.appx /DependencyPackagePath:Microsoft.NET.Native.Runtime.x64.1.3.appx /DependencyPackagePath:Microsoft.NET.Native.Runtime.x86.1.3.appx /LicensePath:Microsoft.WindowsStore_8wekyb3d8bbwe.xml
    
     
  10. T-S

    T-S MDL Guru

    Dec 14, 2012
    3,988
    1,318
    120
    #10 T-S, Aug 23, 2016
    Last edited by a moderator: Apr 20, 2017

    Just a think good to know that seem very few people are aware of

    We know (I hope) that in most part of the windows command line the linux like tab autocompletion works

    But it doesn't after a colon, which is common on dism commands, so if you write

    dism /Image:C:\Mount /Add-ProvisionedAppxPackage /PackagePath:M

    an then you push the TAB button, nothing happens

    But a quote is enough to restore the functionality: just write the command above as

    dism /Image:C:\Mount /Add-ProvisionedAppxPackage /PackagePath:"M

    and the filename will be autocompleted, sparing a lot of typing or copy/paste
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. dobbelina

    dobbelina MDL Senior Member

    Apr 2, 2009
    425
    509
    10
    #11 dobbelina, Aug 23, 2016
    Last edited: Aug 23, 2016
    The Microsoft.WindowsStore_8wekyb3d8bbwe package/s you would copy to mounted image path:
    Program Files\WindowsApps.
    It will then be copied over automatically during install, then use "RunOnce" reg key to run Pshell script which will
    execute when the first user log in "registering" the store app.


    That is, if you can't "inject" it directly with abbodi1406's Add-AppxProvisionedPackage command,
    to the "offline" image, cause that would be the best thing offcourse ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. hamza1983

    hamza1983 MDL Novice

    Nov 1, 2009
    45
    42
    0
  13. Supern00b

    Supern00b MDL Senior Member

    Dec 30, 2010
    445
    251
    10
    This is very interesting. Is it possible to make a step-by-step guide?
    The files still have to be downloaded I assume?
    Sorry for asking, you guys go pretty fast.

    Cheers.
     
  14. vanden

    vanden MDL Junior Member

    Mar 28, 2014
    70
    33
    0
    #14 vanden, Feb 25, 2017
    Last edited: Feb 25, 2017
    I found a way to run the WindowsStore with Windows Server 2016.
    https://forums.mydigitallife.net/th...-Policy-Editor

    The WindowsStore is blocked by Windows-Product-Policy.

    With Windows-Product-Policy-Editor I have backed up a Windows-Product-Policy file from Windows10.

    With Windows-Product-Policy-Editor (on Windows Server 2016) I load this file.

    After restarting the WindowsStore works properly!

    After installing the apps with the windows store you can reactivate all the server functions by reactivating SPPSvc and reboot.
     
  15. Gustavox10

    Gustavox10 MDL Novice

    Dec 19, 2010
    3
    0
    0
    Muchas gracias me a servido, Activado store x86 LTSB, and server 2016, gracias ,saludos.