I have written a program in C# which I would like to open automatically at startup. As such, I have added a value to the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
key:
Name: CustomTaskbar
Data: "C:\Users\test\Documents\CustomTaskbar\CustomTaskbar.exe"
Unfortunately, when I login, I am encountered with an error. Windows says 'CustomTaskbar has stopped working' and the details say this:
Files that help describe the problem:
C:\Users\test\AppData\Local\Temp\WERECE7.tmp.WERInternalMetadata.xml
C:\Users\test\AppData\Local\Temp\WERF655.tmp.appcompat.txt
C:\Users\test\AppData\Local\Temp\WERF823.tmp.mdmp
I have no idea why this is happening, as it works just fine when I run it manually, either via Windows Explorer or cmd.
I have written the program in C#. Do I have to add anything to the code in order to make it compatible with the registry key?
I apologise in advance if this is a stupid question, with a simple answer, but I cannot find any fix online.
Thanks.