Forum Discussion

thomasboettner's avatar
thomasboettner
Copper Contributor
May 24, 2019

replacement for ActiveSetup and AdvertisedShortcut to deploy User Parts

Hello Techcommunity,

how is it possible with msix to provide user parts for all users who log on to a computer as it does ActiveSetup and AdvertisedShortcut on msi.

Kind regards

Thomas

  • thomasboettnerMSIX is technically a user-based installation, if you double click the MSIX file this will register the application only on the user that installs it. However, all the files are placed in %ProgramFiles%\WindowsApps\PublisherName.AppName_AppVersion_architecture_hash

    If another user wants to install the application, this will only register it on that current user.

     

    All files (including user files) are present in the above location.

     

    From some tests that i did, when you provision an app on all users using

    Add-AppxProvisionedPackage -online -PackagePath "c:\package.msix", after another user logs in on the machine, the install (or publish to be more correct) of the app will happen silently and all the userdata that is present in the VFS of the MSIX (from %PF%\WindowsApps) will be published in the user location:

     

    %localappdata%\packages\PublisherName.AppName_hash

     

    That location simulates all the necessary user locations like AppData, LocalCache, RoamingState, etc.

     

    So in theory, you don't need ActiveSetup or Advertised Shortcuts to place userdata like we did on MSI technology.

     

     

  • alexmarin89's avatar
    alexmarin89
    Iron Contributor

    thomasboettnerMSIX is technically a user-based installation, if you double click the MSIX file this will register the application only on the user that installs it. However, all the files are placed in %ProgramFiles%\WindowsApps\PublisherName.AppName_AppVersion_architecture_hash

    If another user wants to install the application, this will only register it on that current user.

     

    All files (including user files) are present in the above location.

     

    From some tests that i did, when you provision an app on all users using

    Add-AppxProvisionedPackage -online -PackagePath "c:\package.msix", after another user logs in on the machine, the install (or publish to be more correct) of the app will happen silently and all the userdata that is present in the VFS of the MSIX (from %PF%\WindowsApps) will be published in the user location:

     

    %localappdata%\packages\PublisherName.AppName_hash

     

    That location simulates all the necessary user locations like AppData, LocalCache, RoamingState, etc.

     

    So in theory, you don't need ActiveSetup or Advertised Shortcuts to place userdata like we did on MSI technology.

     

     

      • TIMOTHY_MANGAN's avatar
        TIMOTHY_MANGAN
        MVP

        thomasboettner Consider the "supported" method of this.

         

        Any MSIX package can be pre-deployed using the powershell cmdlet.  The pre-deployment adds the files in place without completing the "per user" installation. Whenever a user logs onto that OS, the package will be "installed" to that user, which only consists of the user integration, and any licensing needed.  Keep in mind that this is for all users on that OS instance, and if you need per-user deployment to a subset of users then something like SCCM or MSIX AppAttach would be more appropriate. 

Resources