1234567891011121314151617181920212223242526272829303132333435 |
- !include "WinMessages.nsh"
- !include "WinCore.nsh"
- !include "WordFunc.nsh"
- !macro customHeader
- ShowUninstDetails show
- !macroend
- !macro customInstall
- WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Run""XGOEdu" "$INSTDIR\XGOEdu.exe"
- nsExec::Exec ".\resources\ca.bat"
- ${ifNot} ${isUpdated}
- ; ${If} ${RunningX64}
- ; nsExec::Exec ".\python\python-3.4.bat"
- ; ${Else}
- ; nsExec::Exec ".\python\python-3.4-32.bat"
- ; ${EndIf}
- SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000
- ${If} ${RunningX64}
- nsExec::Exec ".\cp210x_drivers\CP210xVCPInstaller_x64.bat"
- ${Else}
- nsExec::Exec ".\cp210x_drivers\CP210xVCPInstaller_x86.bat"
- ${EndIf}
- ${EndIf}
- SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000
- ; ${If} ${RunningX64}
- ; nsExec::Exec '.\python\pipdownload.bat'
- ; ${Else}
- ; nsExec::Exec '.\python\pipdownload32.bat'
- ; ${EndIf}
- #nsExec::Exec 'cmd.exe /c del "$INSTDIR\resources\ca.bat" "$INSTDIR\resources\ca.crt" "$INSTDIR\python\python-3.8.0-amd64.bat" "$INSTDIR\python\python-3.8.0.bat" "$INSTDIR\cp210x_drivers\CP210xVCPInstaller_x64.bat" "$INSTDIR\cp210x_drivers\CP210xVCPInstaller_x86.bat"'
- !macroend
- !macro customUnInstall
- DeleteRegValue HKCU "Software\Microsoft\Windows\CurrentVersion\Run" "XGOEdu"
- !macroend
|