Error in build using generic Delphi Plug-In...

Interested in developing new plug-ins? Got one to share? Post here!
jediware
Posts: 2
Joined: Fri Oct 15, 2010 9:53 am

Error in build using generic Delphi Plug-In...

Postby jediware » Fri Oct 15, 2010 1:27 pm

Background

I am using:
* WIndows 7 64bit
* InstallAware 9 R2 (Moya.sp1.060409)
* Delphi 2007

What I did:
* Created a new project from InstallAware (Plug-Ins>Delphi Plug-In)
* Opened project in Delphi 2007, Compiled both DLLs.
* Added the following to my registry:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MimarSinan\InstallAware\2.0\Plug-Ins\Demo]
@="C:\\Users\\Luke\\Documents\\InstallAwarePlugin\\mIDEPlug.dll"
"Action"="InstallAwarePlugin"
"Execute"="mEXEPlug.dll"
"Script"="Delphi Plug-In"


* Opened InstallAware, created a Blank Project
* Used my newly created "Delphi Plug-In" without a problem (Here is the script:)

Code: Select all

~InstallAware Clipboard Data~
~Comment~
~{174B0BF3-FE9B-45A7-8715-17A74A614754}~
~~
~InstallAwarePlugin~
~{6C66F791-51A1-49BA-91FB-1BAD861D9673}~
~TRUE,$TEST$~
~mIDEPlug.dll\mEXEPlug.dll~
~Set Variable~
~{D8EFA28B-628E-4FE5-999C-D93E4C52D61A}~
~TEST$MYAH$MYAH$FALSE~
~1~


* Did a "Build CD or DVD" and got the following results:

Code: Select all

Building Project: DelphiPluginExample
Output Folder: C:\Users\Luke\Documents\DelphiPluginExample\Release\UncompressedDeployment Type: Uncompressed Directory Layout
Code Signing: Disabled
Compression: Default
###
Cleared output folder C:\Users\Luke\Documents\DelphiPluginExample\Release\UncompressedBuilt plug-in action InstallAwarePlugin
Created Windows Installer database
Built installation executable
Injected setup languages
Error during build: Some plug-ins required by your project are not available.    Please ensure all required plug-ins are installed. Run InstallAware setup and   choose Add or Remove Features, or run the third party plug-in installer.
 


Any idea what I am doing wrong? Thanks in advance for your assistance.

Sincerely,

Luke Lanphear
Eclipse Software Systems, Inc.

P.S. I have attached a zip file with the Delphi project, InstallAware project, registry update, etc.
PluginExample.zip
This is all projects and settings used to reproduce the problem.
(1.87 MiB) Downloaded 1188 times

jediware
Posts: 2
Joined: Fri Oct 15, 2010 9:53 am

Re: Error in build using generic Delphi Plug-In...

Postby jediware » Fri Oct 15, 2010 3:55 pm

Found the solution here...

http://forums.installaware.com/viewtopic.php?f=2&t=1719

In a nutshell, the Plug-In registry Folder name MUST BE THE SAME as the Action

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MimarSinan\InstallAware\2.0\Plug-Ins\InstallAwarePlugin]
@="C:\\Users\\Luke\\Documents\\InstallAwarePlugin\\mIDEPlug.dll"
"Action"="InstallAwarePlugin"
"Execute"="mEXEPlug.dll"
"Script"="Delphi Plug-In"

mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Error in build using generic Delphi Plug-In...

Postby mills » Fri Oct 15, 2010 3:57 pm

Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.

mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Error in build using generic Delphi Plug-In...

Postby mills » Fri Oct 15, 2010 4:03 pm

You must have trained in the ways of the Jedi.

jedimindtrickbenkenobi.jpg
jedimindtrickbenkenobi.jpg (14.35 KiB) Viewed 14740 times
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.


Return to “Plug-In Development”

Who is online

Users browsing this forum: No registered users and 47 guests