JustPaste.it

; NSIS script (UTF-8) NSIS-3 Unicode BadCmd=11
; Install

Unicode true
SetCompressor /SOLID lzma
SetCompressorDictSize 8


OutFile Smartcopy2.exe
!include WinMessages.nsh

InstallDirRegKey HKLM Software\Smartcopy ""
LicenseBkColor /windows


; --------------------
; LANG TABLES: 1
; LANG STRINGS: 82

Name Smartcopy
BrandingText "Smartcopy"

; LANG: 1033
LangString LSTR_0 1033 "Smartcopy"
LangString LSTR_1 1033 "Smartcopy"
LangString LSTR_2 1033 Smartcopy
LangString LSTR_3 1033 "Space available: "
LangString LSTR_4 1033 "Space required: "
LangString LSTR_5 1033 "Can't write: "
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_19 1033 "ExecShell: "
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 0
LangString LSTR_38 1033 "MS Shell Dlg"
LangString LSTR_39 1033 "If you accept the terms of the agreement, click I Agree to continue. You must accept the agreement to install $(LSTR_81)."
LangString LSTR_40 1033 "License Agreement"
LangString LSTR_41 1033 "Please review the license terms before installing $(LSTR_81)."
LangString LSTR_42 1033 "Press Page Down to see the rest of the agreement."
LangString LSTR_43 1033 "Choose Components"
LangString LSTR_44 1033 "Choose which features of $(LSTR_81) you want to install."
LangString LSTR_45 1033 Description
LangString LSTR_46 1033 "Position your mouse over a component to see its description."
LangString LSTR_47 1033 "Choose Install Location"
LangString LSTR_48 1033 "Choose the folder in which to install $(LSTR_81)."
LangString LSTR_49 1033 Installing
LangString LSTR_50 1033 "Please wait while $(LSTR_81) is being installed."
LangString LSTR_51 1033 "Installation Complete"
LangString LSTR_52 1033 "Setup was completed successfully."
LangString LSTR_53 1033 "Installation Aborted"
LangString LSTR_54 1033 "Setup was not completed successfully."
LangString LSTR_55 1033 &Finish
LangString LSTR_56 1033 "Completing $(LSTR_81) Setup"
LangString LSTR_57 1033 "$(LSTR_81) has been installed on your computer.$\r$\n$\r$\nClick Finish to close Setup."
LangString LSTR_58 1033 "&Run $(LSTR_81)"
LangString LSTR_59 1033 8
LangString LSTR_60 1033 "Are you sure you want to quit $(LSTR_2) Setup?"
LangString LSTR_61 1033 Custom
LangString LSTR_62 1033 Cancel
LangString LSTR_63 1033 "< &Back"
LangString LSTR_64 1033 "&Next >"
LangString LSTR_65 1033 "Click Next to continue."
LangString LSTR_66 1033 "I &Agree"
LangString LSTR_67 1033 "Check the components you want to install and uncheck the components you don't want to install. $_CLICK"
LangString LSTR_68 1033 "Select the type of install:"
LangString LSTR_69 1033 "Or, select the optional components you wish to install:"
LangString LSTR_70 1033 "Select components to install:"
LangString LSTR_71 1033 "Setup will install $(LSTR_81) in the following folder. To install in a different folder, click Browse and select another folder. $_CLICK"
LangString LSTR_72 1033 "Destination Folder"
LangString LSTR_73 1033 B&rowse...
LangString LSTR_74 1033 "Select the folder to install $(LSTR_81) in:"
LangString LSTR_75 1033 &Install
LangString LSTR_76 1033 "Click Install to start the installation."
LangString LSTR_77 1033 "Show &details"
LangString LSTR_78 1033 Completed
LangString LSTR_79 1033 " "
LangString LSTR_80 1033 &Close
LangString LSTR_81 1033 Smartcopy


; --------------------
; VARIABLES: 60

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_


InstType Full
InstType Lite
InstType Minimal
InstType $(LSTR_61) ; Custom
InstallDir $PROGRAMFILES\Smartcopy
; install_directory_auto_append = Smartcopy
; wininit = $WINDIR\wininit.ini


; --------------------
; PAGES: 8

; Page 0
Page custom func_24 func_119 /ENABLECANCEL

 

; Page 5
Page instfiles func_160 func_163 func_169
CompletedText $(LSTR_78) ; Completed
DetailsButtonText $(LSTR_77) ; "Show &details"

/*
; Page 6
Page COMPLETED
*/

 


