Hi guys!
I want to use the activity use application/browser to automate clicks through an msi installation process. The problem is when using the activity, the application path changes every time in the local app data folder. So how do I make a dynamic path? Do I incorporate variables? IF yes then where do I learn more about using variables in UiPath?
Thanks.
I suggest take the beginners courses on UiPath Academy. Its free
Hi Youssef169886,
If you want a dynamic path then follow the next steps:
- Use the Get Environemt Folder activity. Configure it as UserProfile and then create an output
string variable to store the folder path i.e. UserProfile.

- Use an assign activity and create a variable of type string i.e. DownloadPath and assign it into the Save to (left side of the assign activity). In the right side of the assign activity then you need to paste the following expression. UserProfile + “\Downloads”
NOTE: For more details you can fin the .xaml file attached here.
Main.xaml (6.7 KB)
Cheers!
Hi @jose.ordonez1 ,
The problem with that is that the .exe installer uses a variable path in the temp folder as well. I used your advice on resolving the issue of the local app data folder, but I can’t use it the same for the second part. Below are some examples of the paths taken by the installer
“C:\Users\youss\AppData\Local\Temp\Ctx-9D2AB674-29EA-4A7E-A578-030CA28E8AF8\Extract\trolleyexpress.exe”
“C:\Users\youss\AppData\Local\Temp\Ctx-79018053-CEC4-419E-9073-0F29AA615617\Extract\trolleyexpress.exe”
“C:\Users\youss\AppData\Local\Temp\Ctx-553A495E-746F-4258-B9A7-D59B52B35750\Extract\trolleyexpress.exe”
Hi youssef169886,
Please try to test the .xaml file attached to this message.
Main.xaml (9.0 KB)
Hope it helps you!