Issue when copying file to AppData folder via File Folder Operation

Issue when copying file to AppData folder via File Folder Operation

Hello,

I am currently having a problem with copying a file to the AppData folder for users via File Folder Operations when installing a package via ManageEngine.

The installer for the .exe runs without issue and I am able to copy the required file to C:\Program Files (x86)\ in a separate File Folder Operation but for the operation which has the destination as a folder in the AppData directory, it will for whatever reason not perform the copy. I do not get an error message either so I am at a bit of a loss.

From previous threads I have read through, it appears that ManageEngine will not recognise Windows shorthand, is this correct? For example, the destination path I have been using was C:\Users\%username%\AppData\Roaming\SAP\Common

I have also tried %userprofile%\AppData\Roaming\SAP\Common as the path but again I have had no joy with this. I suspect it is going wrong where it is unable to decipher the %username% or %userprofile%

As such, I did more digging and have found that ManageEngine makes use of dynamic variables, but alas, I am still having trouble with getting these to work. I have tried the following so far with the dynamic variables - $ProfilesDir\$DomainUsername\AppData\Roaming\SAP\Common and $UserAppData\SAP\Common

Are the above correct? Do I need to also still put C:\ before the variable or should this recognise this based on the dynamic variables used? Where am I going wrong with this?

Essentially, what is the correct way for me to target C:\Users\{Username}\AppData\Roaming\SAP\Common using whatever way ManageEngine does this?

It should be worth noting that this is set as a post deployment operation. And, the folder does already exist prior to the install. But the folder is there after the .exe has installed either way. Also, I have set this as a computer configuration rather than a user configuration as we are targeting specific computers during testing.

Thanks,
Jonathan.


                  New to ADSelfService Plus?