I wrote a code using python than consists of a couple of processes popens some FTPs and works fine!
I used pyinstaller --onefile --noconsole and created an exe file which still works as planned.
My goal is to add it to the windows startup 7, 8.1 and 10 and I should do it in 250 laptops at work.
I put it in %TEMP% folder and still works on click!
The problem is when I add it to "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run" it gives me an error that the script fails!!!!
but when I add it to the start menu's startup it works fine! have anyone noticed the problem!!!
It is driving me crazy
Note 1: I tried other directories
Note 2: I tried run as admin