1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- ; RequestExecutionLevel admin
- !macro preInit
- SetRegView 64
- WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\projectSWFK"
- WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\projectFK"
- SetRegView 32
- WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\projectSWFK"
- WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\projectSWFK"
- ; CreateDirectory $%USERPROFILE%\*mentalEfficiencyData*
- ; CopyFiles $INSTDIR\user.config $%USERPROFILE%\*mentalEfficiencyData*
- ${If} ${FileExists} $%USERPROFILE%\*mentalEfficiencyData*
- ; file is a directory 如果目录存在就不执行
- ; SetOutPath $%USERPROFILE%\*mentalEfficiencyData*
- ; File $%USERPROFILE%\3.txt
- ; CopyFiles $%USERPROFILE%\3.txt $%USERPROFILE%\*mentalEfficiencyData*
- ${Else}
- ;如果目录不存在就执行创建copy动作
- ;CreateDirectory $INSTDIR\*mentalEfficiencyData*
- ;CreateDirectory $%USERPROFILE%\*mentalEfficiencyData*
- ; SetOutPath $%USERPROFILE%\*mentalEfficiencyData*
- ; File /r user.config
- ; File $INSTDIR\exe\mysql\mysql-5.7.24-winx64\Data\ibdata1
-
-
- ; CopyFiles user.config $%USERPROFILE%\*mentalEfficiencyData*
- ;CopyFiles $%USERPROFILE%\3.txt $%USERPROFILE%\*mentalEfficiencyData*
- ; Delete $INSTDIR\user.config
- ${EndIf}
- !macroend
- ; !macro customUnInstall
- ; nsExec::Exec '"C:\Windows\System32\cmd.exe" sc stop psychological'
- ; nsExec::Exec '"C:\Windows\System32\cmd.exe" sc delete psychological'
-
- ; !macroend
- !macro customUnInit
- ; 卸载页面出现前执行
- # 提示窗
- nsExec::Exec "sc stop ct" "" "SW_HIDE"
- nsExec::Exec "sc delete ct" "" "SW_HIDE"
- nsExec::Exec "taskkill /f /im rpc_thrift.exe" "" "SW_HIDE"
- ; ExecWait "sc stop psychological"
- ; ExecWait "sc delete psychological"
- ; ExecWait "taskkill /f /im rpc_thrift.exe"
- ; MessageBox MB_OKCANCEL "是否删除用户数据?" IDOK label_ok IDCANCEL label_cancel
- ; label_ok:
- ; # 删除固定文件夹
- ; RMDir /r $PROFILE\iConfig_TEST
- ; Goto end
- ; label_cancel:
- ; Goto end
- ; end:
- !macroend
|