So here is my final issue I have been thinking about.
This is my Tasks window:
Script:
Name: register32; Description: "Meeting Schedule Assistant (32 bit)"; GroupDescription: "{cm:FileAssociations}"; flags: unchecked exclusive;
Name: register64; Description: "Meeting Schedule Assistant (64 bit)"; GroupDescription: "{cm:FileAssociations}"; Check: IsWin64; Flags: exclusive;
I don't know if this is possible (and taking into account the customizations here). If the user is running 32 bit Windows, then we we only have one option to display. If it is just one option, can we turn it into a check box?
Does that make sense? So the two radios for when we can choose 32 / 64 and the single check for when it can oply be 32.
Update
As per the comments, I have adjusted the tasks like this:
Name: register32; Description: "Meeting Schedule Assistant (32 bit)"; GroupDescription: "{cm:FileAssociations}"; Check: IsWin64; flags: unchecked exclusive;
Name: register64; Description: "Meeting Schedule Assistant (64 bit)"; GroupDescription: "{cm:FileAssociations}"; Check: IsWin64; Flags: exclusive;
So now the two radio options are only displays on computers that can run 32 and 64 bit software. This means we must change the following code which is used when creating the registry entries:
[Code]
function GetExecutableToRegister(Param: string): string;
begin
if IsWin64 and WizardIsTaskSelected('register64') then
Result := 'MeetSchedAssist_x64.exe'
else
Result := 'MeetSchedAssist.exe';
end;
It needs changing:
if only 32 bit
return 32 bit name
else if only 64 bit
return 64 bit name
else
return the name from the task that was selected
So what changes are needed to the code for that logic?
