installation sequence, add registry settings before files? - Advanced Installer Community
psf
Posts: 43
Joined: Wed Jun 04, 2014 11:00 am

installation sequence, add registry settings before files?

I am using Advanced Installer 11.2.1.
One of the files I am installing is a .net assembly dll , for which I select the 'auto-register file' option (it is a Windows managed shell extension).
However, one of the callbacks called as part of the registration process needs to use one of the registry values I am installing.
It seems that although the registry value is being set, it is being done after this callback has been invoked.
Is there any way of ensuring that the registry value is present before the assembly gets registered?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: installation sequence, add registry settings before file

Hi,

I'm afraid that in order to achieve what you want, you can only create a custom action that writes that entry to the registry before the registration of the assembly file.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
psf
Posts: 43
Joined: Wed Jun 04, 2014 11:00 am

Re: installation sequence, add registry settings before file

ok, thanks. I had been hoping to avoid writing a custom action, as the file auto-register option seemed to do all the necessary stuff, but if we can't create the registry entry before that operation is performed, then I'll have to do it in a custom action.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: installation sequence, add registry settings before file

You're welcome.

However, I think that writing a custom action only for adding that registry entry should be more simple than writing a custom action to register the DLL.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”