; --------------------
; SECTIONS: 31
; COMMANDS: 2746

Function func_0
InitPluginsDir
; Call Initialize_____Plugins
; SetDetailsPrint lastused
File $PLUGINSDIR\modern-wizard.bmp
FunctionEnd


Function func_4
LockWindow on
ShowWindow $_6_ ${SW_HIDE}
ShowWindow $_5_ ${SW_HIDE}
ShowWindow $_0_ ${SW_HIDE}
ShowWindow $_2_ ${SW_HIDE}
ShowWindow $_4_ ${SW_HIDE}
ShowWindow $_7_ ${SW_HIDE}
ShowWindow $_8_ ${SW_SHOWNORMAL}
LockWindow off
FunctionEnd


Function func_14
LockWindow on
ShowWindow $_6_ ${SW_SHOWNORMAL}
ShowWindow $_5_ ${SW_SHOWNORMAL}
ShowWindow $_0_ ${SW_SHOWNORMAL}
ShowWindow $_2_ ${SW_SHOWNORMAL}
ShowWindow $_4_ ${SW_SHOWNORMAL}
ShowWindow $_7_ ${SW_SHOWNORMAL}
ShowWindow $_8_ ${SW_HIDE}
LockWindow off
FunctionEnd


Function func_24 ; Page 0, Pre
nsDialogs::Create 1044
; Call Initialize_____Plugins
; SetOverwrite off
; File $PLUGINSDIR\nsDialogs.dll
; SetDetailsPrint lastused
; Push 1044
; CallInstDLL $PLUGINSDIR\nsDialogs.dll Create
Pop $_12_
nsDialogs::SetRTL $(LSTR_37) ; 0
; Call Initialize_____Plugins
; AllowSkipFiles off
; File $PLUGINSDIR\nsDialogs.dll
; SetDetailsPrint lastused
; Push $(LSTR_37) ; 0
; CallInstDLL $PLUGINSDIR\nsDialogs.dll SetRTL
SetCtlColors $_12_ "" 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 $_13_
Push $0
Push $R0
Push $PLUGINSDIR\modern-wizard.bmp
StrCpy $R0 $_13_
System::Call user32::GetClientRect(pR0,@r0)
; Call Initialize_____Plugins
; AllowSkipFiles on
; File $PLUGINSDIR\System.dll
; SetDetailsPrint lastused
; Push user32::GetClientRect(pR0,@r0)
; CallInstDLL $PLUGINSDIR\System.dll Call
System::Call *$0(i,i,i.r0,i.s)
; Call Initialize_____Plugins
; AllowSkipFiles off
; File $PLUGINSDIR\System.dll
; SetDetailsPrint lastused
; Push *$0(i,i,i.r0,i.s)
; CallInstDLL $PLUGINSDIR\System.dll Call
Exch
System::Call "user32::LoadImage(p0, ts, i0, ir0, is, i0x0010) p.r0"
; Call Initialize_____Plugins
; File $PLUGINSDIR\System.dll
; SetDetailsPrint lastused
; Push "user32::LoadImage(p0, ts, i0, ir0, is, i0x0010) p.r0"
; CallInstDLL $PLUGINSDIR\System.dll Call
SendMessage $R0 0x0172 0 $0
Pop $R0
Exch $0
; Push $0
; Exch
; Pop $0
Pop $_14_
nsDialogs::CreateControl STATIC 0x40000000|0x10000000|0x04000000|0x00000100 0x00000020 120u 10u 195u 28u "Welcome to the Smartcopy Wizard"
; Call Initialize_____Plugins
; File $PLUGINSDIR\nsDialogs.dll
; SetDetailsPrint lastused
; Push "Welcome to the Smartcopy Wizard"
; Push 28u
; Push 195u
; Push 10u
; Push 120u
; Push 0x00000020
; Push 0x40000000|0x10000000|0x04000000|0x00000100
; Push STATIC
; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
Pop $_15_
SetCtlColors $_15_ 0x000000 0xFFFFFF
CreateFont $_16_ $(LSTR_38) 12 700 ; "MS Shell Dlg"
SendMessage $_15_ ${WM_SETFONT} $_16_ 0
nsDialogs::CreateControl STATIC 0x40000000|0x10000000|0x04000000|0x00000100 0x00000020 120u 45u 195u 130u "This wizard will guide you through the installation of Smartcopy (Dictionary Hachette Oxford).$\r$\n$\r$\n$_CLICK"
; Call Initialize_____Plugins
; File $PLUGINSDIR\nsDialogs.dll
; SetDetailsPrint lastused
; Push "This wizard will guide you through the installation of Smartcopy.$\r$\n$\r$\n$_CLICK"
; Push 130u
; Push 195u
; Push 45u
; Push 120u
; Push 0x00000020
; Push 0x40000000|0x10000000|0x04000000|0x00000100
; Push STATIC
; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
Pop $_17_
SetCtlColors $_17_ 0x000000 0xFFFFFF
Call func_4
nsDialogs::Show
; Call Initialize_____Plugins
; File $PLUGINSDIR\nsDialogs.dll
; SetDetailsPrint lastused
; CallInstDLL $PLUGINSDIR\nsDialogs.dll Show
Call func_14
IntCmp $_14_ 0 label_118
System::Call gdi32::DeleteObject(ps) $_14_
; Call Initialize_____Plugins
; File $PLUGINSDIR\System.dll
; SetDetailsPrint lastused
; Push $_14_
; Push gdi32::DeleteObject(ps)
; CallInstDLL $PLUGINSDIR\System.dll Call
label_118:
FunctionEnd


Function func_119 ; Page 0, Leave
FunctionEnd


Function func_120 ; Page 1, Pre
SendMessage $_0_ ${WM_SETTEXT} 0 STR:$(LSTR_40) ; "License Agreement"
SendMessage $_2_ ${WM_SETTEXT} 0 STR:$(LSTR_41) ; "Please review the license terms before installing $(LSTR_81)." Smartcopy
FunctionEnd


Function func_123 ; Page 1, Show
FindWindow $_18_ "#32770" "" $HWNDPARENT
GetDlgItem $_19_ $_18_ 1040
GetDlgItem $_20_ $_18_ 1006
GetDlgItem $_21_ $_18_ 1000
SendMessage $_19_ ${WM_SETTEXT} 0 STR:$(LSTR_42) ; "Press Page Down to see the rest of the agreement."
FunctionEnd


Function func_129 ; Page 1, Leave
FunctionEnd


Function func_130 ; Page 3, Pre
SendMessage $_0_ ${WM_SETTEXT} 0 STR:$(LSTR_43) ; "Choose Components"
SendMessage $_2_ ${WM_SETTEXT} 0 STR:$(LSTR_44) ; "Choose which features of $(LSTR_81) you want to install." Smartcopy
FunctionEnd


Function func_133 ; Page 3, Show
FindWindow $_22_ "#32770" "" $HWNDPARENT
GetDlgItem $_23_ $_22_ 1006
GetDlgItem $_24_ $_22_ 1021
GetDlgItem $_25_ $_22_ 1022
GetDlgItem $_26_ $_22_ 1017
GetDlgItem $_27_ $_22_ 1032
GetDlgItem $_28_ $_22_ 1042
GetDlgItem $_30_ $_22_ 1043
GetDlgItem $_31_ $_22_ 1023
SendMessage $_28_ ${WM_SETTEXT} 0 STR:$(LSTR_45) ; Description
EnableWindow $_30_ 0
SendMessage $_30_ ${WM_SETTEXT} 0 STR:$(LSTR_46) ; "Position your mouse over a component to see its description."
StrCpy $_29_ $(LSTR_46) ; "Position your mouse over a component to see its description."
FunctionEnd


Function func_147 ; Page 3, Leave
FunctionEnd


Function func_148 ; Page 4, Pre
SendMessage $_0_ ${WM_SETTEXT} 0 STR:$(LSTR_47) ; "Choose Install Location"
SendMessage $_2_ ${WM_SETTEXT} 0 STR:$(LSTR_48) ; "Choose the folder in which to install $(LSTR_81)." Smartcopy
FunctionEnd


Function func_151 ; Page 4, Show
FindWindow $_32_ "#32770" "" $HWNDPARENT
GetDlgItem $_33_ $_32_ 1006
GetDlgItem $_34_ $_32_ 1020
GetDlgItem $_35_ $_32_ 1019
GetDlgItem $_36_ $_32_ 1001
GetDlgItem $_37_ $_32_ 1023
GetDlgItem $_38_ $_32_ 1024
FunctionEnd


Function func_159 ; Page 4, Leave
FunctionEnd


Function func_160 ; Page 5, Pre
SendMessage $_0_ ${WM_SETTEXT} 0 STR:$(LSTR_49) ; Installing
SendMessage $_2_ ${WM_SETTEXT} 0 STR:$(LSTR_50) ; "Please wait while $(LSTR_81) is being installed." Smartcopy
FunctionEnd


