Destination "MyApp" must -Destination "MyApp"
The idea is good, but I don't think it's a good idea to install per user. I haven't investigated it further. Perhaps I'm misunderstanding it
With a per-user installation, you only need the values for that user and not for the others (default user, admin accounts).
I wouldn't use the Copy-ADTFileToUserProfiles function even with the parameters "-ExcludeDefaultUser -ContinueFileCopyOnError". It doesn't have the right to set values for users with admin rights. My primary concern is simply to prevent errors from appearing in the log
[Install] :: Failed to modify the registry hive for User [Domain\ClientAdminUser] with SID [S-1-5-21-1324208-841832012-1246845465-47433]
InnerException : System.ComponentModel.Win32Exception (0x80004005): Zugriff verweigert
-C:\Users\ClientAdminUser\NTUSER.DAT
in Script
$MyUserSource=$($adtSession.DirFiles)+'\DE\*'
Copy-ADTFileToUserProfiles -Path $MyUserSource -Destination 'AppData\Roaming' -Recurse -ExcludeDefaultUser -ContinueFileCopyOnError
Success
[Install] :: Copying path [C:\Temp\100900-Geberit-Proplanner2025R2 5.8.11000 EN 4.1.6\Files\DE\*] to C:\Users\username\AppData\Roaming: Copy-ADTFileToUserProfiles 28.10.2025 17:30:36 4100 (0x1004)
[Install] :: Copying file(s) recursively in path [C:\Temp\100900-Geberit-Proplanner2025R2 5.8.11000 EN 4.1.6\Files\DE\*] to destination [C:\Users\username\AppData\Roaming]. Copy-ADTFile 28.10.2025 17:30:36 4100 (0x1004)
[Install] :: File copy completed successfully. Copy-ADTFile 28.10.2025 17:30:36 4100 (0x1004)
The parameter "-UserProfiles <UserProfile" would require listing all administrators – pointless.
It would be advantageous to use onlyLoginUser so that the process only occurs with that user.
I still need to download and configure version 4.1.7.