Having trouble registering DLL post install - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

drdredel
Posts: 2
Joined: Fri Aug 20, 2010 9:38 pm

Having trouble registering DLL post install

Hi,

I'm trying to install a Windows Media Center dll.

The actual package contains
myApp.dll
supportingDll.dll
icon.png
RegistrationInfo.xml

My first question is why myApp.dll's GUID is showing up wrong in the installation wizard (under Organization/component properties). What is this GUID supposed to mean? The DLL has a different one embedded inside it. Should I paste the dll's actual GUID into this text box? or is this some other GUID that is not connected? This is very important because of a following step (detailed below) where the GUID of this dll needs to be registered with Windows Media Player and the information is coming from the accompanying RegistrationInfo.xml (which has a node with information matching what is embedded in the myApp.dll).

The way that the installation needs to work is as follows.

All files copied to some directory on the user's machine (the location is irrelevant).
After files are copied gacutil needs to be run on both DLLs (I assume this is happening natively if the "register with windows" box is checked in the dialog of the individual file. If I'm wrong on this assumption I need help here as well).

Then the installer needs to reach out to %winhome%/ehome/RegisterMCEApp.exe and execute it, passing to it the RegistrationInfo.xml /u (to unregister a previous registration if such exists)
and then the same call only without the /u

The Registration.xml has a GUID of the myApp.dll which, provided it has been registered by gacutil should succeed, and turn up in the Windows Media Center extras library.

I am happy to include the RegisterMCEApp.exe in the package if reaching out to the local file system to run that exe is a problem (though I don't really want to leave that program sitting, unnecessarily, on the target machine).

What is the correct way to get this to happen?

All help greatly appreciated in advance :)
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Having trouble registering DLL post install

Hello and welcome to Advanced Installer Forums,
My first question is why myApp.dll's GUID is showing up wrong in the installation wizard (under Organization/component properties). What is this GUID supposed to mean? The DLL has a different one embedded inside it. Should I paste the dll's actual GUID into this text box? or is this some other GUID that is not connected? This is very important because of a following step (detailed below) where the GUID of this dll needs to be registered with Windows Media Player and the information is coming from the accompanying RegistrationInfo.xml (which has a node with information matching what is embedded in the myApp.dll).
The GUID you are referring to is unrelated to your myApp.dll. That GUID represents the Windows Installer component's GUID. You can read more about the structure of a windows installer on our Organization Page
All files copied to some directory on the user's machine (the location is irrelevant).
After files are copied gacutil needs to be run on both DLLs (I assume this is happening natively if the "register with windows" box is checked in the dialog of the individual file. If I'm wrong on this assumption I need help here as well).
On the file's Edit File page->Registration tab, select "Auto register file" then select the registration method which works best for you. If this does not work, you can always use a "Launch File or Open URL" predefined custom action to launch the registration tool of your choice.
Then the installer needs to reach out to %winhome%/ehome/RegisterMCEApp.exe and execute it, passing to it the RegistrationInfo.xml /u (to unregister a previous registration if such exists)
and then the same call only without the /u
You can always use a file search from the Search page in advanced installer to retrieve the full path of RegisterMCEApp.exe if you are not sure where it is located. I am not sure what %winhome% is, but if you are referring to the Windows folder, you can refer to it through the [WindowsFolder] Windows Installer property. When launching the .exe, you can use a path like:

Code: Select all

[WindowsFolder]home\RegisterMCEApp.exe "[#RegistrationInfo.xml]" /u
Note that the above is just an example. [#RegistrationInfo.xml] is a reference to the file you are installing. To add references to files when forming a command line, use the "Edit" button to the left of the Launch File or Open URL custom action's "Command Line" field to insert such references to files, properties etc.

If you want to temporary run an executable on a system without leaving the executable installed, you can add it as a Temporary file from the Files and Folders page. Temporary files are available during the entire install process and automatically removed when the process ends.

I highly recommend you read our tutorials (Especially the Simple and Professional ones) for a better understanding of how to use Advanced Installer to efficiently deploy your products.
This will also help you better understand my suggestion.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”