Function func_163 ; Page 5, Show
FindWindow $_39_ "#32770" "" $HWNDPARENT
GetDlgItem $_40_ $_39_ 1006
GetDlgItem $_41_ $_39_ 1004
GetDlgItem $_42_ $_39_ 1027
GetDlgItem $_43_ $_39_ 1016
FunctionEnd


Function func_169 ; Page 5, Leave
IfAbort label_173
SendMessage $_0_ ${WM_SETTEXT} 0 STR:$(LSTR_51) ; "Installation Complete"
SendMessage $_2_ ${WM_SETTEXT} 0 STR:$(LSTR_52) ; "Setup was completed successfully."
Goto label_175
label_173:
SendMessage $_0_ ${WM_SETTEXT} 0 STR:$(LSTR_53) ; "Installation Aborted"
SendMessage $_2_ ${WM_SETTEXT} 0 STR:$(LSTR_54) ; "Setup was not completed successfully."
label_175:
IfAbort label_176
label_176:
FunctionEnd


Function func_177
InitPluginsDir
; Call Initialize_____Plugins
; SetDetailsPrint lastused
SetOverwrite on
AllowSkipFiles on
File $PLUGINSDIR\modern-wizard.bmp
Call func_0
SetAutoClose true
Return

ExecShell open http://Smartcopy.sf.net/ ; "open http://Smartcopy.sf.net/"
FunctionEnd


