|
|
|
#1
|
|||
|
|||
|
Anyone, can tell me how to establish priority in install?
|
| Sponsored Links |
|
#2
|
||||
|
||||
|
Code:
[Setup]
AppName=MyApp
AppVername=MyApp
DefaultDirName={pf}\MyApp
[code]
const
NORMAL_PRIORITY_CLASS = $00000020;
IDLE_PRIORITY_CLASS = $00000040;
HIGH_PRIORITY_CLASS = $00000080;
REALTIME_PRIORITY_CLASS = $00000100;
ABOVE_NORMAL_PRIORITY_CLASS = $00004000;
BELOW_NORMAL_PRIORITY_CLASS = $00008000;
function SetPriorityClass(hProcess: THandle; dwPriorityClass: DWORD): BOOL;
external 'SetPriorityClass@kernel32';
function GetCurrentProcess: THandle;
external 'GetCurrentProcess@kernel32';
procedure InitializeWizard();
begin
SetPriorityClass(GetCurrentProcess, IDLE_PRIORITY_CLASS); //set setup priority
end;
Last edited by altef_4; 17-02-2014 at 07:38. |
| The Following 2 Users Say Thank You to altef_4 For This Useful Post: | ||
papas (02-09-2016), y_thelastknight (17-02-2014) | ||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup | REV0 | Conversion Tutorials | 129 | 21-05-2021 05:51 |
| INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup | REV0 | Conversion Tutorials | 51 | 26-03-2015 06:57 |
| Frequently Asked Questions | Joe Forster/STA | PC Games - Frequently Asked Questions | 0 | 29-11-2005 09:48 |