Custom action dll version information - Advanced Installer Community
Mahesh
Posts: 12
Joined: Tue May 22, 2012 11:24 pm

Custom action dll version information

Hi all !

I have a custom action dll as part of the msi installer package. It has a .rc file and so it should have proper version information tied to the file after building.

To check the version info, I extracted package contents using "msiexec" command but this didn't extract any of the custom action dlls.

msiexec /a "filepath to MSI file" /qb TARGETDIR="filepath to target folder"

I also used Orca but the custom action tab gave no information about the dll version tied to the package.

Is there any easy way to extract the custom action dll's and see their properties ?


Thanks,
Mahesh.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Custom action dll version information

Hello Mahesh,

In order to achieve what you want you should proceed as follows:
- Open your MSI file with Orca.
- Go to "Binary" table.
- Select the row containing your custom action name and double click on "[Binary Data]".
- In the new dialog choose "Write binary to filename" option and save your dll to a desired location.
- Now you can take a look on your dll information.

If you have any questions let me know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mahesh
Posts: 12
Joined: Tue May 22, 2012 11:24 pm

Re: Custom action dll version information

Hi Daniel,

Thanks for the reply. I tried what you said but the information displayed is different. For some reason, images are not being loaded here. This is the original image before going to the installer package. And this is the image I got after following you said. You can clearly see that both the popped windows for the file properties aren't same.

The original one is a "dll" while the newly stored is "file" type. Is there anyway to get is a "dll" itself from the installer package ?

Thanks again,
Mahesh.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Custom action dll version information

Hello Mahesh,

This happens because you saved your dll as a common file. In order to achieve what you want you should save your resource file with the dll extension.(i.e <myfile>.dll).

If you have any questions let me know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mahesh
Posts: 12
Joined: Tue May 22, 2012 11:24 pm

Re: Custom action dll version information

Thanks Daniel. It worked. The forum should have some kind of voting mechanism like Stackoverflow :)

Return to “Common Problems”