Function func_185 ; Page 7, Pre
SendMessage $_9_ ${WM_SETTEXT} 0 STR:$(LSTR_55) ; &Finish
nsDialogs::Create 1044
; Call Initialize_____Plugins
; SetOverwrite off
; AllowSkipFiles off
; File $PLUGINSDIR\nsDialogs.dll
; SetDetailsPrint lastused
; Push 1044
; CallInstDLL $PLUGINSDIR\nsDialogs.dll Create
Pop $_44_
nsDialogs::SetRTL $(LSTR_37) ; 0
; Call Initialize_____Plugins
; File $PLUGINSDIR\nsDialogs.dll
; SetDetailsPrint lastused
; Push $(LSTR_37) ; 0
; CallInstDLL $PLUGINSDIR\nsDialogs.dll SetRTL
SetCtlColors $_44_ "" 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 $_45_
Push $0
Push $R0
Push $PLUGINSDIR\modern-wizard.bmp
StrCpy $R0 $_45_
System::Call user32::GetClientRect(pR0,@r0)
; Call Initialize_____Plugins
; File $PLUGINSDIR\System.dll
; SetDetailsPrint lastused
; Push user32::GetClientRect(pR0,@r0)
; CallInstDLL $PLUGINSDIR\System.dll Call
System::Call *$0(i,i,i.r0,i.s)
; Call Initialize_____Plugins
; File $PLUGINSDIR\System.dll
; SetDetailsPrint lastused
; Push *$0(i,i,i.r0,i.s)
; CallInstDLL $PLUGINSDIR\System.dll Call
Exch
System::Call "user32::LoadImage(p0, ts, i0, ir0, is, i0x0010) p.r0"
; Call Initialize_____Plugins
; File $PLUGINSDIR\System.dll
; SetDetailsPrint lastused
; Push "user32::LoadImage(p0, ts, i0, ir0, is, i0x0010) p.r0"
; CallInstDLL $PLUGINSDIR\System.dll Call
SendMessage $R0 0x0172 0 $0
Pop $R0
Exch $0
; Push $0
; Exch
; Pop $0
Pop $_46_
nsDialogs::CreateControl STATIC 0x40000000|0x10000000|0x04000000|0x00000100 0x00000020 120u 10u 195u 28u $(LSTR_56) ; "Completing $(LSTR_81) Setup" Smartcopy
; Call Initialize_____Plugins
; File $PLUGINSDIR\nsDialogs.dll
; SetDetailsPrint lastused
; Push $(LSTR_56) ; "Completing $(LSTR_81) Setup" Smartcopy
; Push 28u
; Push 195u
; Push 10u
; Push 120u
; Push 0x00000020
; Push 0x40000000|0x10000000|0x04000000|0x00000100
; Push STATIC
; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
Pop $_47_
SetCtlColors $_47_ 0x000000 0xFFFFFF
CreateFont $_48_ $(LSTR_38) 12 700 ; "MS Shell Dlg"
SendMessage $_47_ ${WM_SETFONT} $_48_ 0
nsDialogs::CreateControl STATIC 0x40000000|0x10000000|0x04000000|0x00000100 0x00000020 120u 45u 195u 40u $(LSTR_57) ; "$(LSTR_81) has been installed on your computer.$\r$\n$\r$\nClick Finish to close Setup." Smartcopy
; Call Initialize_____Plugins
; File $PLUGINSDIR\nsDialogs.dll
; SetDetailsPrint lastused
; Push $(LSTR_57) ; "$(LSTR_81) has been installed on your computer.$\r$\n$\r$\nClick Finish to close Setup." Smartcopy
; Push 40u
; Push 195u
; Push 45u
; Push 120u
; Push 0x00000020
; Push 0x40000000|0x10000000|0x04000000|0x00000100
; Push STATIC
; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
Pop $_49_
SetCtlColors $_49_ 0x000000 0xFFFFFF
nsDialogs::CreateControl BUTTON 0x40000000|0x10000000|0x04000000|0x00010000|0x00000000|0x00000C00|0x00000003|0x00002000 0 120u 90u 195u 10u $(LSTR_58) ; "&Run $(LSTR_81)" Smartcopy
; Call Initialize_____Plugins
; File $PLUGINSDIR\nsDialogs.dll
; SetDetailsPrint lastused
; Push $(LSTR_58) ; "&Run $(LSTR_81)" Smartcopy
; 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 $_51_
SetCtlColors $_51_ 0x000000 0xFFFFFF
SendMessage $_51_ 0x00F1 1 0
System::Call user32::SetFocus(p$_51_)
; Call Initialize_____Plugins
; File $PLUGINSDIR\System.dll
; SetDetailsPrint lastused
; Push user32::SetFocus(p$_51_)
; CallInstDLL $PLUGINSDIR\System.dll Call
nsDialogs::CreateControl BUTTON 0x40000000|0x10000000|0x04000000|0x00010000|0x00000000|0x00000C00|0x00000003|0x00002000 0 120u 110u 195u 10u "Show release notes"
; Call Initialize_____Plugins
; File $PLUGINSDIR\nsDialogs.dll
; SetDetailsPrint lastused
; Push "Show release notes"
; 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 $_52_
SetCtlColors $_52_ 0x000000 0xFFFFFF
SendMessage $_52_ 0x00F1 1 0
nsDialogs::CreateControl LINK 0x40000000|0x10000000|0x04000000|0x00010000|0x0000000B 0 120u 175u 195u 10u "Visit the Smartcopy site for the latest news, FAQs and support"
; Call Initialize_____Plugins
; File $PLUGINSDIR\nsDialogs.dll
; SetDetailsPrint lastused
; Push "Visit the Smartcopy site for the latest news, FAQs and support"
; Push 10u
; Push 195u
; Push 175u
; Push 120u
; Push 0
; Push 0x40000000|0x10000000|0x04000000|0x00010000|0x0000000B
; Push LINK
; CallInstDLL $PLUGINSDIR\nsDialogs.dll CreateControl
Pop $_53_
SetCtlColors $_53_ 0x000080 0xFFFFFF
Push $0
Push $1
StrCpy $1 $_53_
StrCpy $0 184
nsDialogs::OnClick $1 $0
; Call Initialize_____Plugins
; File $PLUGINSDIR\nsDialogs.dll
; SetDetailsPrint lastused
; Push $0
; Push $1
; CallInstDLL $PLUGINSDIR\nsDialogs.dll OnClick
Pop $1
Pop $0
Push $1
System::Call *(i12,i0,p)p.r1
; Call Initialize_____Plugins
; File $PLUGINSDIR\System.dll
; SetDetailsPrint lastused
; Push *(i12,i0,p)p.r1
; CallInstDLL $PLUGINSDIR\System.dll Call
System::Call USER32::SystemParametersInfo(i0x42,i12,pr1,i0)
; Call Initialize_____Plugins
; File $PLUGINSDIR\System.dll
; SetDetailsPrint lastused
; Push USER32::SystemParametersInfo(i0x42,i12,pr1,i0)
; CallInstDLL $PLUGINSDIR\System.dll Call
System::Call *$1(i,i.s)
; Call Initialize_____Plugins
; File $PLUGINSDIR\System.dll
; SetDetailsPrint lastused
; Push *$1(i,i.s)
; CallInstDLL $PLUGINSDIR\System.dll Call
Pop $_54_
System::Free $1
; Call Initialize_____Plugins
; File $PLUGINSDIR\System.dll
; SetDetailsPrint lastused
; Push $1
; CallInstDLL $PLUGINSDIR\System.dll Free
Pop $1
IntOp $_54_ $_54_ & 0x01
IntCmp $_54_ 0 label_363
System::Call "UXTHEME::SetWindowTheme(p$_51_,w$\" $\",w$\" $\")"
; Call Initialize_____Plugins
; File $PLUGINSDIR\System.dll
; SetDetailsPrint lastused
; Push "UXTHEME::SetWindowTheme(p$_51_,w$\" $\",w$\" $\")"
; CallInstDLL $PLUGINSDIR\System.dll Call
System::Call "UXTHEME::SetWindowTheme(p$_52_,w$\" $\",w$\" $\")"
; Call Initialize_____Plugins
; File $PLUGINSDIR\System.dll
; SetDetailsPrint lastused
; Push "UXTHEME::SetWindowTheme(p$_52_,w$\" $\",w$\" $\")"
; CallInstDLL $PLUGINSDIR\System.dll Call
label_363:
Call func_4
nsDialogs::Show
; Call Initialize_____Plugins
; File $PLUGINSDIR\nsDialogs.dll
; SetDetailsPrint lastused
; CallInstDLL $PLUGINSDIR\nsDialogs.dll Show
Call func_14
IntCmp $_46_ 0 label_376
System::Call gdi32::DeleteObject(ps) $_46_
; Call Initialize_____Plugins
; File $PLUGINSDIR\System.dll
; SetDetailsPrint lastused
; Push $_46_
; Push gdi32::DeleteObject(ps)
; CallInstDLL $PLUGINSDIR\System.dll Call
label_376:
FunctionEnd


