Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; NSIS script NSIS-2
- ; Install
- SetCompressor /SOLID lzma
- SetCompressorDictSize 8
- ; --------------------
- ; HEADER SIZE: 175202
- ; START HEADER SIZE: 300
- ; MAX STRING LENGTH: 1024
- ; STRING CHARS: 22264
- OutFile [NSIS].exe
- !include WinMessages.nsh
- ShowInstDetails show
- InstallDirRegKey HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag InstallLocation
- LicenseBkColor /windows
- ; --------------------
- ; LANG TABLES: 1
- ; LANG STRINGS: 84
- Name "UltraDefrag 8.0.0 Standard Edition"
- BrandingText "Nullsoft Install System v2.46"
- ; LANG: 1033
- LangString LSTR_0 1033 "Nullsoft Install System v2.46"
- LangString LSTR_1 1033 "$(LSTR_2) Setup"
- LangString LSTR_2 1033 "UltraDefrag 8.0.0 Standard Edition"
- LangString LSTR_3 1033 "Space available: "
- LangString LSTR_4 1033 "Space required: "
- LangString LSTR_5 1033 "Can't write: "
- LangString LSTR_6 1033 "Copy failed"
- LangString LSTR_7 1033 "Copy to "
- LangString LSTR_8 1033 "Could not find symbol: "
- LangString LSTR_9 1033 "Could not load: "
- LangString LSTR_10 1033 "Create folder: "
- LangString LSTR_11 1033 "Create shortcut: "
- LangString LSTR_12 1033 "Created uninstaller: "
- LangString LSTR_13 1033 "Delete file: "
- LangString LSTR_14 1033 "Delete on reboot: "
- LangString LSTR_15 1033 "Error creating shortcut: "
- LangString LSTR_16 1033 "Error creating: "
- LangString LSTR_17 1033 "Error decompressing data! Corrupted installer?"
- LangString LSTR_20 1033 "Execute: "
- LangString LSTR_21 1033 "Extract: "
- LangString LSTR_22 1033 "Extract: error writing to file "
- LangString LSTR_23 1033 "Installer corrupted: invalid opcode"
- LangString LSTR_24 1033 "No OLE for: "
- LangString LSTR_25 1033 "Output folder: "
- LangString LSTR_26 1033 "Remove folder: "
- LangString LSTR_27 1033 "Rename on reboot: "
- LangString LSTR_28 1033 "Rename: "
- LangString LSTR_29 1033 "Skipped: "
- LangString LSTR_30 1033 "Copy Details To Clipboard"
- LangString LSTR_32 1033 B
- LangString LSTR_33 1033 K
- LangString LSTR_34 1033 M
- LangString LSTR_35 1033 G
- LangString LSTR_36 1033 "Error opening file for writing: $\r$\n$\r$\n$0$\r$\n$\r$\nClick Abort to stop the installation,$\r$\nRetry to try again, or$\r$\nIgnore to skip this file."
- LangString LSTR_37 1033 "Error opening file for writing: $\r$\n$\r$\n$0$\r$\n$\r$\nClick Retry to try again, or$\r$\nCancel to stop the installation."
- LangString LSTR_38 1033 0
- LangString LSTR_39 1033 "Welcome to the $(LSTR_41) Setup Wizard"
- LangString LSTR_40 1033 "MS Shell Dlg"
- LangString LSTR_41 1033 "UltraDefrag 8.0.0 Standard Edition"
- LangString LSTR_42 1033 "If you accept the terms of the agreement, click I Agree to continue. You must accept the agreement to install $(LSTR_41)."
- LangString LSTR_43 1033 "License Agreement"
- LangString LSTR_44 1033 "Please review the license terms before installing $(LSTR_41)."
- LangString LSTR_45 1033 "Press Page Down to see the rest of the agreement."
- LangString LSTR_46 1033 "Choose Install Location"
- LangString LSTR_47 1033 "Choose the folder in which to install $(LSTR_41)."
- LangString LSTR_48 1033 "Choose Components"
- LangString LSTR_49 1033 "Choose which features of $(LSTR_41) you want to install."
- LangString LSTR_50 1033 Description
- LangString LSTR_51 1033 "Position your mouse over a component to see its description."
- LangString LSTR_52 1033 Installing
- LangString LSTR_53 1033 "Please wait while $(LSTR_41) is being installed."
- LangString LSTR_54 1033 "Installation Complete"
- LangString LSTR_55 1033 "Setup was completed successfully."
- LangString LSTR_56 1033 "Installation Aborted"
- LangString LSTR_57 1033 "Setup was not completed successfully."
- LangString LSTR_58 1033 &Finish
- LangString LSTR_59 1033 "Completing the $(LSTR_41) Setup Wizard"
- LangString LSTR_60 1033 "Your computer must be restarted in order to complete the installation of $(LSTR_41). Do you want to reboot now?"
- LangString LSTR_61 1033 "Reboot now"
- LangString LSTR_62 1033 "I want to manually reboot later"
- LangString LSTR_63 1033 "$(LSTR_41) has been installed on your computer.$\r$\n$\r$\nClick Finish to close this wizard."
- LangString LSTR_64 1033 8
- LangString LSTR_65 1033 Custom
- LangString LSTR_66 1033 Cancel
- LangString LSTR_67 1033 "< &Back"
- LangString LSTR_68 1033 "&Next >"
- LangString LSTR_69 1033 "Click Next to continue."
- LangString LSTR_70 1033 "I &Agree"
- LangString LSTR_71 1033 "Destination Folder"
- LangString LSTR_72 1033 B&rowse...
- LangString LSTR_73 1033 "Select the folder to install $(LSTR_41) in:"
- LangString LSTR_74 1033 "Check the components you want to install and uncheck the components you don't want to install. $_CLICK"
- LangString LSTR_75 1033 "Select the type of install:"
- LangString LSTR_76 1033 "Or, select the optional components you wish to install:"
- LangString LSTR_77 1033 "Select components to install:"
- LangString LSTR_78 1033 &Install
- LangString LSTR_79 1033 "Click Install to start the installation."
- LangString LSTR_80 1033 "Show &details"
- LangString LSTR_81 1033 Completed
- LangString LSTR_82 1033 " "
- LangString LSTR_83 1033 &Close
- ; --------------------
- ; VARIABLES: 73
- Var _0_
- Var _1_
- Var _2_
- Var _3_
- Var _4_
- Var _5_
- Var _6_
- Var _7_
- Var _8_
- Var _9_
- Var _10_
- Var _11_
- Var _12_
- Var _13_
- Var _14_
- Var _15_
- Var _16_
- Var _17_
- Var _18_
- Var _19_
- Var _20_
- Var _21_
- Var _22_
- Var _23_
- Var _24_
- Var _25_
- Var _26_
- Var _27_
- Var _28_
- Var _29_
- Var _30_
- Var _31_
- Var _32_
- Var _33_
- Var _34_
- Var _35_
- Var _36_
- Var _37_
- Var _38_
- Var _39_
- Var _40_
- Var _41_
- Var _42_
- Var _43_
- Var _44_
- Var _45_
- Var _46_
- Var _47_
- Var _48_
- Var _49_
- Var _50_
- Var _51_
- Var _52_
- Var _53_
- Var _54_
- Var _55_
- Var _56_
- Var _57_
- Var _58_
- Var _59_
- Var _60_
- Var _61_
- Var _62_
- Var _63_
- Var _64_
- Var _65_
- Var _66_
- Var _67_
- Var _68_
- Var _69_
- Var _70_
- Var _71_
- Var _72_
- InstType Full
- InstType "Micro Edition"
- InstType $(LSTR_65) ; Custom
- InstallDir $PROGRAMFILES\UltraDefrag
- ; install_directory_auto_append = UltraDefrag
- ; wininit = $WINDIR\wininit.ini
- ; --------------------
- ; PAGES: 7
- ; Page 0
- Page custom func_491 func_607 /ENABLECANCEL
- ; Page 1
- Page license func_609 func_612 func_618 /ENABLECANCEL
- LicenseText $(LSTR_42) $(LSTR_70) ; "If you accept the terms of the agreement, click I Agree to continue. You must accept the agreement to install $(LSTR_41)." "I &Agree" "UltraDefrag 8.0.0 Standard Edition"
- LicenseData [LICENSE].txt
- ; Page 2
- Page directory func_619 func_622 func_630 /ENABLECANCEL
- DirText "Only empty folders and folders containing a previous UltraDefrag installation are valid!$\nFor any other folders the $\"Next$\" button will be disabled." $(LSTR_71) $(LSTR_72) $(LSTR_73) ; "Destination Folder" B&rowse... "Select the folder to install $(LSTR_41) in:" "UltraDefrag 8.0.0 Standard Edition"
- DirVar $CMDLINE
- ; Page 3
- Page components func_631 func_634 func_648 /ENABLECANCEL
- ComponentsText $(LSTR_74) $(LSTR_75) $(LSTR_76) ; "Check the components you want to install and uncheck the components you don't want to install. $_CLICK" "Select the type of install:" "Or, select the optional components you wish to install:"
- ; Page 4
- Page instfiles func_649 func_652 func_658
- CompletedText $(LSTR_81) ; Completed
- DetailsButtonText $(LSTR_80) ; "Show &details"
- /*
- ; Page 5
- Page COMPLETED
- */
- ; Page 6
- Page custom func_671 func_889
- ; --------------------
- ; SECTIONS: 17
- ; COMMANDS: 4785
- Function func_0
- Push $R0
- nsDialogs::CreateControl STATIC 0x40000000|0x10000000|0x04000000|0x00000100 0x00000020 120u 140u 36u 10u Username:
- ; Call Initialize_____Plugins
- ; SetOverwrite off
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push Username:
- ; Push 10u
- ; Push 36u
- ; Push 140u
- ; Push 120u
- ; Push 0x00000020
- ; Push 0x40000000|0x10000000|0x04000000|0x00000100
- ; Push STATIC
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
- Pop $R0
- SetCtlColors $R0 "" 0xFFFFFF
- nsDialogs::CreateControl EDIT 0x40000000|0x10000000|0x04000000|0x00010000|0x00000080 0x00000100|0x00000200 158u 139u 155u 12u $_18_
- ; Call Initialize_____Plugins
- ; AllowSkipFiles off
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push $_18_
- ; Push 12u
- ; Push 155u
- ; Push 139u
- ; Push 158u
- ; Push 0x00000100|0x00000200
- ; Push 0x40000000|0x10000000|0x04000000|0x00010000|0x00000080
- ; Push EDIT
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
- Pop $_20_
- SetCtlColors $_20_ "" 0xFFFFFF
- nsDialogs::CreateControl STATIC 0x40000000|0x10000000|0x04000000|0x00000100 0x00000020 120u 160u 36u 10u Password:
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push Password:
- ; Push 10u
- ; Push 36u
- ; Push 160u
- ; Push 120u
- ; Push 0x00000020
- ; Push 0x40000000|0x10000000|0x04000000|0x00000100
- ; Push STATIC
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
- Pop $R0
- SetCtlColors $R0 "" 0xFFFFFF
- nsDialogs::CreateControl EDIT 0x40000000|0x10000000|0x04000000|0x00010000|0x00000080|0x00000020 0x00000100|0x00000200 158u 159u 155u 12u $_19_
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push $_19_
- ; Push 12u
- ; Push 155u
- ; Push 159u
- ; Push 158u
- ; Push 0x00000100|0x00000200
- ; Push 0x40000000|0x10000000|0x04000000|0x00010000|0x00000080|0x00000020
- ; Push EDIT
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
- Pop $_21_
- SetCtlColors $_21_ "" 0xFFFFFF
- Pop $R0
- FunctionEnd
- Function func_59
- System::Call user32::GetWindowText(i$_20_,t.s,i1024)
- ; Call Initialize_____Plugins
- ; AllowSkipFiles on
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push user32::GetWindowText(i$_20_,t.s,i1024)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- Pop $_18_
- System::Call user32::GetWindowText(i$_21_,t.s,i1024)
- ; Call Initialize_____Plugins
- ; AllowSkipFiles off
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push user32::GetWindowText(i$_21_,t.s,i1024)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- Pop $_19_
- Push $R0
- StrCpy $_2_ 0
- StrCmp $_18_ "" 0 label_75
- Goto label_76
- label_75:
- StrCmp $_19_ "" 0 label_223
- label_76:
- IfSilent 0 label_221
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- Goto label_186
- label_83:
- StrCmp $_22_ "" label_85
- Return
- label_85:
- Push $0
- Push $1
- Push $2
- Push $3
- Push $R0
- System::Alloc 156
- ; Call Initialize_____Plugins
- ; AllowSkipFiles on
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push 156
- ; CallInstDLL $PLUGINSDIR\System.dll Alloc
- Pop $0
- System::Call "*$0(i 156)"
- ; Call Initialize_____Plugins
- ; AllowSkipFiles off
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push "*$0(i 156)"
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- System::Call kernel32::GetVersionEx(ir0)i.r3
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::GetVersionEx(ir0)i.r3
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- IntCmp $3 0 0 label_117 label_117
- System::Call "*$0(i 148)"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push "*$0(i 148)"
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- System::Call kernel32::GetVersionEx(ir0)i.r3
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::GetVersionEx(ir0)i.r3
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- label_117:
- System::Call *$0(i.s,i.r1,i.r2,i.r3,i.s,&t128.s,&i2.s,&i2,&i2,&i1.s,&i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push *$0(i.s,i.r1,i.r2,i.r3,i.s,&t128.s,&i2.s,&i2,&i2,&i1.s,&i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- System::Free $0
- ; Call Initialize_____Plugins
- ; AllowSkipFiles on
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push $0
- ; CallInstDLL $PLUGINSDIR\System.dll Free
- IntOp $3 $3 & 0xFFFF
- Pop $R0
- Pop $0
- IntCmp $0 2 0 label_133 label_133
- IntOp $_23_ $_23_ | 0x80000000
- IntOp $_22_ $_22_ | 0x80000000
- label_133:
- IntCmp $0 2 label_149 0 label_149
- Pop $0
- StrCpy $0 $0 1 1
- Pop $R0
- Pop $R0
- StrCmp $0 A 0 label_141
- StrCpy $0 1
- Goto label_165
- label_141:
- StrCmp $0 B 0 label_144
- StrCpy $0 2
- Goto label_165
- label_144:
- StrCmp $0 C 0 label_147
- StrCpy $0 3
- Goto label_165
- label_147:
- StrCpy $0 0
- Goto label_165
- label_149:
- IntCmp $R0 156 0 label_157 label_157
- Pop $0
- Exch
- Pop $0
- IntCmp $0 1 label_155 label_155
- IntOp $_23_ $_23_ | 0x40000000
- label_155:
- Pop $0
- Goto label_165
- label_157:
- Pop $0
- Pop $R0
- Pop $R0
- StrCpy $R0 $0 13
- StrCmp $R0 "Service Pack " 0 label_164
- StrCpy $0 $0 "" 13
- Goto label_165
- label_164:
- StrCpy $0 0
- label_165:
- IntOp $0 $0 << 16
- IntOp $_23_ $_23_ | $0
- IntOp $0 $_23_ & 0x40000000
- IntCmp $0 0 0 label_172 label_172
- IntCmp $1 5 0 label_172 label_172
- IntCmp $2 2 0 label_172 label_172
- StrCpy $2 1
- label_172:
- IntCmp $0 0 label_175
- IntCmp 6 $1 0 0 label_175
- IntOp $_22_ $_22_ | 0x00000001
- label_175:
- IntOp $1 $1 << 24
- IntOp $_22_ $_22_ | $1
- IntOp $0 $2 << 16
- IntOp $_22_ $_22_ | $0
- IntOp $_23_ $_23_ | $3
- Pop $R0
- Pop $3
- Pop $2
- Pop $1
- Pop $0
- Return
- label_186:
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_217
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... Invalid username or password!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_217:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_221:
- MessageBox MB_OK|MB_ICONSTOP "Invalid username or password!" /SD IDOK
- Goto label_463
- label_223:
- SetOutPath $PLUGINSDIR
- ClearErrors
- StrCmp $$TargetCPU amd64 0 label_228
- SetOverwrite on
- AllowSkipFiles off
- File zenwinx.dll
- Goto label_232
- label_228:
- StrCmp $$TargetCPU ia64 0 label_231
- File zenwinx.dll
- Goto label_232
- label_231:
- File zenwinx.dll
- label_232:
- IfErrors 0 label_276
- IfSilent 0 label_274
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_270
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... Unable to extract zenwinx.dll file to $PLUGINSDIR folder!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_270:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_274:
- MessageBox MB_OK|MB_ICONSTOP "Unable to extract zenwinx.dll file to $PLUGINSDIR folder!" /SD IDOK
- Goto label_463
- label_276:
- ClearErrors
- StrCmp $$TargetCPU amd64 0 label_280
- File udefrag-dbg.exe
- Goto label_284
- label_280:
- StrCmp $$TargetCPU ia64 0 label_283
- File udefrag-dbg.exe
- Goto label_284
- label_283:
- File udefrag-dbg.exe
- label_284:
- IfErrors 0 label_328
- IfSilent 0 label_326
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_322
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... Unable to extract udefrag-dbg.exe file to $PLUGINSDIR folder!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_322:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_326:
- MessageBox MB_OK|MB_ICONSTOP "Unable to extract udefrag-dbg.exe file to $PLUGINSDIR folder!" /SD IDOK
- Goto label_463
- label_328:
- ClearErrors
- ExecWait "$\"$PLUGINSDIR\udefrag-dbg.exe$\" --check $\"$_18_$\" $\"$_19_$\"" $R0
- IfErrors 0 label_374
- IfSilent 0 label_372
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_368
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... Unable to execute $PLUGINSDIR\udefrag-dbg.exe program!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_368:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_372:
- MessageBox MB_OK|MB_ICONSTOP "Unable to execute $PLUGINSDIR\udefrag-dbg.exe program!" /SD IDOK
- Goto label_463
- label_374:
- StrCmp $R0 0 0 label_377
- StrCpy $_2_ 1
- Goto label_463
- label_377:
- StrCmp $R0 3 0 label_421
- IfSilent 0 label_419
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_415
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... Invalid username or password!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_415:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_419:
- MessageBox MB_OK|MB_ICONSTOP "Invalid username or password!" /SD IDOK
- Goto label_463
- label_421:
- IfSilent 0 label_462
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_458
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... Unable to check credentials!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_458:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_462:
- MessageBox MB_OK|MB_ICONSTOP "Unable to check credentials!" /SD IDOK
- label_463:
- Pop $R0
- StrCmp $_2_ 0 0 label_466
- Abort
- label_466:
- FunctionEnd
- Function func_467
- InitPluginsDir
- ; Call Initialize_____Plugins
- ; SetDetailsPrint lastused
- File $PLUGINSDIR\modern-wizard.bmp
- FunctionEnd
- Function func_471
- LockWindow on
- ShowWindow $_12_ ${SW_HIDE}
- ShowWindow $_11_ ${SW_HIDE}
- ShowWindow $_6_ ${SW_HIDE}
- ShowWindow $_8_ ${SW_HIDE}
- ShowWindow $_10_ ${SW_HIDE}
- ShowWindow $_13_ ${SW_HIDE}
- ShowWindow $_14_ ${SW_SHOWNORMAL}
- LockWindow off
- FunctionEnd
- Function func_481
- LockWindow on
- ShowWindow $_12_ ${SW_SHOWNORMAL}
- ShowWindow $_11_ ${SW_SHOWNORMAL}
- ShowWindow $_6_ ${SW_SHOWNORMAL}
- ShowWindow $_8_ ${SW_SHOWNORMAL}
- ShowWindow $_10_ ${SW_SHOWNORMAL}
- ShowWindow $_13_ ${SW_SHOWNORMAL}
- ShowWindow $_14_ ${SW_HIDE}
- LockWindow off
- FunctionEnd
- Function func_491 ; Page 0, Pre
- nsDialogs::Create 1044
- ; Call Initialize_____Plugins
- ; SetOverwrite off
- ; AllowSkipFiles on
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push 1044
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll Create
- Pop $_25_
- nsDialogs::SetRTL $(LSTR_38) ; 0
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push $(LSTR_38) ; 0
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll SetRTL
- SetCtlColors $_25_ "" 0xFFFFFF
- nsDialogs::CreateControl STATIC 0x40000000|0x10000000|0x04000000|0x0000000E|0x00000100 0 0u 0u 109u 193u ""
- ; Call Initialize_____Plugins
- ; AllowSkipFiles off
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push ""
- ; Push 193u
- ; Push 109u
- ; Push 0u
- ; Push 0u
- ; Push 0
- ; Push 0x40000000|0x10000000|0x04000000|0x0000000E|0x00000100
- ; Push STATIC
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
- Pop $_26_
- Push $0
- Push $1
- Push $2
- Push $R0
- StrCpy $R0 $_26_
- StrCpy $1 ""
- StrCpy $2 ""
- System::Call "*(i, i, i, i) i.s"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push "*(i, i, i, i) i.s"
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- Pop $0
- IntCmp $0 0 label_547
- System::Call "user32::GetClientRect(iR0, ir0)"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push "user32::GetClientRect(iR0, ir0)"
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- System::Call "*$0(i, i, i .s, i .s)"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push "*$0(i, i, i .s, i .s)"
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- System::Free $0
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push $0
- ; CallInstDLL $PLUGINSDIR\System.dll Free
- Pop $1
- Pop $2
- label_547:
- System::Call "user32::LoadImage(i0, ts, i 0, ir1, ir2, i0x0010) i.s" $PLUGINSDIR\modern-wizard.bmp
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push $PLUGINSDIR\modern-wizard.bmp
- ; Push "user32::LoadImage(i0, ts, i 0, ir1, ir2, i0x0010) i.s"
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- Pop $0
- SendMessage $R0 0x0172 0 $0
- Pop $R0
- Pop $2
- Pop $1
- Exch $0
- ; Push $0
- ; Exch
- ; Pop $0
- Pop $_27_
- nsDialogs::CreateControl STATIC 0x40000000|0x10000000|0x04000000|0x00000100 0x00000020 120u 10u 195u 28u $(LSTR_39) ; "Welcome to the $(LSTR_41) Setup Wizard" "UltraDefrag 8.0.0 Standard Edition"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push $(LSTR_39) ; "Welcome to the $(LSTR_41) Setup Wizard" "UltraDefrag 8.0.0 Standard Edition"
- ; Push 28u
- ; Push 195u
- ; Push 10u
- ; Push 120u
- ; Push 0x00000020
- ; Push 0x40000000|0x10000000|0x04000000|0x00000100
- ; Push STATIC
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
- Pop $_28_
- SetCtlColors $_28_ "" 0xFFFFFF
- CreateFont $_29_ $(LSTR_40) 12 700 ; "MS Shell Dlg"
- SendMessage $_28_ ${WM_SETFONT} $_29_ 0
- nsDialogs::CreateControl STATIC 0x40000000|0x10000000|0x04000000|0x00000100 0x00000020 120u 45u 195u 90u "This wizard will guide you through the installation of $(LSTR_41).$\r$\rIt is recommended that you close all other applications before starting Setup. This will make it possible to update relevant system files without having to reboot your computer.$\r$\rEnter registration information you have received along with this program and then click Next to continue." ; "UltraDefrag 8.0.0 Standard Edition"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push "This wizard will guide you through the installation of $(LSTR_41).$\r$\rIt is recommended that you close all other applications before starting Setup. This will make it possible to update relevant system files without having to reboot your computer.$\r$\rEnter registration information you have received along with this program and then click Next to continue." ; "UltraDefrag 8.0.0 Standard Edition"
- ; Push 90u
- ; Push 195u
- ; Push 45u
- ; Push 120u
- ; Push 0x00000020
- ; Push 0x40000000|0x10000000|0x04000000|0x00000100
- ; Push STATIC
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
- Pop $_30_
- SetCtlColors $_30_ "" 0xFFFFFF
- Call func_471
- Call func_0
- nsDialogs::Show
- ; Call Initialize_____Plugins
- ; AllowSkipFiles on
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll Show
- Call func_481
- IntCmp $_27_ 0 label_606
- System::Call gdi32::DeleteObject(is) $_27_
- ; Call Initialize_____Plugins
- ; AllowSkipFiles off
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push $_27_
- ; Push gdi32::DeleteObject(is)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- label_606:
- FunctionEnd
- Function func_607 ; Page 0, Leave
- Call func_59
- FunctionEnd
- Function func_609 ; Page 1, Pre
- SendMessage $_6_ ${WM_SETTEXT} 0 STR:$(LSTR_43) ; "License Agreement"
- SendMessage $_8_ ${WM_SETTEXT} 0 STR:$(LSTR_44) ; "Please review the license terms before installing $(LSTR_41)." "UltraDefrag 8.0.0 Standard Edition"
- FunctionEnd
- Function func_612 ; Page 1, Show
- FindWindow $_31_ "#32770" "" $HWNDPARENT
- GetDlgItem $_32_ $_31_ 1040
- GetDlgItem $_33_ $_31_ 1006
- GetDlgItem $_34_ $_31_ 1000
- SendMessage $_32_ ${WM_SETTEXT} 0 STR:$(LSTR_45) ; "Press Page Down to see the rest of the agreement."
- FunctionEnd
- Function func_618 ; Page 1, Leave
- FunctionEnd
- Function func_619 ; Page 2, Pre
- SendMessage $_6_ ${WM_SETTEXT} 0 STR:$(LSTR_46) ; "Choose Install Location"
- SendMessage $_8_ ${WM_SETTEXT} 0 STR:$(LSTR_47) ; "Choose the folder in which to install $(LSTR_41)." "UltraDefrag 8.0.0 Standard Edition"
- FunctionEnd
- Function func_622 ; Page 2, Show
- FindWindow $_35_ "#32770" "" $HWNDPARENT
- GetDlgItem $_36_ $_35_ 1006
- GetDlgItem $_37_ $_35_ 1020
- GetDlgItem $_38_ $_35_ 1019
- GetDlgItem $_39_ $_35_ 1001
- GetDlgItem $_40_ $_35_ 1023
- GetDlgItem $_41_ $_35_ 1024
- FunctionEnd
- Function func_630 ; Page 2, Leave
- FunctionEnd
- Function func_631 ; Page 3, Pre
- SendMessage $_6_ ${WM_SETTEXT} 0 STR:$(LSTR_48) ; "Choose Components"
- SendMessage $_8_ ${WM_SETTEXT} 0 STR:$(LSTR_49) ; "Choose which features of $(LSTR_41) you want to install." "UltraDefrag 8.0.0 Standard Edition"
- FunctionEnd
- Function func_634 ; Page 3, Show
- FindWindow $_42_ "#32770" "" $HWNDPARENT
- GetDlgItem $_43_ $_42_ 1006
- GetDlgItem $_44_ $_42_ 1021
- GetDlgItem $_45_ $_42_ 1022
- GetDlgItem $_46_ $_42_ 1017
- GetDlgItem $_47_ $_42_ 1032
- GetDlgItem $_48_ $_42_ 1042
- GetDlgItem $_50_ $_42_ 1043
- GetDlgItem $_51_ $_42_ 1023
- SendMessage $_48_ ${WM_SETTEXT} 0 STR:$(LSTR_50) ; Description
- EnableWindow $_50_ 0
- SendMessage $_50_ ${WM_SETTEXT} 0 STR:$(LSTR_51) ; "Position your mouse over a component to see its description."
- StrCpy $_49_ $(LSTR_51) ; "Position your mouse over a component to see its description."
- FunctionEnd
- Function func_648 ; Page 3, Leave
- FunctionEnd
- Function func_649 ; Page 4, Pre
- SendMessage $_6_ ${WM_SETTEXT} 0 STR:$(LSTR_52) ; Installing
- SendMessage $_8_ ${WM_SETTEXT} 0 STR:$(LSTR_53) ; "Please wait while $(LSTR_41) is being installed." "UltraDefrag 8.0.0 Standard Edition"
- FunctionEnd
- Function func_652 ; Page 4, Show
- FindWindow $_52_ "#32770" "" $HWNDPARENT
- GetDlgItem $_53_ $_52_ 1006
- GetDlgItem $_54_ $_52_ 1004
- GetDlgItem $_55_ $_52_ 1027
- GetDlgItem $_56_ $_52_ 1016
- FunctionEnd
- Function func_658 ; Page 4, Leave
- IfAbort label_662
- SendMessage $_6_ ${WM_SETTEXT} 0 STR:$(LSTR_54) ; "Installation Complete"
- SendMessage $_8_ ${WM_SETTEXT} 0 STR:$(LSTR_55) ; "Setup was completed successfully."
- Goto label_664
- label_662:
- SendMessage $_6_ ${WM_SETTEXT} 0 STR:$(LSTR_56) ; "Installation Aborted"
- SendMessage $_8_ ${WM_SETTEXT} 0 STR:$(LSTR_57) ; "Setup was not completed successfully."
- label_664:
- IfAbort label_665
- label_665:
- FunctionEnd
- Function func_666
- InitPluginsDir
- ; Call Initialize_____Plugins
- ; SetDetailsPrint lastused
- SetOverwrite on
- File $PLUGINSDIR\modern-wizard.bmp
- Call func_467
- FunctionEnd
- Function func_671 ; Page 6, Pre
- SendMessage $_15_ ${WM_SETTEXT} 0 STR:$(LSTR_58) ; &Finish
- nsDialogs::Create 1044
- ; Call Initialize_____Plugins
- ; SetOverwrite off
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push 1044
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll Create
- Pop $_57_
- nsDialogs::SetRTL $(LSTR_38) ; 0
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push $(LSTR_38) ; 0
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll SetRTL
- SetCtlColors $_57_ "" 0xFFFFFF
- nsDialogs::CreateControl STATIC 0x40000000|0x10000000|0x04000000|0x0000000E|0x00000100 0 0u 0u 109u 193u ""
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push ""
- ; Push 193u
- ; Push 109u
- ; Push 0u
- ; Push 0u
- ; Push 0
- ; Push 0x40000000|0x10000000|0x04000000|0x0000000E|0x00000100
- ; Push STATIC
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
- Pop $_58_
- Push $0
- Push $1
- Push $2
- Push $R0
- StrCpy $R0 $_58_
- StrCpy $1 ""
- StrCpy $2 ""
- System::Call "*(i, i, i, i) i.s"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push "*(i, i, i, i) i.s"
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- Pop $0
- IntCmp $0 0 label_728
- System::Call "user32::GetClientRect(iR0, ir0)"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push "user32::GetClientRect(iR0, ir0)"
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- System::Call "*$0(i, i, i .s, i .s)"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push "*$0(i, i, i .s, i .s)"
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- System::Free $0
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push $0
- ; CallInstDLL $PLUGINSDIR\System.dll Free
- Pop $1
- Pop $2
- label_728:
- System::Call "user32::LoadImage(i0, ts, i 0, ir1, ir2, i0x0010) i.s" $PLUGINSDIR\modern-wizard.bmp
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push $PLUGINSDIR\modern-wizard.bmp
- ; Push "user32::LoadImage(i0, ts, i 0, ir1, ir2, i0x0010) i.s"
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- Pop $0
- SendMessage $R0 0x0172 0 $0
- Pop $R0
- Pop $2
- Pop $1
- Exch $0
- ; Push $0
- ; Exch
- ; Pop $0
- Pop $_59_
- IfRebootFlag 0 label_809
- nsDialogs::CreateControl STATIC 0x40000000|0x10000000|0x04000000|0x00000100 0x00000020 120u 10u 195u 28u $(LSTR_59) ; "Completing the $(LSTR_41) Setup Wizard" "UltraDefrag 8.0.0 Standard Edition"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push $(LSTR_59) ; "Completing the $(LSTR_41) Setup Wizard" "UltraDefrag 8.0.0 Standard Edition"
- ; Push 28u
- ; Push 195u
- ; Push 10u
- ; Push 120u
- ; Push 0x00000020
- ; Push 0x40000000|0x10000000|0x04000000|0x00000100
- ; Push STATIC
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
- Pop $_60_
- SetCtlColors $_60_ "" 0xFFFFFF
- CreateFont $_61_ $(LSTR_40) 12 700 ; "MS Shell Dlg"
- SendMessage $_60_ ${WM_SETFONT} $_61_ 0
- nsDialogs::CreateControl STATIC 0x40000000|0x10000000|0x04000000|0x00000100 0x00000020 120u 45u 195u 40u $(LSTR_60) ; "Your computer must be restarted in order to complete the installation of $(LSTR_41). Do you want to reboot now?" "UltraDefrag 8.0.0 Standard Edition"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push $(LSTR_60) ; "Your computer must be restarted in order to complete the installation of $(LSTR_41). Do you want to reboot now?" "UltraDefrag 8.0.0 Standard Edition"
- ; Push 40u
- ; Push 195u
- ; Push 45u
- ; Push 120u
- ; Push 0x00000020
- ; Push 0x40000000|0x10000000|0x04000000|0x00000100
- ; Push STATIC
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
- Pop $_62_
- SetCtlColors $_62_ "" 0xFFFFFF
- nsDialogs::CreateControl BUTTON 0x40000000|0x10000000|0x04000000|0x00010000|0x00000000|0x00000C00|0x00000009|0x00002000 0 120u 90u 195u 10u $(LSTR_61) ; "Reboot now"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push $(LSTR_61) ; "Reboot now"
- ; Push 10u
- ; Push 195u
- ; Push 90u
- ; Push 120u
- ; Push 0
- ; Push 0x40000000|0x10000000|0x04000000|0x00010000|0x00000000|0x00000C00|0x00000009|0x00002000
- ; Push BUTTON
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
- Pop $_66_
- SetCtlColors $_66_ "" 0xFFFFFF
- nsDialogs::CreateControl BUTTON 0x40000000|0x10000000|0x04000000|0x00010000|0x00000000|0x00000C00|0x00000009|0x00002000 0 120u 115u 195u 10u $(LSTR_62) ; "I want to manually reboot later"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push $(LSTR_62) ; "I want to manually reboot later"
- ; Push 10u
- ; Push 195u
- ; Push 115u
- ; Push 120u
- ; Push 0
- ; Push 0x40000000|0x10000000|0x04000000|0x00010000|0x00000000|0x00000C00|0x00000009|0x00002000
- ; Push BUTTON
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
- Pop $_67_
- SetCtlColors $_67_ "" 0xFFFFFF
- SendMessage $_66_ 0x00F1 1 0
- System::Call user32::SetFocus(i$_66_)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push user32::SetFocus(i$_66_)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- Goto label_874
- label_809:
- nsDialogs::CreateControl STATIC 0x40000000|0x10000000|0x04000000|0x00000100 0x00000020 120u 10u 195u 28u $(LSTR_59) ; "Completing the $(LSTR_41) Setup Wizard" "UltraDefrag 8.0.0 Standard Edition"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push $(LSTR_59) ; "Completing the $(LSTR_41) Setup Wizard" "UltraDefrag 8.0.0 Standard Edition"
- ; Push 28u
- ; Push 195u
- ; Push 10u
- ; Push 120u
- ; Push 0x00000020
- ; Push 0x40000000|0x10000000|0x04000000|0x00000100
- ; Push STATIC
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
- Pop $_60_
- SetCtlColors $_60_ "" 0xFFFFFF
- CreateFont $_61_ $(LSTR_40) 12 700 ; "MS Shell Dlg"
- SendMessage $_60_ ${WM_SETFONT} $_61_ 0
- nsDialogs::CreateControl STATIC 0x40000000|0x10000000|0x04000000|0x00000100 0x00000020 120u 45u 195u 40u $(LSTR_63) ; "$(LSTR_41) has been installed on your computer.$\r$\n$\r$\nClick Finish to close this wizard." "UltraDefrag 8.0.0 Standard Edition"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push $(LSTR_63) ; "$(LSTR_41) has been installed on your computer.$\r$\n$\r$\nClick Finish to close this wizard." "UltraDefrag 8.0.0 Standard Edition"
- ; Push 40u
- ; Push 195u
- ; Push 45u
- ; Push 120u
- ; Push 0x00000020
- ; Push 0x40000000|0x10000000|0x04000000|0x00000100
- ; Push STATIC
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
- Pop $_62_
- SetCtlColors $_62_ "" 0xFFFFFF
- nsDialogs::CreateControl BUTTON 0x40000000|0x10000000|0x04000000|0x00010000|0x00000000|0x00000C00|0x00000003|0x00002000 0 120u 90u 195u 10u "Launch UltraDefrag"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push "Launch UltraDefrag"
- ; Push 10u
- ; Push 195u
- ; Push 90u
- ; Push 120u
- ; Push 0
- ; Push 0x40000000|0x10000000|0x04000000|0x00010000|0x00000000|0x00000C00|0x00000003|0x00002000
- ; Push BUTTON
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
- Pop $_64_
- SetCtlColors $_64_ "" 0xFFFFFF
- SendMessage $_64_ 0x00F1 1 0
- System::Call user32::SetFocus(i$_64_)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push user32::SetFocus(i$_64_)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- nsDialogs::CreateControl BUTTON 0x40000000|0x10000000|0x04000000|0x00010000|0x00000000|0x00000C00|0x00000003|0x00002000 0 120u 110u 195u 10u "Show extracted portable edition"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; Push "Show extracted portable edition"
- ; Push 10u
- ; Push 195u
- ; Push 110u
- ; Push 120u
- ; Push 0
- ; Push 0x40000000|0x10000000|0x04000000|0x00010000|0x00000000|0x00000C00|0x00000003|0x00002000
- ; Push BUTTON
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
- Pop $_65_
- SetCtlColors $_65_ "" 0xFFFFFF
- SendMessage $_65_ 0x00F1 1 0
- label_874:
- Call func_471
- Call func_4362
- nsDialogs::Show
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsDialogs.dll
- ; SetDetailsPrint lastused
- ; CallInstDLL $PLUGINSDIR\nsDialogs.dll Show
- Call func_481
- IntCmp $_59_ 0 label_888
- System::Call gdi32::DeleteObject(is) $_59_
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push $_59_
- ; Push gdi32::DeleteObject(is)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- label_888:
- FunctionEnd
- Function func_889 ; Page 6, Leave
- Call func_4391
- IfRebootFlag 0 label_897
- SendMessage $_66_ 0x00F0 0 0 $_63_
- IntCmp $_63_ 1 0 label_896 label_896
- Reboot
- ; Quit
- Goto label_897
- label_896:
- Return
- label_897:
- SendMessage $_64_ 0x00F0 0 0 $_63_
- IntCmp $_63_ 1 0 label_900 label_900
- Exec $\"$INSTDIR\ultradefrag.exe$\"
- label_900:
- SendMessage $_65_ 0x00F0 0 0 $_63_
- IntCmp $_63_ 1 0 label_903 label_903
- Call func_4411
- label_903:
- FunctionEnd
- Function .onGUIInit
- GetDlgItem $_6_ $HWNDPARENT 1037
- CreateFont $_7_ $(LSTR_40) $(LSTR_64) 700 ; "MS Shell Dlg" 8
- SendMessage $_6_ ${WM_SETFONT} $_7_ 0
- GetDlgItem $_8_ $HWNDPARENT 1038
- SetCtlColors $_6_ "" 0xFFFFFF
- SetCtlColors $_8_ "" 0xFFFFFF
- GetDlgItem $_9_ $HWNDPARENT 1034
- SetCtlColors $_9_ "" 0xFFFFFF
- GetDlgItem $_10_ $HWNDPARENT 1039
- SetCtlColors $_10_ "" 0xFFFFFF
- GetDlgItem $_12_ $HWNDPARENT 1028
- SetCtlColors $_12_ /BRANDING ""
- GetDlgItem $_11_ $HWNDPARENT 1256
- SetCtlColors $_11_ /BRANDING ""
- SendMessage $_11_ ${WM_SETTEXT} 0 "STR:$(LSTR_0) " ; "Nullsoft Install System v2.46"
- GetDlgItem $_13_ $HWNDPARENT 1035
- GetDlgItem $_14_ $HWNDPARENT 1045
- GetDlgItem $_15_ $HWNDPARENT 1
- GetDlgItem $_16_ $HWNDPARENT 2
- GetDlgItem $_17_ $HWNDPARENT 3
- Call func_666
- FunctionEnd
- Function .onUserAbort
- FunctionEnd
- Section "!UltraDefrag core files (required)" ; Section_0
- ; AddSize 4922
- SectionIn 1 2 RO
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- IfSilent 0 label_996
- StrCpy $_1_ 1
- IfFileExists $INSTDIR\lua5.1a_gui.exe label_952
- Push $R1
- Push $R2
- FindFirst $R1 $R2 $INSTDIR\*
- StrCmp $R1 "" label_948
- StrCmp $R2 "" label_947
- label_940:
- StrCmp $R2 . label_943
- StrCmp $R2 .. label_943
- Goto label_947
- label_943:
- FindNext $R1 $R2
- label_944:
- Goto label_940
- Goto label_944
- Goto label_947
- label_947:
- FindClose $R1
- label_948:
- StrCmp $R2 "" label_950
- StrCpy $_1_ 0
- label_950:
- Pop $R2
- Pop $R1
- label_952:
- StrCmp $_1_ 0 0 label_996
- IfSilent 0 label_994
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_990
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... Destination folder is invalid!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_990:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_994:
- MessageBox MB_OK|MB_ICONSTOP "Destination folder is invalid!" /SD IDOK
- Abort
- label_996:
- IfFileExists $_0_\*.* 0 label_1049
- StrCmp $INSTDIR $_0_ label_1049
- DetailPrint "Relocating the installation..."
- CreateDirectory $INSTDIR
- ClearErrors
- CopyFiles /SILENT $_0_\* $INSTDIR ; $(LSTR_7)$INSTDIR ; "Copy to "
- IfErrors 0 label_1046
- IfSilent 0 label_1044
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_1040
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... Cannot relocate the installation!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_1040:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_1044:
- MessageBox MB_OK|MB_ICONSTOP "Cannot relocate the installation!" /SD IDOK
- Abort
- label_1046:
- SetDetailsPrint textonly
- RMDir /r $_0_
- SetDetailsPrint both
- label_1049:
- DetailPrint "Removing old executable files..."
- Delete $INSTDIR\*.exe
- Delete $INSTDIR\*.dll
- DetailPrint "Installing core files..."
- SetOutPath $SYSDIR
- StrCmp $_24_ amd64 0 label_1057
- SetOverwrite on
- File lua5.1a.dll
- Goto label_1061
- label_1057:
- StrCmp $_24_ ia64 0 label_1060
- File lua5.1a.dll
- Goto label_1061
- label_1060:
- File lua5.1a.dll
- label_1061:
- StrCmp $_24_ amd64 0 label_1064
- File zenwinx.dll
- Goto label_1068
- label_1064:
- StrCmp $_24_ ia64 0 label_1067
- File zenwinx.dll
- Goto label_1068
- label_1067:
- File zenwinx.dll
- label_1068:
- StrCmp $_24_ amd64 0 label_1071
- File udefrag.dll
- Goto label_1075
- label_1071:
- StrCmp $_24_ ia64 0 label_1074
- File udefrag.dll
- Goto label_1075
- label_1074:
- File udefrag.dll
- label_1075:
- StrCmp $_24_ amd64 0 label_1078
- File hibernate4win.exe
- Goto label_1082
- label_1078:
- StrCmp $_24_ ia64 0 label_1081
- File hibernate4win.exe
- Goto label_1082
- label_1081:
- File hibernate4win.exe
- label_1082:
- StrCmp $_24_ amd64 0 label_1085
- File udefrag-dbg.exe
- Goto label_1089
- label_1085:
- StrCmp $_24_ ia64 0 label_1088
- File udefrag-dbg.exe
- Goto label_1089
- label_1088:
- File udefrag-dbg.exe
- label_1089:
- SetOutPath $INSTDIR
- File HISTORY.TXT
- File README.TXT
- File LICENSE.TXT
- StrCmp $_24_ amd64 0 label_1096
- File lua5.1a.exe
- Goto label_1100
- label_1096:
- StrCmp $_24_ ia64 0 label_1099
- File lua5.1a.exe
- Goto label_1100
- label_1099:
- File lua5.1a.exe
- label_1100:
- StrCmp $_24_ amd64 0 label_1103
- File lua5.1a_gui.exe
- Goto label_1107
- label_1103:
- StrCmp $_24_ ia64 0 label_1106
- File lua5.1a_gui.exe
- Goto label_1107
- label_1106:
- File lua5.1a_gui.exe
- label_1107:
- SetOutPath $INSTDIR\scripts
- File udreportcnv.lua
- File udsorting.js
- File upgrade-options.lua
- DetailPrint "Configuration files upgrade..."
- CreateDirectory $INSTDIR\conf
- IfSilent 0 label_1116
- ExecWait "$\"$INSTDIR\lua5.1a_gui.exe$\" -s $\"$INSTDIR\scripts\upgrade-options.lua$\" $\"$INSTDIR$\""
- Goto label_1117
- label_1116:
- ExecWait "$\"$INSTDIR\lua5.1a_gui.exe$\" $\"$INSTDIR\scripts\upgrade-options.lua$\" $\"$INSTDIR$\""
- label_1117:
- File udreport.css
- DetailPrint "Registering .luar file extension..."
- WriteRegStr HKCR .luar "" LuaReport
- WriteRegStr HKCR LuaReport "" "Lua Report"
- WriteRegStr HKCR LuaReport\DefaultIcon "" $INSTDIR\lua5.1a_gui.exe,1
- WriteRegStr HKCR LuaReport\shell "" view
- WriteRegStr HKCR LuaReport\shell\view "" "View report"
- WriteRegStr HKCR LuaReport\shell\view\command "" "$\"$INSTDIR\lua5.1a_gui.exe$\" $\"$INSTDIR\scripts\udreportcnv.lua$\" $\"%1$\" -v"
- ClearErrors
- WriteINIStr $INSTDIR\user.ini Registration UserName $_18_
- IfErrors 0 label_1171
- IfSilent 0 label_1169
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_1165
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... Cannot save registration information to $INSTDIR\user.ini file!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_1165:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_1169:
- MessageBox MB_OK|MB_ICONSTOP "Cannot save registration information to $INSTDIR\user.ini file!" /SD IDOK
- Abort
- label_1171:
- ClearErrors
- WriteINIStr $INSTDIR\user.ini Registration Password $_19_
- IfErrors 0 label_1217
- IfSilent 0 label_1215
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_1211
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... Cannot save registration information to $INSTDIR\user.ini file!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_1211:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_1215:
- MessageBox MB_OK|MB_ICONSTOP "Cannot save registration information to $INSTDIR\user.ini file!" /SD IDOK
- Abort
- label_1217:
- FlushINI $INSTDIR\user.ini
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; SetOverwrite off
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- SectionEnd
- SectionGroup /e "Interfaces (at least one must be selected)" ; Section 1
- Section Boot ; Section_2
- ; AddSize 2041
- SectionIn 1 2
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- IfFileExists $SYSDIR\defrag_native.exe 0 label_1293
- DetailPrint "Removing old boot time interface..."
- ClearErrors
- Delete $SYSDIR\defrag_native.exe
- IfErrors 0 label_1293
- IfSilent 0 label_1276
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_1272
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... Cannot update $SYSDIR\defrag_native.exe file!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_1272:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_1276:
- MessageBox MB_OK|MB_ICONSTOP "Cannot update $SYSDIR\defrag_native.exe file!" /SD IDOK
- ExecWait "$\"$SYSDIR\bootexctrl.exe$\" /u /s defrag_native"
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- SetOutPath $PLUGINSDIR
- StrCmp $_24_ amd64 0 label_1287
- SetOverwrite on
- File bootexctrl.exe
- Goto label_1291
- label_1287:
- StrCmp $_24_ ia64 0 label_1290
- File bootexctrl.exe
- Goto label_1291
- label_1290:
- File bootexctrl.exe
- label_1291:
- ExecWait "$\"$PLUGINSDIR\bootexctrl.exe$\" /u /s defrag_native"
- Abort
- label_1293:
- DetailPrint "Installing boot time interface..."
- SetOutPath $INSTDIR\man
- File boot-off.man
- File boot-on.man
- File call.man
- File echo.man
- File exit.man
- File help.man
- File hexview.man
- File history.man
- File man.man
- File pause.man
- File readme.txt
- File reboot.man
- File set.man
- File shutdown.man
- File type.man
- File udefrag.man
- File variables.man
- SetOutPath $SYSDIR
- File boot-config.cmd
- File boot-off.cmd
- File boot-on.cmd
- StrCmp $_24_ amd64 0 label_1319
- File bootexctrl.exe
- Goto label_1323
- label_1319:
- StrCmp $_24_ ia64 0 label_1322
- File bootexctrl.exe
- Goto label_1323
- label_1322:
- File bootexctrl.exe
- label_1323:
- StrCmp $_24_ amd64 0 label_1326
- File defrag_native.exe
- Goto label_1330
- label_1326:
- StrCmp $_24_ ia64 0 label_1329
- File defrag_native.exe
- Goto label_1330
- label_1329:
- File defrag_native.exe
- label_1330:
- IfFileExists $SYSDIR\ud-boot-time.cmd label_1334
- File ud-boot-time.cmd
- File ud-boot-time.ini
- Goto label_1338
- label_1334:
- IfFileExists $SYSDIR\ud-boot-time.ini label_1338
- Rename $SYSDIR\ud-boot-time.cmd $SYSDIR\ud-boot-time.cmd.old ; $SYSDIR\ud-boot-time.cmd->$SYSDIR\ud-boot-time.cmd.old
- File ud-boot-time.cmd
- File ud-boot-time.ini
- label_1338:
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; SetOverwrite off
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- SectionEnd
- Section Console ; Section_3
- ; AddSize 5855
- SectionIn 1 2
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Installing console interface..."
- SetOutPath $SYSDIR
- StrCmp $_24_ amd64 0 label_1354
- SetOverwrite on
- File udefrag.exe
- Goto label_1358
- label_1354:
- StrCmp $_24_ ia64 0 label_1357
- File udefrag.exe
- Goto label_1358
- label_1357:
- File udefrag.exe
- label_1358:
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; SetOverwrite off
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- SectionEnd
- Section "GUI (default)" ; Section_4
- ; AddSize 19683
- SectionIn 1
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Installing graphical interface..."
- SetOutPath $INSTDIR
- StrCpy $_OUTDIR $OUTDIR
- SetOutPath $_OUTDIR\locale
- SetOutPath $_OUTDIR\locale\ar
- SetOverwrite on
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\be
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\bg
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\bn
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\bs
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\ca
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\cs
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\da
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\de
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\el
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\en_GB
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\en_US
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\es
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\es_AR
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\es_MX
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\et
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\fa
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\fi
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\fr
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\gl
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\he
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\hi
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\hr
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\hu
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\hy
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\id
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\ilo
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\is
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\it
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\ja
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\jv
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\ka
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\ko
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\la
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\lt
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\lv
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\mk
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\ms
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\my
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\nl
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\no
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\pam
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\pl
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\pt
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\pt_BR
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\ro
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\ru
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\sk
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\sl
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\sq
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\sr
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\sv
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\ta
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\th
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\tl
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\tr
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\uk
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\uz@Latn
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\vi
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\war
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\yi
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\zh_CN
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\zh_TW
- File UltraDefrag.mo
- SetOutPath $_OUTDIR
- SetOutPath $INSTDIR\po
- File ar.po
- File be.po
- File bg.po
- File bn.po
- File bs.po
- File ca.po
- File cs.po
- File da.po
- File de.po
- File el.po
- File en_GB.po
- File en_US.po
- File es.po
- File es_AR.po
- File es_MX.po
- File et.po
- File fa.po
- File fi.po
- File fr.po
- File gl.po
- File he.po
- File hi.po
- File hr.po
- File hu.po
- File hy.po
- File id.po
- File ilo.po
- File is.po
- File it.po
- File ja.po
- File jv.po
- File ka.po
- File ko.po
- File la.po
- File lt.po
- File lv.po
- File mk.po
- File ms.po
- File my.po
- File nl.po
- File no.po
- File pam.po
- File pl.po
- File pt.po
- File pt_BR.po
- File ro.po
- File ru.po
- File sk.po
- File sl.po
- File sq.po
- File sr.po
- File sv.po
- File ta.po
- File th.po
- File tl.po
- File tr.po
- File uk.po
- File uz@Latn.po
- File vi.po
- File war.po
- File yi.po
- File zh_CN.po
- File zh_TW.po
- File UltraDefrag.pot
- SetOutPath $INSTDIR
- Delete $INSTDIR\ultradefrag.exe
- StrCmp $_24_ amd64 0 label_1570
- File ultradefrag.exe
- Goto label_1574
- label_1570:
- StrCmp $_24_ ia64 0 label_1573
- File ultradefrag.exe
- Goto label_1574
- label_1573:
- File ultradefrag.exe
- label_1574:
- DetailPrint "Fragmentation reports translation update..."
- ExecWait "$\"$INSTDIR\ultradefrag.exe$\" --setup"
- Push $R0
- Push $0
- DetailPrint "Registering file extensions..."
- ClearErrors
- ReadRegStr $R0 HKCR .lua ""
- IfErrors 0 label_1588
- WriteRegStr HKCR .lua "" Lua.Script
- WriteRegStr HKCR Lua.Script "" "Lua Script File"
- WriteRegStr HKCR Lua.Script\shell\Edit "" "Edit Script"
- WriteRegStr HKCR Lua.Script\shell\Edit\command "" "notepad.exe %1"
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Registered.lua 1
- Goto label_1595
- label_1588:
- StrCpy $0 $R0
- ClearErrors
- ReadRegStr $R0 HKCR $0\shell\Edit ""
- IfErrors 0 label_1595
- WriteRegStr HKCR $0\shell\Edit "" "Edit Script"
- WriteRegStr HKCR $0\shell\Edit\command "" "notepad.exe %1"
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Registered.lua.edit 1
- label_1595:
- Pop $0
- Pop $R0
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; SetOverwrite off
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- SectionEnd
- SectionGroupEnd
- Section "Automatic defragmentation (requires Console)" ; Section_6
- ; AddSize 228
- SectionIn 1 2
- Push $R0
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Installing automatic defragmentation..."
- StrCpy $_3_ 0
- Call :label_83
- IntOp $_72_ $_22_ & 0x7FFFFFFF
- IntCmp $_72_ 0x06000000 0 label_1628
- IfFileExists $SYSDIR\Tasks\UltraDefrag\AutoDefrag label_1627
- SetOutPath $PLUGINSDIR
- SetOverwrite on
- File AutoDefrag.xml
- nsExec::ExecToLog /OEM "schtasks /Create /TN UltraDefrag\AutoDefrag /XML $\"$PLUGINSDIR\AutoDefrag.xml$\""
- ; Call Initialize_____Plugins
- ; SetOverwrite off
- ; AllowSkipFiles on
- ; File $PLUGINSDIR\nsExec.dll
- ; SetDetailsPrint lastused
- ; Push "schtasks /Create /TN UltraDefrag\AutoDefrag /XML $\"$PLUGINSDIR\AutoDefrag.xml$\""
- ; Push /OEM
- ; CallInstDLL $PLUGINSDIR\nsExec.dll ExecToLog
- Pop $_3_
- StrCmp $_3_ error 0 label_1627
- DetailPrint "Unable to execute schtasks command!"
- label_1627:
- Goto label_1642
- label_1628:
- IfFileExists $WINDIR\Tasks\AutoDefrag.job label_1642
- SetOutPath $WINDIR\Tasks
- SetOverwrite on
- AllowSkipFiles off
- File AutoDefrag.job
- nsExec::ExecToLog /OEM "schtasks /Change /TN AutoDefrag /TR $\"\$\"$INSTDIR\task-launcher.exe\$\" \$\"$INSTDIR\tasks\auto-defrag.cmd\$\"$\" /RU SYSTEM"
- ; Call Initialize_____Plugins
- ; SetOverwrite off
- ; File $PLUGINSDIR\nsExec.dll
- ; SetDetailsPrint lastused
- ; Push "schtasks /Change /TN AutoDefrag /TR $\"\$\"$INSTDIR\task-launcher.exe\$\" \$\"$INSTDIR\tasks\auto-defrag.cmd\$\"$\" /RU SYSTEM"
- ; Push /OEM
- ; CallInstDLL $PLUGINSDIR\nsExec.dll ExecToLog
- Pop $_3_
- StrCmp $_3_ error 0 label_1640
- DetailPrint "Unable to execute schtasks command!"
- label_1640:
- StrCmp $_3_ 0 label_1642
- Delete $WINDIR\Tasks\AutoDefrag.job
- label_1642:
- StrCmp $_3_ 0 label_1686
- IfSilent 0 label_1684
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_1680
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... Unable to schedule automatic defragmentation!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_1680:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_1684:
- MessageBox MB_OK|MB_ICONSTOP "Unable to schedule automatic defragmentation!" /SD IDOK
- Abort
- label_1686:
- SetOutPath $INSTDIR
- StrCmp $_24_ amd64 0 label_1690
- SetOverwrite on
- File task-launcher.exe
- Goto label_1694
- label_1690:
- StrCmp $_24_ ia64 0 label_1693
- File task-launcher.exe
- Goto label_1694
- label_1693:
- File task-launcher.exe
- label_1694:
- IfFileExists $INSTDIR\tasks\auto-defrag.cmd label_1697
- SetOutPath $INSTDIR\tasks
- File auto-defrag.cmd
- label_1697:
- Call :label_83
- IntOp $_72_ $_22_ & 0x7FFFFFFF
- IntCmp $_72_ 0x06000000 0 label_1773
- DetailPrint "Disabling Microsoft\Windows\Defrag\ScheduledDefrag task..."
- Call :label_83
- IntOp $_72_ $_22_ & 0x7FFFFFFF
- IntCmp $_72_ 0x06010000 0 label_1753
- StrCpy $R0 Microsoft\Windows\Defrag\ScheduledDefrag
- nsExec::ExecToLog /OEM "cmd /C schtasks /Query /TN $R0 /XML > $\"$PLUGINSDIR\MicrosoftScheduledDefrag.xml$\""
- ; Call Initialize_____Plugins
- ; SetOverwrite off
- ; File $PLUGINSDIR\nsExec.dll
- ; SetDetailsPrint lastused
- ; Push "cmd /C schtasks /Query /TN $R0 /XML > $\"$PLUGINSDIR\MicrosoftScheduledDefrag.xml$\""
- ; Push /OEM
- ; CallInstDLL $PLUGINSDIR\nsExec.dll ExecToLog
- Pop $_3_
- StrCmp $_3_ error 0 label_1715
- DetailPrint "Unable to execute schtasks command!"
- Goto label_1752
- label_1715:
- StrCmp $_3_ 0 label_1718
- DetailPrint "Unable to query task parameters!"
- Goto label_1752
- label_1718:
- SetOutPath $PLUGINSDIR
- SetOverwrite on
- File check-scheduled-task.lua
- StrCpy $R0 $PLUGINSDIR\check-scheduled-task.lua
- nsExec::ExecToLog /OEM "$\"$INSTDIR\lua5.1a.exe$\" $\"$R0$\" $\"$PLUGINSDIR\MicrosoftScheduledDefrag.xml$\""
- ; Call Initialize_____Plugins
- ; SetOverwrite off
- ; File $PLUGINSDIR\nsExec.dll
- ; SetDetailsPrint lastused
- ; Push "$\"$INSTDIR\lua5.1a.exe$\" $\"$R0$\" $\"$PLUGINSDIR\MicrosoftScheduledDefrag.xml$\""
- ; Push /OEM
- ; CallInstDLL $PLUGINSDIR\nsExec.dll ExecToLog
- Pop $_3_
- StrCmp $_3_ error 0 label_1731
- DetailPrint "Unable to execute $INSTDIR\lua5.1a.exe program!"
- Goto label_1752
- label_1731:
- StrCmp $_3_ 0 0 label_1752
- Push $R0
- nsExec::ExecToLog /OEM "schtasks /Change /TN Microsoft\Windows\Defrag\ScheduledDefrag /disable"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsExec.dll
- ; SetDetailsPrint lastused
- ; Push "schtasks /Change /TN Microsoft\Windows\Defrag\ScheduledDefrag /disable"
- ; Push /OEM
- ; CallInstDLL $PLUGINSDIR\nsExec.dll ExecToLog
- Pop $_3_
- StrCmp $_3_ error 0 label_1742
- DetailPrint "Unable to execute schtasks command!"
- label_1742:
- StrCmp $_3_ 0 label_1745
- DetailPrint "Cannot disable the task!"
- Goto label_1751
- label_1745:
- DetailPrint "The task has been disabled."
- StrCmp disable enable 0 label_1749
- StrCpy $R0 0
- Goto label_1750
- label_1749:
- StrCpy $R0 1
- label_1750:
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::DisableScheduledMicrosoftDefrag $R0
- label_1751:
- Pop $R0
- label_1752:
- Goto label_1773
- label_1753:
- Push $R0
- nsExec::ExecToLog /OEM "schtasks /Change /TN Microsoft\Windows\Defrag\ScheduledDefrag /disable"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsExec.dll
- ; SetDetailsPrint lastused
- ; Push "schtasks /Change /TN Microsoft\Windows\Defrag\ScheduledDefrag /disable"
- ; Push /OEM
- ; CallInstDLL $PLUGINSDIR\nsExec.dll ExecToLog
- Pop $_3_
- StrCmp $_3_ error 0 label_1763
- DetailPrint "Unable to execute schtasks command!"
- label_1763:
- StrCmp $_3_ 0 label_1766
- DetailPrint "Cannot disable the task!"
- Goto label_1772
- label_1766:
- DetailPrint "The task has been disabled."
- StrCmp disable enable 0 label_1770
- StrCpy $R0 0
- Goto label_1771
- label_1770:
- StrCpy $R0 1
- label_1771:
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::DisableScheduledMicrosoftDefrag $R0
- label_1772:
- Pop $R0
- label_1773:
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- Pop $R0
- SectionEnd
- Section "Context menu handler (requires Console)" ; Section_7
- ; AddSize 6
- SectionIn 1 2
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Removing context menu handler..."
- Delete $INSTDIR\icons\shellex.ico
- Delete $INSTDIR\icons\shellex-folder.ico
- RMDir $INSTDIR\icons
- DeleteRegKey HKCR Drive\shell\udefrag.W7menu
- DeleteRegKey HKCR Drive\udefragW7menu
- DeleteRegKey HKCR Directory\shell\udefrag.W7menu
- DeleteRegKey HKCR Directory\udefragW7menu
- DeleteRegKey HKCR Drive\shell\udefrag-drive-analyze
- DeleteRegKey HKCR Drive\shell\udefrag-drive-defragment
- DeleteRegKey HKCR Drive\shell\udefrag-drive-full-optimization
- DeleteRegKey HKCR Drive\shell\udefrag-drive-quick-optimization
- DeleteRegKey HKCR Drive\shell\udefrag-folder
- DeleteRegKey HKCR Directory\shell\udefrag
- DeleteRegKey HKCR Directory\shell\udefrag-folder
- DeleteRegKey HKCR *\shell\udefrag
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Installing context menu handler..."
- SetOutPath $INSTDIR\icons
- SetOverwrite on
- File shellex.ico
- File shellex-folder.ico
- Push $0
- Push $1
- Push $R0
- Push $R1
- StrCpy $0 $INSTDIR\icons\shellex.ico
- StrCpy $1 $INSTDIR\icons\shellex-folder.ico
- Call :label_83
- IntOp $_72_ $_22_ & 0x7FFFFFFF
- IntCmp $_72_ 0x06010000 0 label_1866
- WriteRegStr HKCR Drive\shell\udefrag.W7menu MUIVerb &UltraDefrag
- WriteRegStr HKCR Drive\shell\udefrag.W7menu ExtendedSubCommandsKey Drive\udefragW7menu
- WriteRegStr HKCR Drive\shell\udefrag.W7menu Icon $0
- StrCpy $R0 &Analyze
- StrCpy $R1 "$\"$SYSDIR\udefrag.exe$\" --shellex --folder -a -v $\"%1$\""
- WriteRegStr HKCR Drive\udefragW7menu\shell\udefrag-drive-analyze "" $R0
- WriteRegStr HKCR Drive\udefragW7menu\shell\udefrag-drive-analyze\command "" $R1
- StrCpy $R0 &Defragment
- StrCpy $R1 "$\"$SYSDIR\udefrag.exe$\" --shellex --folder $\"%1$\""
- WriteRegStr HKCR Drive\udefragW7menu\shell\udefrag-drive-defragment "" $R0
- WriteRegStr HKCR Drive\udefragW7menu\shell\udefrag-drive-defragment\command "" $R1
- StrCpy $R0 "Perform &full optimization"
- StrCpy $R1 "$\"$SYSDIR\udefrag.exe$\" --shellex --folder -o -v $\"%1$\""
- WriteRegStr HKCR Drive\udefragW7menu\shell\udefrag-drive-full-optimization "" $R0
- WriteRegStr HKCR Drive\udefragW7menu\shell\udefrag-drive-full-optimization\command "" $R1
- StrCpy $R0 "Perform &quick optimization"
- StrCpy $R1 "$\"$SYSDIR\udefrag.exe$\" --shellex --folder -q -v $\"%1$\""
- WriteRegStr HKCR Drive\udefragW7menu\shell\udefrag-drive-quick-optimization "" $R0
- WriteRegStr HKCR Drive\udefragW7menu\shell\udefrag-drive-quick-optimization\command "" $R1
- StrCpy $R0 "Defragment &root folder itself"
- StrCpy $R1 "$\"$SYSDIR\udefrag.exe$\" --shellex --folder-itself $\"%1$\""
- WriteRegStr HKCR Drive\udefragW7menu\shell\udefrag-folder "" $R0
- WriteRegStr HKCR Drive\udefragW7menu\shell\udefrag-folder Icon $1
- WriteRegStr HKCR Drive\udefragW7menu\shell\udefrag-folder\command "" $R1
- WriteRegStr HKCR Directory\shell\udefrag.W7menu MUIVerb &UltraDefrag
- WriteRegStr HKCR Directory\shell\udefrag.W7menu ExtendedSubCommandsKey Directory\udefragW7menu
- WriteRegStr HKCR Directory\shell\udefrag.W7menu Icon $0
- StrCpy $R0 &Defragment
- StrCpy $R1 "$\"$SYSDIR\udefrag.exe$\" --shellex --folder $\"%1$\""
- WriteRegStr HKCR Directory\udefragW7menu\shell\udefrag "" $R0
- WriteRegStr HKCR Directory\udefragW7menu\shell\udefrag\command "" $R1
- StrCpy $R0 "&Defragment folder itself"
- StrCpy $R1 "$\"$SYSDIR\udefrag.exe$\" --shellex --folder-itself $\"%1$\""
- WriteRegStr HKCR Directory\udefragW7menu\shell\udefrag-folder "" $R0
- WriteRegStr HKCR Directory\udefragW7menu\shell\udefrag-folder Icon $1
- WriteRegStr HKCR Directory\udefragW7menu\shell\udefrag-folder\command "" $R1
- StrCpy $R0 "&Defragment with UltraDefrag"
- StrCpy $R1 "$\"$SYSDIR\udefrag.exe$\" --shellex $\"%1$\""
- WriteRegStr HKCR *\shell\udefrag "" $R0
- WriteRegStr HKCR *\shell\udefrag Icon $0
- WriteRegStr HKCR *\shell\udefrag\command "" $R1
- Goto label_1898
- label_1866:
- StrCpy $R0 "&Analyze with UltraDefrag"
- StrCpy $R1 "$\"$SYSDIR\udefrag.exe$\" --shellex --folder -a -v $\"%1$\""
- WriteRegStr HKCR Drive\shell\udefrag-drive-analyze "" $R0
- WriteRegStr HKCR Drive\shell\udefrag-drive-analyze\command "" $R1
- StrCpy $R0 "&Defragment with UltraDefrag"
- StrCpy $R1 "$\"$SYSDIR\udefrag.exe$\" --shellex --folder $\"%1$\""
- WriteRegStr HKCR Drive\shell\udefrag-drive-defragment "" $R0
- WriteRegStr HKCR Drive\shell\udefrag-drive-defragment\command "" $R1
- StrCpy $R0 "Perform &full optimization with UltraDefrag"
- StrCpy $R1 "$\"$SYSDIR\udefrag.exe$\" --shellex --folder -o -v $\"%1$\""
- WriteRegStr HKCR Drive\shell\udefrag-drive-full-optimization "" $R0
- WriteRegStr HKCR Drive\shell\udefrag-drive-full-optimization\command "" $R1
- StrCpy $R0 "Perform &quick optimization with UltraDefrag"
- StrCpy $R1 "$\"$SYSDIR\udefrag.exe$\" --shellex --folder -q -v $\"%1$\""
- WriteRegStr HKCR Drive\shell\udefrag-drive-quick-optimization "" $R0
- WriteRegStr HKCR Drive\shell\udefrag-drive-quick-optimization\command "" $R1
- StrCpy $R0 "Defragment &root folder itself with UltraDefrag"
- StrCpy $R1 "$\"$SYSDIR\udefrag.exe$\" --shellex --folder-itself $\"%1$\""
- WriteRegStr HKCR Drive\shell\udefrag-folder "" $R0
- WriteRegStr HKCR Drive\shell\udefrag-folder\command "" $R1
- StrCpy $R0 "&Defragment with UltraDefrag"
- StrCpy $R1 "$\"$SYSDIR\udefrag.exe$\" --shellex --folder $\"%1$\""
- WriteRegStr HKCR Directory\shell\udefrag "" $R0
- WriteRegStr HKCR Directory\shell\udefrag\command "" $R1
- StrCpy $R0 "&Defragment folder itself with UltraDefrag"
- StrCpy $R1 "$\"$SYSDIR\udefrag.exe$\" --shellex --folder-itself $\"%1$\""
- WriteRegStr HKCR Directory\shell\udefrag-folder "" $R0
- WriteRegStr HKCR Directory\shell\udefrag-folder\command "" $R1
- StrCpy $R0 "&Defragment with UltraDefrag"
- StrCpy $R1 "$\"$SYSDIR\udefrag.exe$\" --shellex $\"%1$\""
- WriteRegStr HKCR *\shell\udefrag "" $R0
- WriteRegStr HKCR *\shell\udefrag\command "" $R1
- label_1898:
- Pop $R1
- Pop $R0
- Pop $1
- Pop $0
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; SetOverwrite off
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- SectionEnd
- Section Documentation ; Section_8
- ; AddSize 456
- SectionIn 1
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Installing documentation..."
- RMDir /r $INSTDIR\handbook
- SetOutPath $INSTDIR\handbook
- SetOverwrite on
- File Autodefrag.html
- File Blank.png
- File Boot.html
- File Compressed.png
- File Console.html
- File Credits.html
- File Credits.js
- File Development.html
- File Directory.png
- File FAQ.html
- File FDL.html
- File Fragmented.png
- File FreeSpace.png
- File GUI.html
- File Installation.html
- File Introduction.html
- File LICENSE.html
- File MFTzone.png
- File NotFragmented.png
- File Reports.html
- File System.png
- File Tips.html
- File Translation.html
- File Troubleshooting.html
- File UnusedBlock.png
- File ascript.png
- File bc_s.png
- File bdwn.png
- File closed.png
- File custom_doxygen.css
- File defrag.png
- File doxygen.css
- File dynsections.js
- File fixed.png
- File ftv2blank.png
- File ftv2cl.png
- File ftv2doc.png
- File ftv2folderclosed.png
- File ftv2folderopen.png
- File ftv2lastnode.png
- File ftv2link.png
- File ftv2mlastnode.png
- File ftv2mnode.png
- File ftv2mo.png
- File ftv2node.png
- File ftv2ns.png
- File ftv2plastnode.png
- File ftv2pnode.png
- File ftv2splitbar.png
- File ftv2vertline.png
- File full.png
- File gear.png
- File glass.png
- File help.png
- File index.html
- File jquery.js
- File languages.png
- File light.png
- File mft.png
- File nav_f.png
- File nav_g.png
- File nav_h.png
- File navtree.css
- File navtree.js
- File navtreeindex0.js
- File open.png
- File pages.html
- File pause.png
- File quick.png
- File removable.png
- File report.png
- File resize.js
- File scheduler.png
- File script.png
- File sflogo.gif
- File star.png
- File stop.png
- File sync_off.png
- File sync_on.png
- File tab_a.png
- File tab_b.png
- File tab_h.png
- File tab_s.png
- File tabs.css
- File terminal.png
- File udefrag80x15-colored-light.gif
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; SetOverwrite off
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- SectionEnd
- SectionGroup /e "Shortcuts (require GUI)" ; Section 9
- Section "Start Menu icon" ; Section_10
- SectionIn 1
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Installing start menu icon..."
- SetShellVarContext all
- SetOutPath $INSTDIR
- CreateShortCut $SMPROGRAMS\UltraDefrag.lnk $INSTDIR\ultradefrag.exe
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- SectionEnd
- Section "Desktop icon" ; Section_11
- SectionIn 1
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Installing desktop icon..."
- SetShellVarContext all
- SetOutPath $INSTDIR
- CreateShortCut $DESKTOP\UltraDefrag.lnk $INSTDIR\ultradefrag.exe
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- SectionEnd
- Section "Quick Launch icon" ; Section_12
- SectionIn 1
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Installing quick launch icon..."
- SetShellVarContext all
- SetOutPath $INSTDIR
- CreateShortCut $APPDATA\UltraDefrag.lnk $INSTDIR\ultradefrag.exe
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- SectionEnd
- SectionGroupEnd
- Section "Extract portable edition" ; Section_14
- ; AddSize 30973
- SectionIn 1
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Extracting portable edition..."
- SetOutPath "$INSTDIR\UltraDefrag 8.0.0 Portable Edition\data"
- SetOverwrite on
- File HISTORY.TXT
- File README.TXT
- File LICENSE.TXT
- StrCpy $_OUTDIR $OUTDIR
- SetOutPath $_OUTDIR\locale
- SetOutPath $_OUTDIR\locale\ar
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\be
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\bg
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\bn
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\bs
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\ca
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\cs
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\da
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\de
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\el
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\en_GB
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\en_US
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\es
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\es_AR
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\es_MX
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\et
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\fa
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\fi
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\fr
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\gl
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\he
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\hi
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\hr
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\hu
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\hy
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\id
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\ilo
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\is
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\it
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\ja
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\jv
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\ka
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\ko
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\la
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\lt
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\lv
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\mk
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\ms
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\my
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\nl
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\no
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\pam
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\pl
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\pt
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\pt_BR
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\ro
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\ru
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\sk
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\sl
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\sq
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\sr
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\sv
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\ta
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\th
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\tl
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\tr
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\uk
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\uz@Latn
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\vi
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\war
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\yi
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\zh_CN
- File UltraDefrag.mo
- SetOutPath $_OUTDIR\locale\zh_TW
- File UltraDefrag.mo
- SetOutPath $_OUTDIR
- SetOutPath "$INSTDIR\UltraDefrag 8.0.0 Portable Edition\data\po"
- File ar.po
- File be.po
- File bg.po
- File bn.po
- File bs.po
- File ca.po
- File cs.po
- File da.po
- File de.po
- File el.po
- File en_GB.po
- File en_US.po
- File es.po
- File es_AR.po
- File es_MX.po
- File et.po
- File fa.po
- File fi.po
- File fr.po
- File gl.po
- File he.po
- File hi.po
- File hr.po
- File hu.po
- File hy.po
- File id.po
- File ilo.po
- File is.po
- File it.po
- File ja.po
- File jv.po
- File ka.po
- File ko.po
- File la.po
- File lt.po
- File lv.po
- File mk.po
- File ms.po
- File my.po
- File nl.po
- File no.po
- File pam.po
- File pl.po
- File pt.po
- File pt_BR.po
- File ro.po
- File ru.po
- File sk.po
- File sl.po
- File sq.po
- File sr.po
- File sv.po
- File ta.po
- File th.po
- File tl.po
- File tr.po
- File uk.po
- File uz@Latn.po
- File vi.po
- File war.po
- File yi.po
- File zh_CN.po
- File zh_TW.po
- File UltraDefrag.pot
- SetOutPath "$INSTDIR\UltraDefrag 8.0.0 Portable Edition\data\scripts"
- File udreportcnv.lua
- File udsorting.js
- File upgrade-options.lua
- SetOutPath "$INSTDIR\UltraDefrag 8.0.0 Portable Edition\data\handbook"
- File Autodefrag.html
- File Blank.png
- File Boot.html
- File Compressed.png
- File Console.html
- File Credits.html
- File Credits.js
- File Development.html
- File Directory.png
- File FAQ.html
- File FDL.html
- File Fragmented.png
- File FreeSpace.png
- File GUI.html
- File Installation.html
- File Introduction.html
- File LICENSE.html
- File MFTzone.png
- File NotFragmented.png
- File Reports.html
- File System.png
- File Tips.html
- File Translation.html
- File Troubleshooting.html
- File UnusedBlock.png
- File ascript.png
- File bc_s.png
- File bdwn.png
- File closed.png
- File custom_doxygen.css
- File defrag.png
- File doxygen.css
- File dynsections.js
- File fixed.png
- File ftv2blank.png
- File ftv2cl.png
- File ftv2doc.png
- File ftv2folderclosed.png
- File ftv2folderopen.png
- File ftv2lastnode.png
- File ftv2link.png
- File ftv2mlastnode.png
- File ftv2mnode.png
- File ftv2mo.png
- File ftv2node.png
- File ftv2ns.png
- File ftv2plastnode.png
- File ftv2pnode.png
- File ftv2splitbar.png
- File ftv2vertline.png
- File full.png
- File gear.png
- File glass.png
- File help.png
- File index.html
- File jquery.js
- File languages.png
- File light.png
- File mft.png
- File nav_f.png
- File nav_g.png
- File nav_h.png
- File navtree.css
- File navtree.js
- File navtreeindex0.js
- File open.png
- File pages.html
- File pause.png
- File quick.png
- File removable.png
- File report.png
- File resize.js
- File scheduler.png
- File script.png
- File sflogo.gif
- File star.png
- File stop.png
- File sync_off.png
- File sync_on.png
- File tab_a.png
- File tab_b.png
- File tab_h.png
- File tab_s.png
- File tabs.css
- File terminal.png
- File udefrag80x15-colored-light.gif
- DetailPrint "Configuration files upgrade..."
- CreateDirectory "$INSTDIR\UltraDefrag 8.0.0 Portable Edition\data\conf"
- IfSilent 0 label_2355
- ExecWait "$\"$INSTDIR\lua5.1a_gui.exe$\" -s $\"$INSTDIR\UltraDefrag 8.0.0 Portable Edition\data\scripts\upgrade-options.lua$\" $\"$INSTDIR\UltraDefrag 8.0.0 Portable Edition\data$\""
- Goto label_2356
- label_2355:
- ExecWait "$\"$INSTDIR\lua5.1a_gui.exe$\" $\"$INSTDIR\UltraDefrag 8.0.0 Portable Edition\data\scripts\upgrade-options.lua$\" $\"$INSTDIR\UltraDefrag 8.0.0 Portable Edition\data$\""
- label_2356:
- SetOutPath "$INSTDIR\UltraDefrag 8.0.0 Portable Edition\data\scripts"
- File udreport.css
- SetOutPath "$INSTDIR\UltraDefrag 8.0.0 Portable Edition\data\bin\x86"
- File zenwinx.dll
- File udefrag.dll
- File lua5.1a.dll
- File lua5.1a.exe
- File lua5.1a_gui.exe
- File udefrag-dbg.exe
- File udefrag.exe
- File ultradefrag.exe
- File hibernate4win.exe
- CopyFiles /SILENT $INSTDIR\user.ini "$INSTDIR\UltraDefrag 8.0.0 Portable Edition\data\bin\x86" ; "$(LSTR_7)$INSTDIR\UltraDefrag 8.0.0 Portable Edition\data\bin\x86" ; "Copy to "
- SetOutPath "$INSTDIR\UltraDefrag 8.0.0 Portable Edition\data\bin\x64"
- File zenwinx.dll
- File udefrag.dll
- File lua5.1a.dll
- File lua5.1a.exe
- File lua5.1a_gui.exe
- File udefrag-dbg.exe
- File udefrag.exe
- File ultradefrag.exe
- File hibernate4win.exe
- CopyFiles /SILENT $INSTDIR\user.ini "$INSTDIR\UltraDefrag 8.0.0 Portable Edition\data\bin\x64" ; "$(LSTR_7)$INSTDIR\UltraDefrag 8.0.0 Portable Edition\data\bin\x64" ; "Copy to "
- SetOutPath "$INSTDIR\UltraDefrag 8.0.0 Portable Edition\data\bin\ia64"
- File zenwinx.dll
- File udefrag.dll
- File lua5.1a.dll
- File lua5.1a.exe
- File lua5.1a_gui.exe
- File udefrag-dbg.exe
- File udefrag.exe
- File ultradefrag.exe
- File hibernate4win.exe
- CopyFiles /SILENT $INSTDIR\user.ini "$INSTDIR\UltraDefrag 8.0.0 Portable Edition\data\bin\ia64" ; "$(LSTR_7)$INSTDIR\UltraDefrag 8.0.0 Portable Edition\data\bin\ia64" ; "Copy to "
- SetOutPath "$INSTDIR\UltraDefrag 8.0.0 Portable Edition"
- File "Portable UltraDefrag.exe"
- File readme.txt
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; SetOverwrite off
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- SectionEnd
- Section /o "Turn off usage tracking" ; Section_15
- Push $0
- DetailPrint "Disabling usage tracking..."
- StrCpy $0 UD_DISABLE_USAGE_TRACKING
- WriteRegStr HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" $0 1
- WriteRegStr HKCU Environment $0 1
- SendMessage 0xFFFF 0x001A 0 STR:Environment /TIMEOUT=5000
- Pop $0
- SectionEnd
- Section ; Section_16
- SectionIn 1 2 RO
- DetailPrint "Removing obsolete files and settings..."
- DeleteRegKey HKLM SYSTEM\UltraDefrag
- DeleteRegKey HKLM SYSTEM\CurrentControlSet\Control\UltraDefrag
- DeleteRegKey HKLM SYSTEM\ControlSet001\Control\UltraDefrag
- DeleteRegKey HKLM SYSTEM\ControlSet002\Control\UltraDefrag
- DeleteRegKey HKLM SYSTEM\ControlSet003\Control\UltraDefrag
- SetRegView 64
- DeleteRegKey HKLM Software\UltraDefrag
- SetRegView 32
- DeleteRegKey HKLM Software\UltraDefrag
- DeleteRegKey HKCR Drive\shell\udefrag
- DeleteRegKey HKCR Drive\shell\udefrag-drive-optimize
- DeleteRegKey HKCR Drive\shell\udefrag-drive-qoptimize
- DeleteRegKey HKCR Folder\shell\udefrag
- DeleteRegKey HKCR Folder\shell\udefrag-folder
- DeleteRegKey HKCR Folder\shell\udefrag.W7menu
- DeleteRegKey HKCR Folder\udefragW7menu
- DeleteRegKey HKCR *\shell\udefrag.W7menu
- DeleteRegKey HKCR *\udefragW7menu
- RMDir /r $SYSDIR\UltraDefrag
- Delete $SYSDIR\udefrag-gui-dbg.cmd
- Delete $SYSDIR\udefrag-gui.exe
- Delete $SYSDIR\udefrag-gui.cmd
- Delete $SYSDIR\ultradefrag.exe
- Delete $SYSDIR\udefrag-gui-config.exe
- Delete $SYSDIR\udefrag-scheduler.exe
- Delete $SYSDIR\ud-config.cmd
- Delete $SYSDIR\ud-help.cmd
- Delete $SYSDIR\udefrag-kernel.dll
- Delete $SYSDIR\lua5.1a.exe
- Delete $SYSDIR\lua5.1a_gui.exe
- Delete $SYSDIR\udctxhandler.cmd
- Delete $SYSDIR\udctxhandler.vbs
- Delete $SYSDIR\wgx.dll
- RMDir /r $INSTDIR\doc
- RMDir /r $INSTDIR\i18n
- RMDir /r $INSTDIR\options
- RMDir /r $INSTDIR\portable_i386_package
- RMDir /r $INSTDIR\presets
- Delete $INSTDIR\scripts\udctxhandler.lua
- Delete $INSTDIR\scripts\upgrade-guiopts.lua
- Delete $INSTDIR\scripts\upgrade-rptopts.lua
- Delete $INSTDIR\scripts\udreport.css.old
- Delete $INSTDIR\options.lua
- Delete $INSTDIR\options.lua.old
- Delete $INSTDIR\dfrg.exe
- Delete $INSTDIR\CREDITS.TXT
- Delete $INSTDIR\INSTALL.TXT
- Delete $INSTDIR\FAQ.TXT
- Delete $INSTDIR\UltraDefragScheduler.NET.exe
- Delete $INSTDIR\boot_on.cmd
- Delete $INSTDIR\boot_off.cmd
- Delete $INSTDIR\ud_i18n.dll
- Delete $INSTDIR\wgx.dll
- Delete $INSTDIR\lua5.1a.dll
- Delete $INSTDIR\repair-drives.cmd
- Delete $INSTDIR\udefrag-scheduler.exe
- Delete $INSTDIR\udefrag-gui-config.exe
- Delete $INSTDIR\LanguageSelector.exe
- Delete $INSTDIR\lang.ini
- Delete $INSTDIR\wxultradefrag.exe
- Delete $INSTDIR\shellex.ico
- Delete $INSTDIR\shellex-folder.ico
- Delete $INSTDIR\crash-info.ini
- Delete $INSTDIR\crash-info.log
- Rename $INSTDIR\reports.lng $INSTDIR\reports.tmp ; $INSTDIR\reports.lng->$INSTDIR\reports.tmp
- Delete $INSTDIR\*.lng
- Rename $INSTDIR\reports.tmp $INSTDIR\reports.lng ; $INSTDIR\reports.tmp->$INSTDIR\reports.lng
- Delete $INSTDIR\po\ach.po
- Delete $INSTDIR\po\ar_EG.po
- Delete $INSTDIR\po\ar_SA.po
- Delete $INSTDIR\po\eu.po
- Delete $INSTDIR\po\eu_ES.po
- Delete $INSTDIR\po\si_LK.po
- Delete $INSTDIR\po\szl.po
- RMDir /r $INSTDIR\locale\ach
- RMDir /r $INSTDIR\locale\ar_EG
- RMDir /r $INSTDIR\locale\ar_SA
- RMDir /r $INSTDIR\locale\eu
- RMDir /r $INSTDIR\locale\eu_ES
- RMDir /r $INSTDIR\locale\si_LK
- RMDir /r $INSTDIR\locale\szl
- RMDir /r $INSTDIR\tmp\data
- SetShellVarContext all
- RMDir /r $SMPROGRAMS\DASoft
- RMDir /r $SMPROGRAMS\UltraDefrag
- Delete $SYSDIR\Drivers\ultradfg.sys
- DeleteRegKey HKLM SYSTEM\CurrentControlSet\Services\ultradfg
- DeleteRegKey HKLM SYSTEM\ControlSet001\Services\ultradfg
- DeleteRegKey HKLM SYSTEM\ControlSet002\Services\ultradfg
- DeleteRegKey HKLM SYSTEM\ControlSet003\Services\ultradfg
- DeleteRegKey HKLM SYSTEM\CurrentControlSet\Enum\Root\LEGACY_ULTRADFG
- DeleteRegKey HKLM SYSTEM\ControlSet001\Enum\Root\LEGACY_ULTRADFG
- DeleteRegKey HKLM SYSTEM\ControlSet002\Enum\Root\LEGACY_ULTRADFG
- DeleteRegKey HKLM SYSTEM\ControlSet003\Enum\Root\LEGACY_ULTRADFG
- ClearErrors
- ReadRegStr $R0 HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Registered.lng
- IfErrors label_2510
- StrCmp $R0 1 0 label_2510
- DeleteRegKey HKCR LanguagePack
- DeleteRegKey HKCR .lng
- DeleteRegValue HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Registered.lng
- label_2510:
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Creating uninstaller..."
- SetOutPath $INSTDIR
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag DisplayName "Ultra Defragmenter"
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag DisplayVersion 8.0.0
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Publisher "Green Gate Systems, LLC"
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag URLInfoAbout https://ultradefrag.net/
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag UninstallString $INSTDIR\uninstall.exe
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag DisplayIcon $INSTDIR\uninstall.exe
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag InstallLocation $INSTDIR
- WriteRegDWORD HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag NoModify 1
- WriteRegDWORD HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag NoRepair 1
- WriteUninstaller ; !!! ERROR: bad path
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Calculating installation size..."
- Push $R0
- Push $0
- Push $1
- Push $2
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- Push $INSTDIR
- Push /S=0K
- Call :label_2546
- Goto label_2760
- label_2546:
- Exch $1
- ; Push $1
- ; Exch
- ; Pop $1
- Exch
- Exch $0
- ; Push $0
- ; Exch
- ; Pop $0
- Exch
- Push $2
- Push $3
- Push $4
- Push $5
- Push $6
- Push $7
- Push $8
- Push $9
- Push $R3
- Push $R4
- Push $R5
- Push $R6
- Push $R7
- Push $R8
- Push $R9
- ClearErrors
- label_2570:
- StrCpy $R9 $0 1 -1
- StrCmp $R9 \ 0 label_2574
- StrCpy $0 $0 -1
- Goto label_2570
- label_2574:
- IfFileExists $0\*.* 0 label_2729
- StrCpy $3 ""
- StrCpy $4 ""
- StrCpy $5 ""
- StrCpy $6 ""
- StrCpy $8 0
- StrCpy $R3 ""
- StrCpy $R4 ""
- StrCpy $R5 ""
- label_2583:
- StrCpy $R9 $1 1
- StrCpy $1 $1 "" 1
- StrCmp $R9 " " label_2583
- StrCmp $R9 "" label_2613
- StrCmp $R9 / 0 label_2583
- StrCpy $9 -1
- label_2589:
- IntOp $9 $9 + 1
- StrCpy $R9 $1 1 $9
- StrCmp $R9 "" label_2593
- StrCmp $R9 / 0 label_2589
- label_2593:
- StrCpy $8 $1 $9
- StrCpy $8 $8 "" 2
- label_2595:
- StrCpy $R9 $8 "" -1
- StrCmp $R9 " " 0 label_2599
- StrCpy $8 $8 -1
- Goto label_2595
- label_2599:
- StrCpy $R9 $1 2
- StrCpy $1 $1 "" $9
- StrCmp $R9 M= 0 label_2604
- StrCpy $4 $8
- Goto label_2583
- label_2604:
- StrCmp $R9 S= 0 label_2607
- StrCpy $6 $8
- Goto label_2583
- label_2607:
- StrCmp $R9 G= 0 label_2729
- StrCpy $7 $8
- StrCmp $7 "" label_2612
- StrCmp $7 1 label_2612
- StrCmp $7 0 0 label_2729
- label_2612:
- Goto label_2583
- label_2613:
- StrCmp $6 "" label_2643
- StrCpy $9 0
- label_2615:
- StrCpy $R9 $6 1 $9
- StrCmp $R9 "" label_2620
- StrCmp $R9 : label_2620
- IntOp $9 $9 + 1
- Goto label_2615
- label_2620:
- StrCpy $5 $6 $9
- IntOp $9 $9 + 1
- StrCpy $1 $6 1 -1
- StrCpy $6 $6 -1 $9
- StrCmp $5 "" label_2626
- IntOp $5 $5 + 0
- label_2626:
- StrCmp $6 "" label_2628
- IntOp $6 $6 + 0
- label_2628:
- StrCmp $1 B 0 label_2632
- StrCpy $1 1
- StrCpy $2 bytes
- Goto label_2643
- label_2632:
- StrCmp $1 K 0 label_2636
- StrCpy $1 1024
- StrCpy $2 Kb
- Goto label_2643
- label_2636:
- StrCmp $1 M 0 label_2640
- StrCpy $1 1048576
- StrCpy $2 Mb
- Goto label_2643
- label_2640:
- StrCmp $1 G 0 label_2729
- StrCpy $1 1073741824
- StrCpy $2 Gb
- label_2643:
- StrCmp $4 "" 0 label_2645
- StrCpy $4 *.*
- label_2645:
- StrCmp $7 "" 0 label_2647
- StrCpy $7 1
- label_2647:
- StrCpy $8 1
- Push $0
- SetDetailsPrint textonly
- label_2650:
- IntOp $8 $8 - 1
- Pop $R8
- FindFirst $0 $R7 $R8\$4
- IfErrors label_2688
- StrCmp $R7 . 0 label_2661
- FindNext $0 $R7
- StrCmp $R7 .. 0 label_2661
- FindNext $0 $R7
- IfErrors 0 label_2661
- FindClose $0
- Goto label_2688
- label_2661:
- IfFileExists $R8\$R7\*.* 0 label_2664
- IntOp $R5 $R5 + 1
- Goto label_2685
- label_2664:
- StrCpy $R6 0
- StrCmp $5$6 "" 0 label_2668
- IntOp $R4 $R4 + 1
- Goto label_2685
- label_2668:
- FileOpen $9 $R8\$R7 r
- IfErrors label_2672
- FileSeek $9 0 END $R6
- FileClose $9
- label_2672:
- StrCmp $5 "" label_2674
- IntCmp $R6 $5 0 label_2685
- label_2674:
- StrCmp $6 "" label_2676
- IntCmp $R6 $6 0 0 label_2685
- label_2676:
- IntOp $R4 $R4 + 1
- System::Int64Op $R3 + $R6
- ; Call Initialize_____Plugins
- ; AllowSkipFiles on
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push $R6
- ; Push +
- ; Push $R3
- ; CallInstDLL $PLUGINSDIR\System.dll Int64Op
- Pop $R3
- label_2685:
- FindNext $0 $R7
- IfErrors 0 label_2661
- FindClose $0
- label_2688:
- StrCmp $5$6 "" label_2699
- System::Int64Op $R3 / $1
- ; Call Initialize_____Plugins
- ; AllowSkipFiles off
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push $1
- ; Push /
- ; Push $R3
- ; CallInstDLL $PLUGINSDIR\System.dll Int64Op
- Pop $9
- DetailPrint "Size:$9 $2 Files:$R4 Folders:$R5"
- Goto label_2700
- label_2699:
- DetailPrint "Files:$R4 Folders:$R5"
- label_2700:
- StrCmp $7 0 label_2716
- FindFirst $0 $R7 $R8\*.*
- StrCmp $R7 . 0 label_2709
- FindNext $0 $R7
- StrCmp $R7 .. 0 label_2709
- FindNext $0 $R7
- IfErrors 0 label_2709
- FindClose $0
- StrCmp $8 0 label_2716 label_2650
- label_2709:
- IfFileExists $R8\$R7\*.* 0 label_2712
- Push $R8\$R7
- IntOp $8 $8 + 1
- label_2712:
- FindNext $0 $R7
- IfErrors 0 label_2709
- FindClose $0
- StrCmp $8 0 label_2716 label_2650
- label_2716:
- StrCmp $R3 "" label_2725
- System::Int64Op $R3 / $1
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push $1
- ; Push /
- ; Push $R3
- ; CallInstDLL $PLUGINSDIR\System.dll Int64Op
- Pop $R3
- label_2725:
- StrCpy $2 $R4
- StrCpy $1 $R5
- StrCpy $0 $R3
- Goto label_2733
- label_2729:
- SetErrors
- StrCpy $0 ""
- StrCpy $1 ""
- StrCpy $2 ""
- label_2733:
- SetDetailsPrint both
- Pop $R9
- Pop $R8
- Pop $R7
- Pop $R6
- Pop $R5
- Pop $R4
- Pop $R3
- Pop $9
- Pop $8
- Pop $7
- Pop $6
- Pop $5
- Pop $4
- Pop $3
- Exch $2
- ; Push $2
- ; Exch
- ; Pop $2
- Exch
- Exch $1
- ; Push $1
- ; Exch
- ; Pop $1
- Exch 2
- Exch $0
- ; Push $0
- ; Exch
- ; Pop $0
- Return
- label_2760:
- Pop $0
- Pop $1
- Pop $2
- IntFmt $0 0x%08X $0
- WriteRegDWORD HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag EstimatedSize $0
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- Pop $2
- Pop $1
- Pop $0
- Pop $R0
- SectionEnd
- Function .onInit
- Push $R0
- Push $R1
- Delete $TEMP\UltraDefrag_Install.log
- ClearErrors
- Push $R0
- Call :label_83
- IntOp $_72_ $_23_ & 0x80000000
- StrCmp $_72_ 0 0 label_2826
- IfSilent 0 label_2824
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_2820
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... This program cannot be used on Windows 95, 98 and Me!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_2820:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_2824:
- MessageBox MB_OK|MB_ICONSTOP "This program cannot be used on Windows 95, 98 and Me!" /SD IDOK
- Abort
- label_2826:
- Call :label_83
- IntOp $_72_ $_22_ & 0x7FFFFFFF
- IntCmp $_72_ 0x05010000 label_2872 0 label_2872
- IfSilent 0 label_2870
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_2866
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... This program cannot be used on Windows versions below XP!$\n Download UltraDefrag v6 for Windows NT 4.0 and Windows 2000.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_2866:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_2870:
- MessageBox MB_OK|MB_ICONSTOP "This program cannot be used on Windows versions below XP!$\n Download UltraDefrag v6 for Windows NT 4.0 and Windows 2000." /SD IDOK
- Abort
- label_2872:
- StrCpy $_24_ ""
- ClearErrors
- ReadRegStr $R0 HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" PROCESSOR_ARCHITECTURE
- IfErrors label_2877
- StrCpy $_24_ $R0
- label_2877:
- StrCmp $_24_ x86 label_2895
- StrCmp $_24_ amd64 label_2895
- StrCmp $_24_ ia64 label_2895
- System::Call kernel32::GetCurrentProcess()i.s
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::GetCurrentProcess()i.s
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- System::Call kernel32::IsWow64Process(is,*i.s)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::IsWow64Process(is,*i.s)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- Pop $_72_
- StrCmp $_72_ 0 label_2894
- StrCpy $_24_ amd64
- Goto label_2895
- label_2894:
- StrCpy $_24_ x86
- label_2895:
- Pop $R0
- StrCmp $_24_ x86 label_2899
- StrCmp $INSTDIR $PROGRAMFILES\UltraDefrag 0 label_2899
- StrCpy $INSTDIR $PROGRAMFILES64\UltraDefrag
- label_2899:
- Push $R0
- UserInfo::GetAccountType
- ; Call Initialize_____Plugins
- ; AllowSkipFiles on
- ; File $PLUGINSDIR\UserInfo.dll
- ; SetDetailsPrint lastused
- ; CallInstDLL $PLUGINSDIR\UserInfo.dll GetAccountType
- Pop $R0
- StrCmp $R0 Admin label_2949
- IfSilent 0 label_2947
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_2943
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... Administrative rights are needed to install the program!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_2943:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_2947:
- MessageBox MB_OK|MB_ICONSTOP "Administrative rights are needed to install the program!" /SD IDOK
- Abort
- label_2949:
- Pop $R0
- Push $R0
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; AllowSkipFiles off
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Stopping automatic defragmentation..."
- Call :label_83
- IntOp $_72_ $_22_ & 0x7FFFFFFF
- IntCmp $_72_ 0x06000000 0 label_2962
- StrCpy $R0 UltraDefrag\AutoDefrag
- Goto label_2963
- label_2962:
- StrCpy $R0 AutoDefrag
- label_2963:
- nsExec::ExecToLog /OEM "schtasks /End /TN $R0"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsExec.dll
- ; SetDetailsPrint lastused
- ; Push "schtasks /End /TN $R0"
- ; Push /OEM
- ; CallInstDLL $PLUGINSDIR\nsExec.dll ExecToLog
- Pop $_3_
- StrCmp $_3_ error 0 label_2972
- DetailPrint "Unable to execute schtasks command!"
- label_2972:
- StrCmp $_3_ 0 label_2974
- DetailPrint "Unable to stop automatic defragmentation!"
- label_2974:
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- Pop $R0
- Push $R0
- System::Call "kernel32::OpenMutex(i 0x100000, b 0, t $\"Global\ultradefrag_mutex$\") i .R0"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push "kernel32::OpenMutex(i 0x100000, b 0, t $\"Global\ultradefrag_mutex$\") i .R0"
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- StrCmp $R0 0 0 label_2992
- System::Call "kernel32::OpenMutex(i 0x100000, b 0, t $\"ultradefrag_mutex$\") i .R0"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push "kernel32::OpenMutex(i 0x100000, b 0, t $\"ultradefrag_mutex$\") i .R0"
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- label_2992:
- StrCmp $R0 0 0 label_2998
- System::Call "kernel32::OpenMutex(i 0x100000, b 0, t $\"\BaseNamedObjects\ultradefrag_mutex$\") i .R0"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push "kernel32::OpenMutex(i 0x100000, b 0, t $\"\BaseNamedObjects\ultradefrag_mutex$\") i .R0"
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- label_2998:
- StrCmp $R0 0 0 label_3004
- System::Call "kernel32::OpenMutex(i 0x100000, b 0, t $\"\Sessions\1\BaseNamedObjects\ultradefrag_mutex$\") i .R0"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push "kernel32::OpenMutex(i 0x100000, b 0, t $\"\Sessions\1\BaseNamedObjects\ultradefrag_mutex$\") i .R0"
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- label_3004:
- StrCmp $R0 0 label_3053
- System::Call "kernel32::CloseHandle(i $R0)"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push "kernel32::CloseHandle(i $R0)"
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- IfSilent 0 label_3051
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_3047
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... UltraDefrag is running. Please close it first!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_3047:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_3051:
- MessageBox MB_OK|MB_ICONSTOP "UltraDefrag is running. Please close it first!" /SD IDOK
- Abort
- label_3053:
- Pop $R0
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- InitPluginsDir
- ; Call Initialize_____Plugins
- ; SetDetailsPrint lastused
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- ReadRegStr $_0_ HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag InstallLocation
- StrCmp $_0_ "" 0 label_3069
- StrCpy $_0_ $INSTDIR
- label_3069:
- Push $R1
- DetailPrint "Collecting previous selections from registry ..."
- ClearErrors
- ReadRegStr $R1 HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallBoot
- IfErrors label_3092
- StrCmp $R1 1 0 label_3084
- Push $0
- Push $1
- StrCpy $1 2
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3092
- label_3084:
- Push $0
- Push $1
- StrCpy $1 2
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3092:
- ClearErrors
- ReadRegStr $R1 HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallConsole
- IfErrors label_3113
- StrCmp $R1 1 0 label_3105
- Push $0
- Push $1
- StrCpy $1 3
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3113
- label_3105:
- Push $0
- Push $1
- StrCpy $1 3
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3113:
- ClearErrors
- ReadRegStr $R1 HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallGUI
- IfErrors label_3134
- StrCmp $R1 1 0 label_3126
- Push $0
- Push $1
- StrCpy $1 4
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3134
- label_3126:
- Push $0
- Push $1
- StrCpy $1 4
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3134:
- ClearErrors
- ReadRegStr $R1 HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallHelp
- IfErrors label_3155
- StrCmp $R1 1 0 label_3147
- Push $0
- Push $1
- StrCpy $1 8
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3155
- label_3147:
- Push $0
- Push $1
- StrCpy $1 8
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3155:
- ClearErrors
- ReadRegStr $R1 HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallShellHandler
- IfErrors label_3176
- StrCmp $R1 1 0 label_3168
- Push $0
- Push $1
- StrCpy $1 7
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3176
- label_3168:
- Push $0
- Push $1
- StrCpy $1 7
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3176:
- ClearErrors
- ReadRegStr $R1 HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallUsageTracking
- IfErrors label_3197
- StrCmp $R1 1 0 label_3189
- Push $0
- Push $1
- StrCpy $1 15
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3197
- label_3189:
- Push $0
- Push $1
- StrCpy $1 15
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3197:
- ClearErrors
- ReadRegStr $R1 HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallStartMenuIcon
- IfErrors label_3218
- StrCmp $R1 1 0 label_3210
- Push $0
- Push $1
- StrCpy $1 10
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3218
- label_3210:
- Push $0
- Push $1
- StrCpy $1 10
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3218:
- ClearErrors
- ReadRegStr $R1 HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallDesktopIcon
- IfErrors label_3239
- StrCmp $R1 1 0 label_3231
- Push $0
- Push $1
- StrCpy $1 11
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3239
- label_3231:
- Push $0
- Push $1
- StrCpy $1 11
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3239:
- ClearErrors
- ReadRegStr $R1 HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallQuickLaunchIcon
- IfErrors label_3260
- StrCmp $R1 1 0 label_3252
- Push $0
- Push $1
- StrCpy $1 12
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3260
- label_3252:
- Push $0
- Push $1
- StrCpy $1 12
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3260:
- ClearErrors
- ReadRegStr $R1 HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallPortableEdition
- IfErrors label_3281
- StrCmp $R1 1 0 label_3273
- Push $0
- Push $1
- StrCpy $1 14
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3281
- label_3273:
- Push $0
- Push $1
- StrCpy $1 14
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3281:
- ClearErrors
- ReadRegStr $R1 HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallAutoDefrag
- IfErrors label_3302
- StrCmp $R1 1 0 label_3294
- Push $0
- Push $1
- StrCpy $1 6
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3302
- label_3294:
- Push $0
- Push $1
- StrCpy $1 6
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3302:
- Pop $R1
- Push $R0
- Push $R1
- DetailPrint "Collecting selections from the command line ..."
- Call :label_3308
- Goto label_3341
- label_3308:
- StrCmp $CMDLINE "" 0 label_3311
- Push ""
- Return
- label_3311:
- Push $0
- Push $1
- Push $2
- Push $3
- StrLen $1 $CMDLINE
- StrCpy $2 2
- StrCpy $3 $CMDLINE 1
- StrCmp $3 $\" label_3320
- StrCpy $3 " "
- label_3320:
- IntCmp $2 $1 label_3324 0 label_3324
- StrCpy $0 $CMDLINE 1 $2
- IntOp $2 $2 + 1
- StrCmp $3 $0 0 label_3320
- label_3324:
- IntCmp $2 $1 label_3329 0 label_3329
- StrCpy $0 $CMDLINE 1 $2
- StrCmp $0 " " 0 label_3329
- IntOp $2 $2 + 1
- Goto label_3324
- label_3329:
- StrCpy $0 $CMDLINE "" $2
- label_3330:
- StrCpy $1 $0 1 -1
- StrCmp $1 " " 0 label_3334
- StrCpy $0 $0 -1
- Goto label_3330
- label_3334:
- Pop $3
- Pop $2
- Pop $1
- Exch $0
- ; Push $0
- ; Exch
- ; Pop $0
- Return
- label_3341:
- Pop $R0
- ClearErrors
- Push $R0
- Push /FULL=
- Call :label_3347
- Goto label_3436
- label_3347:
- Exch $1
- ; Push $1
- ; Exch
- ; Pop $1
- Exch
- Exch $0
- ; Push $0
- ; Exch
- ; Pop $0
- Exch
- Push $2
- Push $3
- Push $4
- Push $5
- Push $6
- Push $7
- ClearErrors
- StrCpy $2 $1 "" 1
- StrCpy $1 $1 1
- StrLen $3 $2
- StrCpy $7 0
- label_3366:
- StrCpy $4 -1
- StrCpy $6 ""
- label_3368:
- IntOp $4 $4 + 1
- StrCpy $5 $0 1 $4
- StrCmp $5$7 0 label_3423
- StrCmp $5 "" label_3410
- StrCmp $5 $\" 0 label_3379
- StrCmp $6 "" 0 label_3376
- StrCpy $6 $\"
- Goto label_3368
- label_3376:
- StrCmp $6 $\" 0 label_3379
- StrCpy $6 ""
- Goto label_3368
- label_3379:
- StrCmp $5 ' 0 label_3386
- StrCmp $6 "" 0 label_3383
- StrCpy $6 '
- Goto label_3368
- label_3383:
- StrCmp $6 ' 0 label_3386
- StrCpy $6 ""
- Goto label_3368
- label_3386:
- StrCmp $5 ` 0 label_3393
- StrCmp $6 "" 0 label_3390
- StrCpy $6 `
- Goto label_3368
- label_3390:
- StrCmp $6 ` 0 label_3393
- StrCpy $6 ""
- Goto label_3368
- label_3393:
- StrCmp $6 $\" label_3368
- StrCmp $6 ' label_3368
- StrCmp $6 ` label_3368
- StrCmp $5 $1 0 label_3368
- StrCmp $7 0 label_3398 label_3410
- label_3398:
- IntOp $4 $4 + 1
- StrCpy $5 $0 $3 $4
- StrCmp $5 "" label_3423
- StrCmp $5 $2 0 label_3368
- IntOp $4 $4 + $3
- StrCpy $0 $0 "" $4
- label_3404:
- StrCpy $4 $0 1
- StrCmp $4 " " 0 label_3408
- StrCpy $0 $0 "" 1
- Goto label_3404
- label_3408:
- StrCpy $7 1
- Goto label_3366
- label_3410:
- StrCpy $0 $0 $4
- label_3411:
- StrCpy $4 $0 1 -1
- StrCmp $4 " " 0 label_3415
- StrCpy $0 $0 -1
- Goto label_3411
- label_3415:
- StrCpy $3 $0 1
- StrCpy $4 $0 1 -1
- StrCmp $3 $4 0 label_3425
- StrCmp $3 $\" label_3421
- StrCmp $3 ' label_3421
- StrCmp $3 ` 0 label_3425
- label_3421:
- StrCpy $0 $0 -1 1
- Goto label_3425
- label_3423:
- SetErrors
- StrCpy $0 ""
- label_3425:
- Pop $7
- Pop $6
- Pop $5
- Pop $4
- Pop $3
- Pop $2
- Pop $1
- Exch $0
- ; Push $0
- ; Exch
- ; Pop $0
- Return
- label_3436:
- Pop $R1
- IfErrors label_3439
- SetCurInstType 0
- label_3439:
- ClearErrors
- Push $R0
- Push /MICRO=
- Call :label_3347
- Pop $R1
- IfErrors label_3446
- SetCurInstType 1
- label_3446:
- ClearErrors
- Push $R0
- Push /ICONS=
- Call :label_3347
- Pop $R1
- IfErrors label_3470
- StrCmp $R1 1 0 label_3462
- Push $0
- Push $1
- StrCpy $1 9
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3470
- label_3462:
- Push $0
- Push $1
- StrCpy $1 9
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3470:
- ClearErrors
- Push $R0
- Push /BOOT=
- Call :label_3347
- Pop $R1
- IfErrors label_3494
- StrCmp $R1 1 0 label_3486
- Push $0
- Push $1
- StrCpy $1 2
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3494
- label_3486:
- Push $0
- Push $1
- StrCpy $1 2
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3494:
- ClearErrors
- Push $R0
- Push /CONSOLE=
- Call :label_3347
- Pop $R1
- IfErrors label_3534
- StrCmp $R1 1 0 label_3510
- Push $0
- Push $1
- StrCpy $1 3
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3534
- label_3510:
- Push $0
- Push $1
- StrCpy $1 3
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Push $0
- Push $1
- StrCpy $1 7
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Push $0
- Push $1
- StrCpy $1 6
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3534:
- ClearErrors
- Push $R0
- Push /GUI=
- Call :label_3347
- Pop $R1
- IfErrors label_3566
- StrCmp $R1 1 0 label_3550
- Push $0
- Push $1
- StrCpy $1 4
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3566
- label_3550:
- Push $0
- Push $1
- StrCpy $1 4
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Push $0
- Push $1
- StrCpy $1 9
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3566:
- ClearErrors
- Push $R0
- Push /HELP=
- Call :label_3347
- Pop $R1
- IfErrors label_3590
- StrCmp $R1 1 0 label_3582
- Push $0
- Push $1
- StrCpy $1 8
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3590
- label_3582:
- Push $0
- Push $1
- StrCpy $1 8
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3590:
- ClearErrors
- Push $R0
- Push /SHELLEXTENSION=
- Call :label_3347
- Pop $R1
- IfErrors label_3622
- StrCmp $R1 1 0 label_3614
- Push $0
- Push $1
- StrCpy $1 7
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Push $0
- Push $1
- StrCpy $1 3
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3622
- label_3614:
- Push $0
- Push $1
- StrCpy $1 7
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3622:
- ClearErrors
- Push $R0
- Push /DISABLE_USAGE_TRACKING=
- Call :label_3347
- Pop $R1
- IfErrors label_3646
- StrCmp $R1 1 0 label_3638
- Push $0
- Push $1
- StrCpy $1 15
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3646
- label_3638:
- Push $0
- Push $1
- StrCpy $1 15
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3646:
- ClearErrors
- Push $R0
- Push /STARTMENUICON=
- Call :label_3347
- Pop $R1
- IfErrors label_3678
- StrCmp $R1 1 0 label_3670
- Push $0
- Push $1
- StrCpy $1 10
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Push $0
- Push $1
- StrCpy $1 4
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3678
- label_3670:
- Push $0
- Push $1
- StrCpy $1 10
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3678:
- ClearErrors
- Push $R0
- Push /DESKTOPICON=
- Call :label_3347
- Pop $R1
- IfErrors label_3710
- StrCmp $R1 1 0 label_3702
- Push $0
- Push $1
- StrCpy $1 11
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Push $0
- Push $1
- StrCpy $1 4
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3710
- label_3702:
- Push $0
- Push $1
- StrCpy $1 11
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3710:
- ClearErrors
- Push $R0
- Push /QUICKLAUNCHICON=
- Call :label_3347
- Pop $R1
- IfErrors label_3742
- StrCmp $R1 1 0 label_3734
- Push $0
- Push $1
- StrCpy $1 12
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Push $0
- Push $1
- StrCpy $1 4
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3742
- label_3734:
- Push $0
- Push $1
- StrCpy $1 12
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3742:
- ClearErrors
- Push $R0
- Push /EXTRACTPE=
- Call :label_3347
- Pop $R1
- IfErrors label_3766
- StrCmp $R1 1 0 label_3758
- Push $0
- Push $1
- StrCpy $1 14
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3766
- label_3758:
- Push $0
- Push $1
- StrCpy $1 14
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3766:
- ClearErrors
- Push $R0
- Push /AUTODEFRAG=
- Call :label_3347
- Pop $R1
- IfErrors label_3798
- StrCmp $R1 1 0 label_3790
- Push $0
- Push $1
- StrCpy $1 6
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Push $0
- Push $1
- StrCpy $1 3
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Goto label_3798
- label_3790:
- Push $0
- Push $1
- StrCpy $1 6
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3798:
- SectionGetFlags 2 $_72_
- IntOp $_72_ $_72_ & 1
- IntCmp $_72_ 1 label_3815
- SectionGetFlags 3 $_72_
- IntOp $_72_ $_72_ & 1
- IntCmp $_72_ 1 label_3815
- SectionGetFlags 4 $_72_
- IntOp $_72_ $_72_ & 1
- IntCmp $_72_ 1 label_3815
- Push $0
- Push $1
- StrCpy $1 4
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_3815:
- Pop $R1
- Pop $R0
- Push $R0
- Push $R1
- StrCpy $_18_ ""
- StrCpy $_19_ ""
- ClearErrors
- ReadINIStr $R0 $_0_\user.ini Registration UserName
- IfErrors label_3825
- StrCpy $_18_ $R0
- label_3825:
- ClearErrors
- ReadINIStr $R0 $_0_\user.ini Registration Password
- IfErrors label_3829
- StrCpy $_19_ $R0
- label_3829:
- Call :label_3308
- Pop $R0
- ClearErrors
- Push $R0
- Push /NAME=
- Call :label_3347
- Pop $R1
- IfErrors label_3838
- StrCpy $_18_ $R1
- label_3838:
- ClearErrors
- Push $R0
- Push /PASSWORD=
- Call :label_3347
- Pop $R1
- IfErrors label_3845
- StrCpy $_19_ $R1
- label_3845:
- IfSilent 0 label_4137
- Push $R0
- StrCpy $_2_ 0
- StrCmp $_18_ "" 0 label_3850
- Goto label_3851
- label_3850:
- StrCmp $_19_ "" 0 label_3894
- label_3851:
- IfSilent 0 label_3892
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_3888
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... Invalid username or password!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_3888:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_3892:
- MessageBox MB_OK|MB_ICONSTOP "Invalid username or password!" /SD IDOK
- Goto label_4134
- label_3894:
- SetOutPath $PLUGINSDIR
- ClearErrors
- StrCmp $_24_ amd64 0 label_3899
- SetOverwrite on
- File zenwinx.dll
- Goto label_3903
- label_3899:
- StrCmp $_24_ ia64 0 label_3902
- File zenwinx.dll
- Goto label_3903
- label_3902:
- File zenwinx.dll
- label_3903:
- IfErrors 0 label_3947
- IfSilent 0 label_3945
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_3941
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... Unable to extract zenwinx.dll file to $PLUGINSDIR folder!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_3941:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_3945:
- MessageBox MB_OK|MB_ICONSTOP "Unable to extract zenwinx.dll file to $PLUGINSDIR folder!" /SD IDOK
- Goto label_4134
- label_3947:
- ClearErrors
- StrCmp $_24_ amd64 0 label_3951
- File udefrag-dbg.exe
- Goto label_3955
- label_3951:
- StrCmp $_24_ ia64 0 label_3954
- File udefrag-dbg.exe
- Goto label_3955
- label_3954:
- File udefrag-dbg.exe
- label_3955:
- IfErrors 0 label_3999
- IfSilent 0 label_3997
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_3993
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... Unable to extract udefrag-dbg.exe file to $PLUGINSDIR folder!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_3993:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_3997:
- MessageBox MB_OK|MB_ICONSTOP "Unable to extract udefrag-dbg.exe file to $PLUGINSDIR folder!" /SD IDOK
- Goto label_4134
- label_3999:
- ClearErrors
- ExecWait "$\"$PLUGINSDIR\udefrag-dbg.exe$\" --check $\"$_18_$\" $\"$_19_$\"" $R0
- IfErrors 0 label_4045
- IfSilent 0 label_4043
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_4039
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... Unable to execute $PLUGINSDIR\udefrag-dbg.exe program!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_4039:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_4043:
- MessageBox MB_OK|MB_ICONSTOP "Unable to execute $PLUGINSDIR\udefrag-dbg.exe program!" /SD IDOK
- Goto label_4134
- label_4045:
- StrCmp $R0 0 0 label_4048
- StrCpy $_2_ 1
- Goto label_4134
- label_4048:
- StrCmp $R0 3 0 label_4092
- IfSilent 0 label_4090
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_4086
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... Invalid username or password!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_4086:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_4090:
- MessageBox MB_OK|MB_ICONSTOP "Invalid username or password!" /SD IDOK
- Goto label_4134
- label_4092:
- IfSilent 0 label_4133
- Push $R0
- Push $R1
- Push $R2
- Push $R3
- Call :label_83
- IntOp $R1 $_22_ & 0x7F000000
- IntOp $R1 $R1 >> 24
- Call :label_83
- IntOp $R2 $_22_ & 0x00FF0000
- IntOp $R2 $R2 >> 16
- Call :label_83
- IntOp $R3 $_23_ & 0x0000FFFF
- ClearErrors
- FileOpen $R0 $TEMP\UltraDefrag_Install.log w
- IfErrors label_4129
- FileWrite $R0 $\r$\n
- FileWrite $R0 "This file contains information to debug installation problems.$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Error Message ..... Unable to check credentials!$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Command Line ...... $CMDLINE$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Installer Path .... $EXEPATH$\r$\n"
- FileWrite $R0 "Installer Type .... i386$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Windows Version ... $R1.$R2.$R3$\r$\n"
- FileWrite $R0 $\r$\n
- FileWrite $R0 "Install Dir ....... $INSTDIR$\r$\n"
- FileWrite $R0 "Output Dir ........ $OUTDIR$\r$\n"
- FileWrite $R0 "Old Install Dir ... $_0_$\r$\n"
- FileWrite $R0 "Windows Dir ....... $WINDIR$\r$\n"
- FileWrite $R0 "System Dir ........ $SYSDIR$\r$\n"
- FileWrite $R0 "Plugin Dir ........ $PLUGINSDIR$\r$\n"
- FileWrite $R0 "Temporary Dir ..... $TEMP$\r$\n"
- FileWrite $R0 $\r$\n
- FileClose $R0
- label_4129:
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
- label_4133:
- MessageBox MB_OK|MB_ICONSTOP "Unable to check credentials!" /SD IDOK
- label_4134:
- Pop $R0
- StrCmp $_2_ 0 0 label_4137
- Abort
- label_4137:
- Pop $R1
- Pop $R0
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; SetOverwrite off
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- Push $R0
- SectionGetSize 0 $R0
- IntOp $R0 $R0 / 3
- SectionSetSize 0 $R0
- Pop $R0
- Push $R0
- SectionGetSize 2 $R0
- IntOp $R0 $R0 / 3
- SectionSetSize 2 $R0
- Pop $R0
- Push $R0
- SectionGetSize 3 $R0
- IntOp $R0 $R0 / 3
- SectionSetSize 3 $R0
- Pop $R0
- Push $R0
- SectionGetSize 4 $R0
- IntOp $R0 $R0 / 3
- SectionSetSize 4 $R0
- Pop $R0
- Pop $R1
- Pop $R0
- FunctionEnd
- Function .onVerifyInstDir
- StrCpy $_1_ 1
- IfFileExists $INSTDIR\lua5.1a_gui.exe label_4186
- Push $R1
- Push $R2
- FindFirst $R1 $R2 $INSTDIR\*
- StrCmp $R1 "" label_4182
- StrCmp $R2 "" label_4181
- label_4174:
- StrCmp $R2 . label_4177
- StrCmp $R2 .. label_4177
- Goto label_4181
- label_4177:
- FindNext $R1 $R2
- label_4178:
- Goto label_4174
- Goto label_4178
- Goto label_4181
- label_4181:
- FindClose $R1
- label_4182:
- StrCmp $R2 "" label_4184
- StrCpy $_1_ 0
- label_4184:
- Pop $R2
- Pop $R1
- label_4186:
- StrCmp $_1_ 1 label_4188
- Abort
- label_4188:
- FunctionEnd
- Function .onSelChange
- SectionGetFlags 2 $_72_
- IntOp $_72_ $_72_ & 1
- IntCmp $_72_ 1 label_4206
- SectionGetFlags 3 $_72_
- IntOp $_72_ $_72_ & 1
- IntCmp $_72_ 1 label_4206
- SectionGetFlags 4 $_72_
- IntOp $_72_ $_72_ & 1
- IntCmp $_72_ 1 label_4206
- Push $0
- Push $1
- StrCpy $1 4
- SectionGetFlags $1 $0
- IntOp $0 $0 | 1
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- label_4206:
- SectionGetFlags 4 $_72_
- IntOp $_72_ $_72_ & 1
- IntCmp $_72_ 1 label_4250
- Push $0
- Push $1
- StrCpy $1 9
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Push $R0
- Push $R1
- StrCpy $R1 9
- SectionGetFlags $R1 $R0
- IntOp $R0 $R0 | 16
- SectionSetFlags $R1 $R0
- Pop $R1
- Pop $R0
- Push $R0
- Push $R1
- StrCpy $R1 10
- SectionGetFlags $R1 $R0
- IntOp $R0 $R0 | 16
- SectionSetFlags $R1 $R0
- Pop $R1
- Pop $R0
- Push $R0
- Push $R1
- StrCpy $R1 11
- SectionGetFlags $R1 $R0
- IntOp $R0 $R0 | 16
- SectionSetFlags $R1 $R0
- Pop $R1
- Pop $R0
- Push $R0
- Push $R1
- StrCpy $R1 12
- SectionGetFlags $R1 $R0
- IntOp $R0 $R0 | 16
- SectionSetFlags $R1 $R0
- Pop $R1
- Pop $R0
- Goto label_4297
- label_4250:
- SectionGetFlags 9 $_72_
- IntOp $_72_ $_72_ & 16
- IntCmp $_72_ 16 0 label_4297 label_4297
- Push $R0
- Push $R1
- Push $R2
- StrCpy $R2 9
- SectionGetFlags $R2 $R0
- IntOp $R1 16 ~ ; ^ 0xFFFFFFFF
- IntOp $R0 $R0 & $R1
- SectionSetFlags $R2 $R0
- Pop $R2
- Pop $R1
- Pop $R0
- Push $R0
- Push $R1
- Push $R2
- StrCpy $R2 10
- SectionGetFlags $R2 $R0
- IntOp $R1 16 ~ ; ^ 0xFFFFFFFF
- IntOp $R0 $R0 & $R1
- SectionSetFlags $R2 $R0
- Pop $R2
- Pop $R1
- Pop $R0
- Push $R0
- Push $R1
- Push $R2
- StrCpy $R2 11
- SectionGetFlags $R2 $R0
- IntOp $R1 16 ~ ; ^ 0xFFFFFFFF
- IntOp $R0 $R0 & $R1
- SectionSetFlags $R2 $R0
- Pop $R2
- Pop $R1
- Pop $R0
- Push $R0
- Push $R1
- Push $R2
- StrCpy $R2 12
- SectionGetFlags $R2 $R0
- IntOp $R1 16 ~ ; ^ 0xFFFFFFFF
- IntOp $R0 $R0 & $R1
- SectionSetFlags $R2 $R0
- Pop $R2
- Pop $R1
- Pop $R0
- label_4297:
- SectionGetFlags 3 $_72_
- IntOp $_72_ $_72_ & 1
- IntCmp $_72_ 1 label_4333
- Push $0
- Push $1
- StrCpy $1 7
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Push $0
- Push $1
- StrCpy $1 6
- SectionGetFlags $1 $0
- IntOp $0 $0 & 0xFFFFFFFE
- SectionSetFlags $1 $0
- Pop $1
- Pop $0
- Push $R0
- Push $R1
- StrCpy $R1 7
- SectionGetFlags $R1 $R0
- IntOp $R0 $R0 | 16
- SectionSetFlags $R1 $R0
- Pop $R1
- Pop $R0
- Push $R0
- Push $R1
- StrCpy $R1 6
- SectionGetFlags $R1 $R0
- IntOp $R0 $R0 | 16
- SectionSetFlags $R1 $R0
- Pop $R1
- Pop $R0
- Goto label_4361
- label_4333:
- SectionGetFlags 7 $_72_
- IntOp $_72_ $_72_ & 16
- IntCmp $_72_ 16 0 label_4347 label_4347
- Push $R0
- Push $R1
- Push $R2
- StrCpy $R2 7
- SectionGetFlags $R2 $R0
- IntOp $R1 16 ~ ; ^ 0xFFFFFFFF
- IntOp $R0 $R0 & $R1
- SectionSetFlags $R2 $R0
- Pop $R2
- Pop $R1
- Pop $R0
- label_4347:
- SectionGetFlags 6 $_72_
- IntOp $_72_ $_72_ & 16
- IntCmp $_72_ 16 0 label_4361 label_4361
- Push $R0
- Push $R1
- Push $R2
- StrCpy $R2 6
- SectionGetFlags $R2 $R0
- IntOp $R1 16 ~ ; ^ 0xFFFFFFFF
- IntOp $R0 $R0 & $R1
- SectionSetFlags $R2 $R0
- Pop $R2
- Pop $R1
- Pop $R0
- label_4361:
- FunctionEnd
- Function func_4362
- Push $R0
- Push $R1
- StrCpy $_4_ 1
- StrCpy $_5_ 1
- ClearErrors
- ReadRegStr $R0 HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::LaunchTheProgram
- IfErrors label_4372
- StrCpy $_4_ $R0
- StrCmp $_4_ 0 0 label_4372
- SendMessage $_64_ 0x00F1 0 0
- label_4372:
- ClearErrors
- ReadRegStr $R0 HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::ShowPortableEdition
- IfErrors label_4378
- StrCpy $_5_ $R0
- StrCmp $_5_ 0 0 label_4378
- SendMessage $_65_ 0x00F1 0 0
- label_4378:
- SectionGetFlags 14 $R0
- IntOp $R1 $R0 & 1
- StrCmp $R1 0 0 label_4383
- SendMessage $_65_ 0x00F1 0 0
- ShowWindow $_65_ ${SW_HIDE}
- label_4383:
- System::Call user32::SetFocus(i$_15_)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push user32::SetFocus(i$_15_)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- Pop $R1
- Pop $R0
- FunctionEnd
- Function func_4391
- Push $R0
- Push $R1
- SendMessage $_64_ 0x00F0 0 0 $R0
- StrCmp $R0 1 0 label_4397
- StrCpy $_4_ 1
- Goto label_4398
- label_4397:
- StrCpy $_4_ 0
- label_4398:
- SectionGetFlags 14 $R0
- IntOp $R1 $R0 & 1
- StrCmp $R1 1 0 label_4406
- SendMessage $_65_ 0x00F0 0 0 $R0
- StrCmp $R0 1 0 label_4405
- StrCpy $_5_ 1
- Goto label_4406
- label_4405:
- StrCpy $_5_ 0
- label_4406:
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::LaunchTheProgram $_4_
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::ShowPortableEdition $_5_
- Pop $R1
- Pop $R0
- FunctionEnd
- Function func_4411
- ExecWait "explorer /select,$\"$INSTDIR\UltraDefrag 8.0.0 Portable Edition$\""
- FunctionEnd
- Function .onInstSuccess
- Push $0
- Push $1
- DetailPrint "Saving selections to registry ..."
- SectionGetFlags 2 $0
- IntOp $1 $0 & 1
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallBoot $1
- StrCmp $1 0 0 label_4441
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Removing boot time interface..."
- RMDir /r $INSTDIR\man
- ExecWait "$\"$SYSDIR\bootexctrl.exe$\" /u /s defrag_native"
- Delete $SYSDIR\boot-config.cmd
- Delete $SYSDIR\boot-off.cmd
- Delete $SYSDIR\boot-on.cmd
- Delete $SYSDIR\bootexctrl.exe
- Delete $SYSDIR\defrag_native.exe
- Delete $SYSDIR\ud-boot-time.cmd
- Delete $SYSDIR\ud-boot-time.cmd.old
- Delete $SYSDIR\ud-boot-time.ini
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- label_4441:
- SectionGetFlags 3 $0
- IntOp $1 $0 & 1
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallConsole $1
- StrCmp $1 0 0 label_4457
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Removing console interface..."
- Delete $SYSDIR\udefrag.exe
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- label_4457:
- SectionGetFlags 4 $0
- IntOp $1 $0 & 1
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallGUI $1
- StrCmp $1 0 0 label_4494
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Removing graphical interface..."
- RMDir /r $INSTDIR\locale
- RMDir /r $INSTDIR\po
- Delete $INSTDIR\ultradefrag.exe
- Push $R0
- DetailPrint "Deregistering file extensions..."
- ClearErrors
- ReadRegStr $R0 HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Registered.lua
- IfErrors label_4479
- StrCmp $R0 1 0 label_4479
- DeleteRegKey HKCR Lua.Script
- DeleteRegKey HKCR .lua
- DeleteRegValue HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Registered.lua
- label_4479:
- ClearErrors
- ReadRegStr $R0 HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Registered.lua.edit
- IfErrors label_4488
- StrCmp $R0 1 0 label_4488
- ClearErrors
- ReadRegStr $R0 HKCR .lua ""
- IfErrors label_4488
- DeleteRegKey HKCR $R0\shell\Edit
- DeleteRegValue HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Registered.lua.edit
- label_4488:
- Pop $R0
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- label_4494:
- SectionGetFlags 8 $0
- IntOp $1 $0 & 1
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallHelp $1
- StrCmp $1 0 0 label_4510
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Removing documentation..."
- RMDir /r $INSTDIR\handbook
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- label_4510:
- SectionGetFlags 7 $0
- IntOp $1 $0 & 1
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallShellHandler $1
- StrCmp $1 0 0 label_4540
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Removing context menu handler..."
- Delete $INSTDIR\icons\shellex.ico
- Delete $INSTDIR\icons\shellex-folder.ico
- RMDir $INSTDIR\icons
- DeleteRegKey HKCR Drive\shell\udefrag.W7menu
- DeleteRegKey HKCR Drive\udefragW7menu
- DeleteRegKey HKCR Directory\shell\udefrag.W7menu
- DeleteRegKey HKCR Directory\udefragW7menu
- DeleteRegKey HKCR Drive\shell\udefrag-drive-analyze
- DeleteRegKey HKCR Drive\shell\udefrag-drive-defragment
- DeleteRegKey HKCR Drive\shell\udefrag-drive-full-optimization
- DeleteRegKey HKCR Drive\shell\udefrag-drive-quick-optimization
- DeleteRegKey HKCR Drive\shell\udefrag-folder
- DeleteRegKey HKCR Directory\shell\udefrag
- DeleteRegKey HKCR Directory\shell\udefrag-folder
- DeleteRegKey HKCR *\shell\udefrag
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- label_4540:
- SectionGetFlags 15 $0
- IntOp $1 $0 & 1
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallUsageTracking $1
- StrCmp $1 0 0 label_4552
- Push $0
- StrCpy $0 UD_DISABLE_USAGE_TRACKING
- DeleteRegValue HKCU Environment $0
- DeleteRegValue HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" $0
- DeleteRegValue HKLM "SYSTEM\ControlSet001\Control\Session Manager\Environment" $0
- DeleteRegValue HKLM "SYSTEM\ControlSet002\Control\Session Manager\Environment" $0
- SendMessage 0xFFFF 0x001A 0 STR:Environment /TIMEOUT=5000
- Pop $0
- label_4552:
- SectionGetFlags 10 $0
- IntOp $1 $0 & 1
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallStartMenuIcon $1
- StrCmp $1 0 0 label_4569
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Removing start menu icon..."
- SetShellVarContext all
- Delete $SMPROGRAMS\UltraDefrag.lnk
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- label_4569:
- SectionGetFlags 11 $0
- IntOp $1 $0 & 1
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallDesktopIcon $1
- StrCmp $1 0 0 label_4586
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Removing desktop icon..."
- SetShellVarContext all
- Delete $DESKTOP\UltraDefrag.lnk
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- label_4586:
- SectionGetFlags 12 $0
- IntOp $1 $0 & 1
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallQuickLaunchIcon $1
- StrCmp $1 0 0 label_4603
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Removing quick launch icon..."
- SetShellVarContext all
- Delete $APPDATA\UltraDefrag.lnk
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- label_4603:
- SectionGetFlags 14 $0
- IntOp $1 $0 & 1
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallPortableEdition $1
- StrCmp $1 0 0 label_4609
- DetailPrint "Removing portable edition..."
- RMDir /r "$INSTDIR\UltraDefrag 8.0.0 Portable Edition"
- label_4609:
- SectionGetFlags 6 $0
- IntOp $1 $0 & 1
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::InstallAutoDefrag $1
- StrCmp $1 0 0 label_4681
- Push $R0
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- DetailPrint "Removing automatic defragmentation..."
- Call :label_83
- IntOp $_72_ $_22_ & 0x7FFFFFFF
- IntCmp $_72_ 0x06000000 0 label_4625
- StrCpy $R0 UltraDefrag\AutoDefrag
- Goto label_4626
- label_4625:
- StrCpy $R0 AutoDefrag
- label_4626:
- nsExec::ExecToLog /OEM "schtasks /Delete /F /TN $R0"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsExec.dll
- ; SetDetailsPrint lastused
- ; Push "schtasks /Delete /F /TN $R0"
- ; Push /OEM
- ; CallInstDLL $PLUGINSDIR\nsExec.dll ExecToLog
- Pop $_3_
- StrCmp $_3_ error 0 label_4635
- DetailPrint "Unable to execute schtasks command!"
- label_4635:
- StrCmp $_3_ 0 label_4637
- DetailPrint "Cannot disable automatic defragmentation!"
- label_4637:
- Call :label_83
- IntOp $_72_ $_22_ & 0x7FFFFFFF
- IntCmp $_72_ 0x06000000 0 label_4645
- RMDir $SYSDIR\Tasks\UltraDefrag
- SetRegView 64
- DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\UltraDefrag"
- SetRegView 32
- DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\UltraDefrag"
- label_4645:
- Delete $INSTDIR\task-launcher.exe
- RMDir /r $INSTDIR\tasks
- Call :label_83
- IntOp $_72_ $_22_ & 0x7FFFFFFF
- IntCmp $_72_ 0x06000000 0 label_4675
- ClearErrors
- ReadRegStr $R0 HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::DisableScheduledMicrosoftDefrag
- IfErrors label_4675
- StrCmp $R0 1 0 label_4675
- DetailPrint "Enabling Microsoft\Windows\Defrag\ScheduledDefrag task..."
- Push $R0
- nsExec::ExecToLog /OEM "schtasks /Change /TN Microsoft\Windows\Defrag\ScheduledDefrag /enable"
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\nsExec.dll
- ; SetDetailsPrint lastused
- ; Push "schtasks /Change /TN Microsoft\Windows\Defrag\ScheduledDefrag /enable"
- ; Push /OEM
- ; CallInstDLL $PLUGINSDIR\nsExec.dll ExecToLog
- Pop $_3_
- StrCmp $_3_ error 0 label_4665
- DetailPrint "Unable to execute schtasks command!"
- label_4665:
- StrCmp $_3_ 0 label_4668
- DetailPrint "Cannot enable the task!"
- Goto label_4674
- label_4668:
- DetailPrint "The task has been enabled."
- StrCmp enable enable 0 label_4672
- StrCpy $R0 0
- Goto label_4673
- label_4672:
- StrCpy $R0 1
- label_4673:
- WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\UltraDefrag Var::DisableScheduledMicrosoftDefrag $R0
- label_4674:
- Pop $R0
- label_4675:
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- Pop $R0
- label_4681:
- Pop $1
- Pop $0
- System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i0)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- WriteRegStr HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" UD_INSTALL_DIR $INSTDIR
- SendMessage 0xFFFF 0x001A 0 STR:Environment /TIMEOUT=5000
- System::Call kernel32::Wow64EnableWow64FsRedirection(i1)
- ; Call Initialize_____Plugins
- ; File $PLUGINSDIR\System.dll
- ; SetDetailsPrint lastused
- ; Push kernel32::Wow64EnableWow64FsRedirection(i1)
- ; CallInstDLL $PLUGINSDIR\System.dll Call
- FunctionEnd
- Function .onMouseOverSection
- StrCmp $0 -1 0 label_4701
- SendMessage $_50_ ${WM_SETTEXT} 0 STR:
- EnableWindow $_50_ 0
- SendMessage $_50_ ${WM_SETTEXT} 0 STR:$_49_
- Goto label_4770
- label_4701:
- StrCmp $0 0 0 label_4706
- SendMessage $_50_ ${WM_SETTEXT} 0 STR:
- EnableWindow $_50_ 1
- SendMessage $_50_ ${WM_SETTEXT} 0 "STR:Install UltraDefrag core files (required)."
- Goto label_4770
- label_4706:
- StrCmp $0 1 0 label_4711
- SendMessage $_50_ ${WM_SETTEXT} 0 STR:
- EnableWindow $_50_ 1
- SendMessage $_50_ ${WM_SETTEXT} 0 "STR:Select at least one interface to be installed."
- Goto label_4770
- label_4711:
- StrCmp $0 2 0 label_4716
- SendMessage $_50_ ${WM_SETTEXT} 0 STR:
- EnableWindow $_50_ 1
- SendMessage $_50_ ${WM_SETTEXT} 0 "STR:The boot time interface can defragment files which are usually locked by Windows."
- Goto label_4770
- label_4716:
- StrCmp $0 3 0 label_4721
- SendMessage $_50_ ${WM_SETTEXT} 0 STR:
- EnableWindow $_50_ 1
- SendMessage $_50_ ${WM_SETTEXT} 0 "STR:The command line interface can be used for automation."
- Goto label_4770
- label_4721:
- StrCmp $0 4 0 label_4726
- SendMessage $_50_ ${WM_SETTEXT} 0 STR:
- EnableWindow $_50_ 1
- SendMessage $_50_ ${WM_SETTEXT} 0 "STR:The traditional graphical interface displays visual representation of disk clusters."
- Goto label_4770
- label_4726:
- StrCmp $0 6 0 label_4731
- SendMessage $_50_ ${WM_SETTEXT} 0 STR:
- EnableWindow $_50_ 1
- SendMessage $_50_ ${WM_SETTEXT} 0 "STR:Defragment disks automatically."
- Goto label_4770
- label_4731:
- StrCmp $0 7 0 label_4736
- SendMessage $_50_ ${WM_SETTEXT} 0 STR:
- EnableWindow $_50_ 1
- SendMessage $_50_ ${WM_SETTEXT} 0 "STR:Defragment individual files and folders directly from Windows Explorer."
- Goto label_4770
- label_4736:
- StrCmp $0 8 0 label_4741
- SendMessage $_50_ ${WM_SETTEXT} 0 STR:
- EnableWindow $_50_ 1
- SendMessage $_50_ ${WM_SETTEXT} 0 "STR:Install UltraDefrag Handbook."
- Goto label_4770
- label_4741:
- StrCmp $0 9 0 label_4746
- SendMessage $_50_ ${WM_SETTEXT} 0 STR:
- EnableWindow $_50_ 1
- SendMessage $_50_ ${WM_SETTEXT} 0 "STR:Add icons for easy access."
- Goto label_4770
- label_4746:
- StrCmp $0 10 0 label_4751
- SendMessage $_50_ ${WM_SETTEXT} 0 STR:
- EnableWindow $_50_ 1
- SendMessage $_50_ ${WM_SETTEXT} 0 "STR:Add an icon to your start menu."
- Goto label_4770
- label_4751:
- StrCmp $0 11 0 label_4756
- SendMessage $_50_ ${WM_SETTEXT} 0 STR:
- EnableWindow $_50_ 1
- SendMessage $_50_ ${WM_SETTEXT} 0 "STR:Add an icon to your desktop."
- Goto label_4770
- label_4756:
- StrCmp $0 12 0 label_4761
- SendMessage $_50_ ${WM_SETTEXT} 0 STR:
- EnableWindow $_50_ 1
- SendMessage $_50_ ${WM_SETTEXT} 0 "STR:Add an icon to your quick launch toolbar."
- Goto label_4770
- label_4761:
- StrCmp $0 14 0 label_4766
- SendMessage $_50_ ${WM_SETTEXT} 0 STR:
- EnableWindow $_50_ 1
- SendMessage $_50_ ${WM_SETTEXT} 0 "STR:Extract portable edition of UltraDefrag."
- Goto label_4770
- label_4766:
- StrCmp $0 15 0 label_4770
- SendMessage $_50_ ${WM_SETTEXT} 0 STR:
- EnableWindow $_50_ 1
- SendMessage $_50_ ${WM_SETTEXT} 0 "STR:Disable web based usage tracking."
- label_4770:
- FunctionEnd
- /*
- Function Initialize_____Plugins
- SetDetailsPrint none
- StrCmp $PLUGINSDIR "" 0 label_4781
- Push $0
- SetErrors
- GetTempFileName $0
- Delete $0
- CreateDirectory $0
- IfErrors label_4782
- StrCpy $PLUGINSDIR $0
- Pop $0
- label_4781:
- Return
- label_4782:
- MessageBox MB_OK|MB_ICONSTOP "Error! Can't initialize plug-ins directory. Please try again later." /SD IDOK
- Quit
- FunctionEnd
- */
- ; --------------------
- ; UNREFERENCED STRINGS:
- /*
- 38 CommonFilesDir
- 53 "$PROGRAMFILES\Common Files"
- 70 $COMMONFILES
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement