Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function InitializeSetup: Boolean;
- var
- FileName: string;
- begin
- try
- if IsProcessorFeaturePresent(PF_XMMI64_INSTRUCTIONS_AVAILABLE) <> 0 then
- begin
- Result := True;
- {Version 3.3.x or below}
- if RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Services\vvramd', 'ImagePath', FileName) then
- begin
- MsgBox('Found an older version in ' + ExtractFileDir(FileName) + DoubleCrLf +
- 'You must uninstall it before you install this update. Please do the following: ' + DoubleCrLf +
- '* Backup your configuration to a XML file.' + CrLf +
- '* Uninstall the currently installed version.' + CrLf +
- '* Restart the computer and launch this installer again.', mbInformation, MB_OK);
- Result := False;
- end;
- {Version 3.4 or above}
- if RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Services\SPVVEngine', 'ImagePath', FileName) then
- begin
- MsgBox('Found an older version of the RAM Disk installed on your computer. ' + DoubleCrLf +
- 'You must uninstall it before you install this update. Please do the following: ' + DoubleCrLf +
- '* Backup your configuration to a XML file.' + CrLf +
- '* Uninstall the currently installed version.' + CrLf +
- '* Restart the computer and launch this installer again.', mbInformation, MB_OK);
- Result := False;
- end;
- {Check if CCleaner is installed}
- if RegKeyExists(HKEY_LOCAL_MACHINE, 'SOFTWARE\Piriform\CCleaner') then
- begin
- MsgBox('The installer has found CCleaner on your computer. ' + DoubleCrLf +
- 'There are known issues with CCleaner and the RAM Disk software. ' + DoubleCrLf +
- 'Do not use image files or image-based RAM disks as they may be corrupted. Volatile RAM disks are NOT affected and can be used freely.', mbInformation, MB_OK);
- end;
- end
- else
- RaiseException('No SSE2 detected');
- except
- MsgBox('Your computer does not support the SSE2 instruction set.', mbError, MB_OK);
- Result := False;
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement