Installer.Installを手動で呼び出そうとしています:
ProjectInstaller installer = new ProjectInstaller();
installer.Install(new Dictionary<int, int>());
問題:
System.ArgumentException was unhandled.
The value "_reserved_lastInstallerAttempted" is not of type "System.Int32"
and cannot be used in this generic collection.
at System.ThrowHelper.ThrowWrongKeyTypeArgumentException(Object key, Type targetType)
at System.Collections.Generic.Dictionary`2.System.Collections.IDictionary.Add(Object key, Object value)
at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
at CSShellExtContextMenuHandler.ProjectInstaller.Install(IDictionary stateSaver) in C:\Users\win7pro32bit\Documents\lab\CSShellExtContextMenuHandler\ProjectInstaller.cs:line 40
at Starter.Program.Main(String[] args) in C:\Users\win7pro32bit\Documents\lab\Starter\Program.cs:line 14
new Dictionary<int, int>
パラメータとして、、、などを試しnew Dictionary<string, string>
ましたが、どれも機能しません。ドキュメントは役に立ちません。何が期待されますか?