INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Can't get my Plugin installed!  (Read 2172 times)

PaulSinnema

  • Galactic Citizen
  • ****
  • Posts: 393
  • You don't know what you're missing until its gone
Can't get my Plugin installed!
« on: April 14, 2007, 10:23:39 am »

Hi,

In Mr ChriZ's description it says I have to run the Inno Setup Compiler to create a setup.exe. This works fine and the created setup.exe executes flawless and installs the Plugin into MC12 ok. However as soon as I try to do something with it, MC says 'Interface plug-in "AutoEQ" could not be found or created'. I've tried registering it with regasm manually (succeeded) but that made no difference. What wrong.

Paul.

PS: Below is the script.



These are the files in the Build Files directory:

14.04.2007  15:57            10'752 Interop.CDMANAGERLib.dll
14.04.2007  15:57            36'864 Interop.MediaCenter.dll
14.04.2007  16:21            32'768 MC_CSPlugin_AutoEQ.dll
14.04.2007  16:21            34'304 MC_CSPlugin_AutoEQ.pdb



; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

[Setup]
AppName=AutoEQ Plugin for JRMC12
AppVerName=Plugin Version 0.0.0.1 Alpha
AppPublisher=Paul Sinnema
AppPublisherURL=www.paulsinnema.net
AppSupportURL=www.paulsinnema.net
AppUpdatesURL=www.paulsinnema.net
DefaultDirName={pf}\J River\Media Center 12\Plugins\AutoEQ
DefaultGroupName=AutoEQ Plugin
DisableProgramGroupPage=yes
OutputBaseFilename=Setup
Compression=lzma
SolidCompression=yes
DirExistsWarning=No

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

[Files]
Source: "..\Build Files\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{group}\{cm:UninstallProgram, Plugin}"; Filename: "{uninstallexe}"

[Registry]
Root: HKLM; Subkey: "Software\JRiver\Media Jukebox\Plugins\Interface\AutoEQ"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\JRiver\Media Jukebox\Plugins\Interface\AutoEQ"; ValueType: dword; ValueName: "IVersion"; ValueData: "00000001"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\JRiver\Media Jukebox\Plugins\Interface\AutoEQ"; ValueType: string; ValueName: "Company"; ValueData: "SBSoftware"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\JRiver\Media Jukebox\Plugins\Interface\AutoEQ"; ValueType: string; ValueName: "Version"; ValueData: "0.0.0.1"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\JRiver\Media Jukebox\Plugins\Interface\AutoEQ"; ValueType: string; ValueName: "URL"; ValueData: "www.paulsinnema.net"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\JRiver\Media Jukebox\Plugins\Interface\AutoEQ"; ValueType: string; ValueName: "Copyright"; ValueData: "Copyright (c) 2006, Paul Sinnema."; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\JRiver\Media Jukebox\Plugins\Interface\AutoEQ"; ValueType: dword; ValueName: "PluginMode"; ValueData: "00000001"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\JRiver\Media Jukebox\Plugins\Interface\AutoEQ"; ValueType: string; ValueName: "ProdID"; ValueData: "MCPlugin.CSAutoEQ"; Flags: uninsdeletekey

[Run]
Filename: "{win}\Microsoft.NET\Framework\v2.0.50727\regasm"; Parameters: "/Codebase MC_CSPlugin_AutoEQ.dll";          WorkingDir: "{app}\"; StatusMsg: "Registering Plugin"; Flags:runhidden

[UninstallRun]
Filename: "{win}\Microsoft.NET\Framework\v2.0.50727\regasm"; Parameters: "/unregister MC_CSPlugin_AutoEQ.dll";          WorkingDir: "{app}\"; StatusMsg: "Registering Plugin"; Flags:runhidden

Logged

PaulSinnema

  • Galactic Citizen
  • ****
  • Posts: 393
  • You don't know what you're missing until its gone
Re: Can't get my Plugin installed!
« Reply #1 on: April 14, 2007, 12:11:21 pm »

Found it!

The problem lies in the fact that in the program the Progid was different from the script.

In the program this was defined.

    [System.Runtime.InteropServices.ProgId ( "Template_MCPlugin.CSAutoEQ" )]

In the script this was defined.

Root: HKLM; Subkey: "Software\JRiver\Media Jukebox\Plugins\Interface\AutoEQ"; ValueType: string; ValueName: "ProdID"; ValueData: "MCPlugin.CSAutoEQ"; Flags: uninsdeletekey

Matching them up solved the problem.

Paul.

Logged
Pages: [1]   Go Up