Thursday, 30 September 2021

Unable to install or uninstall any applications in Windows 10 due to wrong environment variable settings

 Recently I got a peculiar problem, my machine working perfectly fine and I am installing the necessary apps one after another as per the requirements..

I have my Java, Netbeans, Sql developer , Oracle , XAMP studio,  Visual studio and sql server database. Everything is fine until one day.. 

On the day when I started my machine I found a weird behavior, MS word not working, CCleaner not opening, unable to run the applications and unable to uninstall any of the applications

After some troubleshooting, found that the TEMP variable (Environment variables) is assigned wrong, In previous versions whenever environment variables is to be set, It became practice to set the both PATH and TEMP variables with the same paths.. especially for JAVA, PHP, MYSQL etc., based on this practice the variables were set for the applications.. but in one the post found that the command %temp% should work in RUN command. (i.e., press   WindowsKey + R - for run dialog box, and type the command as %temp%) 

In my system, the command throwing error, because of environment variable TEMP is given path for JAVA,PHP and MYSQL . So I removed the paths of these application and made the variable as it is like the previous path. 

The error rectified and able to install the applications, please make a note to set the environment variable PATH only for the applications.  


No comments:

Post a Comment