当前位置:网站首页>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
边栏推荐
- Brief description of inux camera (Mipi interface)
- 2022.06.27_ One question per day
- CADD课程学习(6)-- 获得已有的虚拟化合物库(Drugbank、ZINC)
- Reading literature sorting 20220104
- Matrix and TMB package version issues in R
- CADD course learning (6) -- obtain the existing virtual compound library (drugbank, zinc)
- Apple input method optimization
- Use of Pai platform
- Don't confuse the use difference between series / and / *
- (top) pretty girl binary color code portal
猜你喜欢
Microservice registry Nacos introduction
Ue5 hot update - remote server automatic download and version detection (simplehotupdate)
Thunderbird tutorial \ easy to use mail client
[vscode] prohibit the pylance plug-in from automatically adding import
2022 PMP project management examination agile knowledge points (7)
611. Number of effective triangles
大学生活的自我总结-大一
What is deep learning?
Basic series of SHEL script (III) for while loop
And let's play dynamic proxy (extreme depth version)
随机推荐
Detour of Tkinter picture scaling
Using GEE plug-in in QGIS
[vscode] search using regular expressions
Thunderbird tutorial \ easy to use mail client
Machine learning Seaborn visualization
Apple script
Reading literature sorting 20220104
玩转gRPC—深入概念与原理
Rough notes of C language (1)
Selenium element positioning
Word import literature -mendeley
UNIX commands often used in work
Microservice registry Nacos introduction
Light up the running light, rough notes for beginners (1)
How to delete the virus of inserting USB flash disk copy of shortcut to
[neo4j] common operations of neo4j cypher and py2neo
Database SQL practice 3. Find the current salary details of the current leaders of each department and their corresponding department number Dept_ no
Database SQL practice 4. Find the last of employees in all assigned departments_ Name and first_ name
The mutual realization of C L stack and queue in I
Detailed explanation of miracast Technology (I): Wi Fi display