SharpShell not working on non-develop device

Nov 4, 2014 at 5:42 PM
Edited Nov 4, 2014 at 5:46 PM

I installed SharpShell 2.1 and the contextmenu I created on my own PC works fine. I register the .dll automatically as below:
private void activateContextMenu(){
            string path = Environment.CurrentDirectory;
            string arguments = "/k cmd /c @\"" + path + "\\Resources\\srm.exe" + "\" install \""+ path + "\\Resources\\MKVcontextmenu.dll\" -codebase";
            p = new Process();
            p.StartInfo.UseShellExecute = false;
            p.StartInfo.RedirectStandardError = true;
            p.StartInfo.RedirectStandardOutput = true;
            p.StartInfo.FileName = "CMD.exe";
            p.StartInfo.CreateNoWindow = true;
            p.StartInfo.Arguments = arguments;
This works fine on my own PC, the contextmenu shows up in explorer.

However, when I publish my program and install it on my 2nd pc, the contextmenu doesn't show up in explorer. It does in the Server Manager! I tried to install it manually with Server Manager and srm.exe, but this doesn't work. No errors...

Can you give me some advice?

Greetz Arnoud