Forum Discussion

thomasboettner's avatar
thomasboettner
Copper Contributor
May 24, 2019
Solved

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
  • alexmarin89's avatar
    May 26, 2019

    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.

     

     

Resources