Page 1 of 1

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

Posted: Fri Oct 15, 2010 1:27 pm
by jediware
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 1219 times

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

Posted: Fri Oct 15, 2010 3:55 pm
by jediware
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"

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

Posted: Fri Oct 15, 2010 3:57 pm
by mills

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

Posted: Fri Oct 15, 2010 4:03 pm
by mills
You must have trained in the ways of the Jedi.

jedimindtrickbenkenobi.jpg
jedimindtrickbenkenobi.jpg (14.35 KiB) Viewed 14974 times