I am using a windows script host for some kind of installer application and I am creating shortcuts in the start menu with it. This problem arose when I switched to x64 environment (win7 ultimate x64 + vs2010)
I added a link to the Windows script Host Object Model (from c: \ windows \ syswow64 \ wshom.ocx), it generated the Interop.IWshRuntimeLibrary DLL.
I added 'using IWshRuntimeLibrary;' to my .cs files, but when I tried to create
WshShell sh = new WshShellClass();
it throws an exception:
Failed to load file or assembly 'Interop.IWshRuntimeLibrary, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null' or one of its dependencies. An attempt was made to download a program with the wrong format.
I assume that for this I will need a 64-bit version of this wshom.ocx, but I do not know what I should try.
Or, I just delete the contents of the Windows script, but I need another way to create start menu shortcuts from the .net application.
c # interop windows-scripting
Axarydax
source share