当前位置:网站首页>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
边栏推荐
- How can Oracle SQL statements modify fields that are not allowed to be null to allow nulls?
- Basic series of SHEL script (II) syntax + operation + judgment
- I can't stand the common annotations of idea anymore
- Today, share the wonderful and beautiful theme of idea + website address
- Unforgettable summary of 2021
- Basic series of SHEL script (I) variables
- I 用c I 实现队列
- ImportError: No module named ‘Tkinter‘
- ORACLE CREATE SEQUENCE,ALTER SEQUENCE,DROP SEQUENCE
- Set theory of Discrete Mathematics (I)
猜你喜欢
The number of occurrences of numbers in the offer 56 array (XOR)
I 用c l 栈与队列的相互实现
I 用c I 实现队列
How to delete the virus of inserting USB flash disk copy of shortcut to
C learning notes
Using GEE plug-in in QGIS
[idea] efficient plug-in save actions to improve your work efficiency
M2DGR 多源多场景 地面机器人SLAM数据集
I implement queue with C I
2022年PMP项目管理考试敏捷知识点(7)
随机推荐
list. files: List the Files in a Directory/Folder
Using GEE plug-in in QGIS
Pagoda create multiple sites with one server
第 2 章:小试牛刀,实现一个简单的Bean容器
Use of Pai platform
repo. conda. An example of COM path error
Machine learning Seaborn visualization
Basic knowledge of public security -- FB
Deepin get file (folder) list
Charles- unable to grab bags and surf the Internet
Apple system optimization
(top) pretty girl binary color code portal
Rough notes of C language (2) -- constants
The mutual realization of C L stack and queue in I
Explanation of parallel search set theory and code implementation
Basic series of SHEL script (II) syntax + operation + judgment
Light up the running light, rough notes for beginners (1)
2022年PMP项目管理考试敏捷知识点(7)
ModuleNotFoundError: No module named ‘picamera‘
Apple animation optimization