Trouble with application path in use application activity

Hi everyone,
I am trying to create an automation that downloads and installs Visual Studio Code but, I need to make this automation accessible for any computer. I am running into an issue when I try to use the use application activity to open the installer.exe window. the file path without trying to make it accessible to other computers is “C:\Users\KYLEPE~1\AppData\Local\Temp\is-89F79.tmp\vscodesetup-x64-1.79.2.tmp”, is there a way to have the “KYLEPE~1” be changed to work with any user? Any help would be appreciated

Hi,

you can replace the 1st part of the path (C:\Users\KYLEPE~1\AppData\Local) with this:

Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
1 Like

Hi Irene,
Thanks for the reply, I’ll give that a try but I just found that replacing “C\Users\KYLEPE~1” with %userprofile% also works.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.