当前位置:网站首页>NSIS finds out whether the file exists and sets the installation path
NSIS finds out whether the file exists and sets the installation path
2022-07-05 07:34:00 【sukhoi27smk】
Var GIT
Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
StrCpy $GIT "false"
MessageBox MB_OK $9
IfFileExists "C:\Program Files\Git\git-cmd.exe" 0 +4
MessageBox MB_OK "Git already installed "
StrCpy $INSTDIR "C:\Program Files\Git"
StrCpy $GIT "true"
IfFileExists "D:\Program Files\Git\git-cmd.exe" 0 +4
MessageBox MB_OK "Git already installed "
StrCpy $INSTDIR "D:\Program Files\Git"
StrCpy $GIT "true"
${If} $GIT == "false"
MessageBox MB_OK "Git No installation , Exit setup !"
Abort
${EndIf}
FunctionEnd
边栏推荐
- Oracle-触发器和程序包
- Explanation of parallel search set theory and code implementation
- Install deeptools in CONDA mode
- Jenkins reported an error. Illegal character: '\ufeff'. Class, interface or enum are required
- Idea shortcut key
- The golang timer uses the stepped pit: the timer is executed once a day
- ORACLE CREATE SEQUENCE,ALTER SEQUENCE,DROP SEQUENCE
- Daily Practice:Codeforces Round #794 (Div. 2)(A~D)
- 【idea】Could not autowire. No beans of xxx type found
- [idea] common shortcut keys
猜你喜欢
How to modify the file path of Jupiter notebook under miniconda
What is deep learning?
DelayQueue延迟队列的使用和场景
[node] NVM version management tool
Negative number storage and type conversion in programs
What if the DataGrid cannot see the table after connecting to the database
[idea] efficient plug-in save actions to improve your work efficiency
Tshydro tool
CADD course learning (5) -- Construction of chemosynthesis structure with known target (ChemDraw)
CADD课程学习(5)-- 构建靶点已知的化合结构(ChemDraw)
随机推荐
2022 PMP project management examination agile knowledge points (7)
When jupyter notebook is encountered, erroe appears in the name and is not output after running, but an empty line of code is added downward, and [] is empty
Apple terminal skills
Process (P) runs, and idle is different from pycharm
Build your own random wallpaper API for free
Daily Practice:Codeforces Round #794 (Div. 2)(A~D)
Word import literature -mendeley
Web page Chinese display (print, etc.) GBK error, solution, software
Selenium element positioning
UNIX commands often used in work
Using GEE plug-in in QGIS
Simple operation of running water lamp (keil5)
What is deep learning?
Idea to view the source code of jar package and some shortcut keys (necessary for reading the source code)
611. 有效三角形的个数
With the help of Navicat for MySQL software, the data of a database table in different or the same database link is copied to another database table
Pagoda create multiple sites with one server
公安基础知识--fb
GBK error in web page Chinese display (print, etc.), solution
Simple use of timeunit