I want to add a registry key after the user accept the key addition. The key will tell Firefox where to find our plugin (which is stored in the app folder)
The user will get a checkbox "install ff plug-in?" in the same form as where we ask "install chrome plugin" and "install ie plugin?".
[Code]
function GetHKLM: Integer;
begin
if IsWin64 then
Result := HKLM64
else
Result := HKLM32;
end;
function CheckForMozilla: Boolean;
begin
Result := False;
if RegKeyExists(GetHKLM(), 'SOFTWARE\Mozilla\Mozilla Firefox') then
begin
Result := True;
end;
if RegKeyExists(GetHKLM(), 'SOFTWARE\Mozilla\Firefox') then
begin
Result := True;
end;
end;
function AddFFKey : Boolean;
begin
{ Some way to write this key in code section : }
GetHKLM() + '\SOFTWARE\Mozilla\Mozilla Firefox\extensions\5e12c5a...'
end;
[Run]
Filename: AddFFKey; Flags: runascurrentuser postinstall ; \
Check: CheckForMozilla; Description: "Install firefox plug-in"
Thank you all!
Steve