Working with environment variables in Path
Posted: Tue Apr 14, 2015 7:49 am
Hello,
during the installation process of our application the user has the option to enter a path that is then saved in the registry and used by our application to store data.
During the uninstallation process we want to delete all files from that folder. Therefore we get the value from the registry and store it in a variable.
Then we use "Recursively Delete Files" to clean the folder.
Now we have the following problem: When the user entered a path like %APPDATA%\myapplication the "Recursively Delete Files" does not work. Is there an MSI-code to expand the variable before calling "Recursively Delete Files"?
Or sould the "Recursively Delete Files" work with a path like above and I did something else wrong?
Thanks!
during the installation process of our application the user has the option to enter a path that is then saved in the registry and used by our application to store data.
During the uninstallation process we want to delete all files from that folder. Therefore we get the value from the registry and store it in a variable.
Then we use "Recursively Delete Files" to clean the folder.
Now we have the following problem: When the user entered a path like %APPDATA%\myapplication the "Recursively Delete Files" does not work. Is there an MSI-code to expand the variable before calling "Recursively Delete Files"?
Or sould the "Recursively Delete Files" work with a path like above and I did something else wrong?
Thanks!