Access to the path "...\Local\Temp\.....exe" is denied!


  • Ok, i have created an autoupdate system for my software. I download new version to \Local\Temp\ folder. And no problems occurs. But if i try to start .exe file that i downloaded, i get error "Access to the path 'C:\Users\xxx\AppData\Local\Temp\updater.exe' is denied." The code that i use is:


    ProcessStartInfo upgradeProcess = new ProcessStartInfo("updater.exe");
    upgradeProcess.WorkingDirectory = System.Environment.ExpandEnvironmentVariables("%TEMP%");

    What steps i should take to eliminate that problem?

    Thanks in advance!

    Friday, November 05, 2010 10:23 AM


All replies