Setup doesn't register toolbar

Add-in Express™ Support Service
That's what is more important than anything else

Setup doesn't register toolbar
 
Matt Comstock




Posts: 56
Joined: 2009-06-29
Hello,

I am having a similar problem, without the x86/x64 complication.

We have a completely successful product and InstallShield 2011 installer (Setup.exe) using v600 b3043, and are in the process of upgrading to v604 b3056 for our next release. I have updated all the ADX binaries and adxloader (we only support x86). When I run the installer, it completes "successfully", but in the log I get the same error/HRESULT mentioned by Ivan:

>> Log - Setup.exe
Add-in Express Registrator Log File: 06/27/2011 17:09:42

Installation directory: C:\WINDOWS\Installer\
Registrator version: 6.4.3056.0
Operating System: Microsoft Windows XP Professional Service Pack 3 (build 2600)
Process Owner: Administrator
Command Line: "C:\WINDOWS\Installer\MSI127.tmp" /install="C:\Program Files\PerTrac Financial Solutions\PerTrac PowerLink\PerTrac.PowerLink.dll" /privileges=admin
Run 'As Administrator': Yes
Process Elevated: No
Integrity Level: Untrusted
UAC (User Account Control): Off
--------------------------------------------------------------
17:09:42 0084 Starting the add-in registration process.
17:09:42 0084 Loading mscoree.dll
17:09:42 0084 Success.
17:09:42 0084 .NET Framework installation directory:
17:09:42 0084 The latest version of .NET Framework: 'v4.0.30319'
17:09:42 0084 Loading CLR: v4.0.30319.
17:09:42 0084 Calling CLRCreateInstance method.
17:09:42 0084 Success.
17:09:42 0084 Calling GetRuntime method.
17:09:42 0084 Success.
17:09:42 0084 Calling GetInterface method.
17:09:42 0084 Calling GetInterface method for the CorRuntimeHost interface.
17:09:42 0084 Success.
17:09:42 0084 Starting CLR...
17:09:42 0084 Success.
17:09:42 0084 The CLR v4.0.30319 has been initialized successfully.
17:09:42 0084 Creating a new domain setup.
17:09:42 0084 Success.
17:09:42 0084 Getting the add-in directory.
17:09:42 0084 Success. The directory is 'C:\WINDOWS\Installer\'
17:09:42 0084 The 'shadow copy' is disabled.
17:09:42 0084 Creating a new application domain.
17:09:42 0084 Success.
17:09:42 0084 Getting the base directory for the domain.
17:09:42 0084 Success. The directory is 'C:\WINDOWS\Installer\'.
17:09:42 0084 Searching for the Add-in Express core library.
17:09:42 0084 Error: The ADX Registrator can't find the Add-in Express core library.
17:09:42 0084 The add-in registration process is completed with HRESULT = -2147024894.
<< End Log


If I open a command prompt to the installation folder and run the adxregistrator command line without specifying the folder (since that is my current folder), it registers successfully:

>> Log - in command prompt
Add-in Express Registrator Log File: 06/27/2011 17:17:11

Installation directory: C:\Program Files\PerTrac Financial Solutions\PerTrac PowerLink\
Registrator version: 6.4.3056.0
Operating System: Microsoft Windows XP Professional Service Pack 3 (build 2600)
Process Owner: Administrator
Command Line: adxregistrator /install="PerTrac.PowerLink.dll" /priviledges=admin
Run 'As Administrator': Yes
Process Elevated: No
Integrity Level: Untrusted
UAC (User Account Control): Off
--------------------------------------------------------------
17:17:11 1968 Starting the add-in registration process.
17:17:11 1968 Loading mscoree.dll
17:17:11 1968 Success.
17:17:11 1968 .NET Framework installation directory:
17:17:11 1968 The latest version of .NET Framework: 'v4.0.30319'
17:17:11 1968 Loading CLR: v4.0.30319.
17:17:11 1968 Calling CLRCreateInstance method.
17:17:11 1968 Success.
17:17:11 1968 Calling GetRuntime method.
17:17:11 1968 Success.
17:17:11 1968 Calling GetInterface method.
17:17:11 1968 Calling GetInterface method for the CorRuntimeHost interface.
17:17:11 1968 Success.
17:17:11 1968 Starting CLR...
17:17:11 1968 Success.
17:17:11 1968 The CLR v4.0.30319 has been initialized successfully.
17:17:11 1968 Creating a new domain setup.
17:17:11 1968 Success.
17:17:11 1968 Getting the add-in directory.
17:17:11 1968 Success. The directory is 'C:\Program Files\PerTrac Financial Solutions\PerTrac PowerLink\'
17:17:11 1968 The 'shadow copy' is disabled.
17:17:11 1968 Creating a new application domain.
17:17:11 1968 Success.
17:17:11 1968 Getting the base directory for the domain.
17:17:11 1968 Success. The directory is 'C:\Program Files\PerTrac Financial Solutions\PerTrac PowerLink\'.
17:17:11 1968 Searching for the Add-in Express core library.
17:17:11 1968 Success. The 'AddinExpress.MSO.2005.dll' file is found.
17:17:11 1968 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
17:17:11 1968 Assembly identity is 'AddinExpress.MSO.2005'.
17:17:11 1968 Success.
17:17:11 1968 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
17:17:11 1968 Success.
17:17:11 1968 Calling the managed registration procedure.
17:17:11 1648 Connecting to the application domain of the Add-in Express loader.
17:17:11 1648 Success.
17:17:11 1648 Loading the 'pertrac.powerlink.dll' assembly.
17:17:11 1648 Success.
17:17:11 1648 Registering the 'pertrac.powerlink.dll' assembly (administrator).
17:17:11 1648 The ' pertrac.powerlink.dll' assembly has been registered successfully.
17:17:11 1968 Success.
17:17:11 1968 The add-in registration process is completed with HRESULT = 0.
<< End Log

I see that the "Installation directory" from the logs are different, which I suspect is why it says it can't find the ADX core library. In InstallShield, my custom action command line is:

/install="[INSTALLDIR]PerTrac.PowerLink.dll" /privileges=admin

Based on Ivan's last post in this thread, should I change [INSTALLDIR] to [TARGETDIR]? I don't see how this would affect the "current" directory, so would like some confirmation from your side. Thanks.

- Matt -
Posted 27 Jun, 2011 19:46:25 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Matt,

Adxregistrator v6.4.3056.0 doesn't recognize the full path. This bug was fixed in the latest build. Please download v6.4.3056.1 usign the link below:
http://www.add-in-express.com/files/projects_pub/adxregistrator/adxregistrator-v604-b3056.zip

You need to copy adxregistrator.exe file to the 'Redistributables' subfolder of the Add-in Express installation diretory and rebuild the setup project.

The '[TARGETDIR]' constant is supported in setup projects created in Visual Studio.
Posted 28 Jun, 2011 06:02:17 Top
Matt Comstock




Posts: 56
Joined: 2009-06-29
Hi Sergey,

Thanks - that has addressed the issue. I appreciate the quick response.

- Matt -
Posted 28 Jun, 2011 10:20:01 Top