Register Office add-in dll - Advanced Installer Community
Juergen Bauer
Posts: 12
Joined: Wed Feb 24, 2010 9:33 am

Register Office add-in dll

Hello,

I try to install a Microsoft Office Add-In dll via your great product AdvanvedInstaller.
When I run and log the installation, I get the following error messages:

Aktion 10:31:59: LaunchExeWithDirectory.
MSI (s) (A4:44) [10:31:59:627]: Executing op: CustomActionSchedule(Action=LaunchExeWithDirectory,ActionType=3170,Source=C:\temp\,Target="C:\WINDOWS\SysWOW64\" regsvr32.exe C:\temp\Outlook2Buildup.dll,)
MSI (s) (A4:44) [10:31:59:627]: Note: 1: 1721 2: LaunchExeWithDirectory 3: C:\temp\ 4: "C:\WINDOWS\SysWOW64\" regsvr32.exe C:\temp\Outlook2Buildup.dll
Information 1721. Es liegt ein dieses Windows Installer-Paket betreffendes Problem vor. Ein für den Abschluss der Installation erforderliches Programm konnte nicht ausgeführt werden. Wenden Sie sich an das Supportpersonal oder den Hersteller des Pakets. Aktion: LaunchExeWithDirectory, Pfad: C:\temp\, Befehl: "C:\WINDOWS\SysWOW64\" regsvr32.exe C:\temp\Outlook2Buildup.dll
MSI (s) (A4:44) [10:31:59:627]: Executing op: End(Checksum=0,ProgressTotalHDWord=0,ProgressTotalLDWord=34849768)
Aktion beendet um 10:31:59: InstallExecute. Rückgabewert 1.

When I try to Register the dll via CommandLine, everything works as expected.

Do you have any idea what I am doing wrong?

My custom action looks like this:


File Path: [SystemFolder]
Command Line: regsvr32.exe [#Outlook2Buildup.dll]
Working Directory: APPDIR

Execution Time: When the System is being modified (deferred)

Execution Options:
… all the Options are checked …

Bye,
Jürgen
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Register Office add-in dll

Hello Jürgen,

Most likely this happens because you have to set the "regsvr32.exe" in the "File Path" field. Can you please try to use the approach exposed in our "COM extraction from .ocx .exe does nothing or is incompl" forum thread?

Also, as another solution you can just open your project in Advanced Installer and then use our built in support from "Wizards" toolbar tab -> [Office Addin] button. This will walk you through a wizard which will configure your Office Addin registration registries.

Hope this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Juergen Bauer
Posts: 12
Joined: Wed Feb 24, 2010 9:33 am

Re: Register Office add-in dll

Hello, Daniel,

thanks for your reply.
Unfortunately, your solution still does not register my Office-Add-In correctly.

My custom action "Launch EXE with Working Directory" looks like this:

File Path: [SystemFolder]regsvr32.exe
Command Line: "[#Outlook2Buildup.dll]" /s
Working Directory: SystemFolder

Execution Time:
After the system has been successfully modified

Execute Options:
Run under the LocalSystem
Wait for custom action to finish ...
Fail installation if ...

The installation process finishes successfully - but the Office-Add-In is not installed ...

I already tried to use your Office-Plug-In assistent - but the assistent ends with asking after the VisualStudio project.
My DLL is written with Delphi and the Office-Add-In component.

So how can I use your assistent to create a working installation package?

Bye,
Jürgen
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Register Office add-in dll

Hello Jürgen,

Can you please try the solution I pinpointed in "How to install an Office-Add-In written in Delphi" forum thread and see if this works?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Juergen Bauer
Posts: 12
Joined: Wed Feb 24, 2010 9:33 am

Re: Register Office add-in dll

Hello,
my Office-Plug-In is written with Delphi - so can I use the same way via adxRegistrator.exe?

Bye,
Jürgen
Juergen Bauer
Posts: 12
Joined: Wed Feb 24, 2010 9:33 am

Re: Register Office add-in dll

Hello,
where can I find the adxRegistrator.exe file?
At the moment, I work with Version 11.1.
Do I have to update in order to have access to the mentioned file?

Bye,
Jürgen
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Register Office add-in dll

Hello Jürgen,

The "adxregistrator.exe" is a tool installed by the "Add-in Express" framework. However if you didn't use it to install your addin and instead you were able to successfully install manually the addin by using the regsvr32 system tool, then can you please proceed like this:

1. on your build machine create a BAT file (register.bat) with the following content:

Code: Select all

regsvr32.exe Outlook2Buildup.dll /s
2. open your setup project in Advanced Installer and go to "Files and Folders" page
3. add the above "register.bat" file in the same folder as your addin dll
4. go to "Custom Actions" page and add a Launch file" custom action with sequence, scheduled after "Install Execution Stage" -> "Add Resources" action group, configured like this:
  • File to launch: [#register.bat]
    Execution time: deferred
    Execution Options: all options checked
5. rebuild and test again the setup package

If this is still of no help, then please send us by email to support at advancedinstaller dot com a download link for the built setup package.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”