SOLVED

replacement for ActiveSetup and AdvertisedShortcut to deploy User Parts

Copper Contributor

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

3 Replies
best response confirmed by thomasboettner (Copper Contributor)
Solution

@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.

 

 

Sounds good, ill try it out.

@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. 

1 best response

Accepted Solutions
best response confirmed by thomasboettner (Copper Contributor)
Solution

@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.

 

 

View solution in original post