Function .onGUIInit
GetDlgItem $_0_ $HWNDPARENT 1037
CreateFont $_1_ $(LSTR_38) $(LSTR_59) 700 ; "MS Shell Dlg" 8
SendMessage $_0_ ${WM_SETFONT} $_1_ 0
GetDlgItem $_2_ $HWNDPARENT 1038
SetCtlColors $_0_ 0x000000 0xFFFFFF
SetCtlColors $_2_ 0x000000 0xFFFFFF
InitPluginsDir
; Call Initialize_____Plugins
; SetDetailsPrint lastused
SetOverwrite on
AllowSkipFiles on
File $PLUGINSDIR\modern-header.bmp
GetDlgItem $_4_ $HWNDPARENT 1046
GetDlgItem $_3_ $HWNDPARENT 1034
SetCtlColors $_3_ "" 0xFFFFFF
GetDlgItem $_6_ $HWNDPARENT 1028
SetCtlColors $_6_ /BRANDING ""
GetDlgItem $_5_ $HWNDPARENT 1256
SetCtlColors $_5_ /BRANDING ""
SendMessage $_5_ ${WM_SETTEXT} 0 "STR:$(LSTR_0) " ; "Smartcopy"
GetDlgItem $_7_ $HWNDPARENT 1035
GetDlgItem $_8_ $HWNDPARENT 1045
GetDlgItem $_9_ $HWNDPARENT 1
GetDlgItem $_10_ $HWNDPARENT 2
GetDlgItem $_11_ $HWNDPARENT 3
Call func_177
FunctionEnd


Function .onUserAbort
MessageBox MB_YESNO|MB_ICONEXCLAMATION $(LSTR_60) IDYES label_411 ; "Are you sure you want to quit $(LSTR_2) Setup?" Smartcopy
Abort
label_411:
FunctionEnd


Section "Smartcopy Core Files (required)" ; Section_0
; AddSize 3017
SectionIn 1 2 3 RO
SetDetailsPrint textonly
DetailPrint "Installing Smartcopy Core Files..."
SetDetailsPrint listonly
SetOutPath $INSTDIR
RMDir /r $SMPROGRAMS\Smartcopy
label_419:
SetOverwrite on
File "Smartcopy.exe"
SectionEnd

 

Section "Start Menu and Desktop Shortcuts" ; Section_1
SectionIn 1 2
SetDetailsPrint textonly
DetailPrint "Installing Start Menu and Desktop Shortcuts..."
SetDetailsPrint listonly
CreateDirectory "$SMPROGRAMS\Smartcopy"
CreateShortCut "$SMPROGRAMS\Smartcopy\Smartcopy.lnk" "$INSTDIR\Smartcopy.exe"
SectionEnd