;************************* ; Attribute schreiben ;************************* ; File in das es dann compiliert werden soll OutFile "Test.exe" ; installationsordner InstallDir c: ; Userlevelanforderung RequestExecutionLevel admin ; Show install details ShowInstDetails show SetCompress force SetCompressor /SOLID lzma ;************************* ; pages ;************************* ;Page directory Page components Page instfiles Function .onGUIInit ; Desltop Hintergrund einbinden InitPluginsDir FunctionEnd ; ******************* ; Die Seite Hardwareauswahl ; ********************** SectionGroup "Modify Windows Settings" ;************************* ; Task für Power Diagnostik disablen Section "Disable Power Diagnostik Task" ; StrCpy $1 "\Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" ; ExecWait '"$SYSDIR\schtasks" /change /TN' $1 /DISABLE $0 ExecWait `$SYSDIR\schtasks /change /TN "\Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /DISABLE` $0 DetailPrint "Result: $0" SectionEnd SectionGroupEnd ; ***************************************** ; Ende Section "-End" ; Versionsdatei schreiben ; neu Starten MessageBox MB_ICONEXCLAMATION "Installation finished. Reboot !" ; Reboot SectionEnd