sbaebler
Posts: 18
Joined: Wed Oct 08, 2008 10:15 am

register a dll as user, not as system

Hi,

I realized that components that are self registered with Advanced Installer do this as SYSTEM user, not as the logged in user. Is there a way to perform the registration as logged in user?

Details:
We have a piece of software that comes with it's own image file format and we have developed a Thumbnail Extractor as explorer extensions to display thumbnails of our images.
There is a 64 and a 32 bit version and it can manually be registered using

Code: Select all

regsvr32.exe Thumbnailer.dll
As part of the registration process, some settings are written to the registry in HKCU/Software/MyCompany/MyApplication. We ship this thumbnailer with our software using AdvancedInstaller.

When I perform the registration manually from the command prompt, the settings are stored in the HKCU/Software/MyCompany/MyApplication as expected, but during the installation process, the registration writes to HKEY_USERS/.DEFAULT/Software/MyCompany/MyApplication, which is the SYSTEM user account. This later causes problems because the thumbnailer is registered correctly but misses the settings.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: register a dll as user, not as system

Hi,

You can try using a deferred custom action to register the file. You can find more details in this post:
http://www.advancedinstaller.com/forums ... 924#p20611

You could also try using Extract registration info from native machine registration option.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”