Hello i am new to this application and i am looking for some help. i am trying to copy multiple files from the support files directory to AppData of currently logged in user. my code is as follows.
none of the pieces of code seems to be working. i am thinking that my declaration of the enviornment is wrong, but i can not find a correct one. Please assist
We might be talking about two different things here. I have two files in the Support File directory. From the Admin Guide i understand that i need to do this. Copy-File Copy-File -Path “$dirSupportFiles\deployment.properties” Depoloyment.properties is the actual file that needs to be copied. for the destination it needs to go to AppData\LocalLow\Sun\Java\Deployment folder of the current user. This is post-install action. I am not following how the code that you provided is going to help me. In batch file i can use %USERPROFILE%\AppData\LocalLow\Sun\Java\Deployment\ and it does the trick.
Why not take a step back and use $envUserProfile variable instead? This would change your destination paths to:
“$envUserProfile\AppData\LocalLow\Sun\Java\Deployment”
“$envUserProfile\AppData\Roaming\Oracle\SmartView”