当前位置:网站首页>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边栏推荐
- Qu'est - ce que l'hydroxyde de sodium?
- Altimeter data knowledge point 2
- 611. 有效三角形的个数
- R language learning notes 1
- Apple modify system shortcut key
- [vscode] recommended plug-ins
- selenium 元素定位
- (tool use) how to make the system automatically match and associate to database fields by importing MySQL from idea and writing SQL statements
- UE5热更新-远端服务器自动下载和版本检测(SimpleHotUpdate)
- 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
猜你喜欢

Explanation of parallel search set theory and code implementation

Negative number storage and type conversion in programs

arcgis_ spatialjoin

M2DGR 多源多场景 地面机器人SLAM数据集

Detailed explanation of miracast Technology (I): Wi Fi display

And let's play dynamic proxy (extreme depth version)

Ethtool principle introduction and troubleshooting ideas for network card packet loss (with ethtool source code download)

Don't confuse the use difference between series / and / *

Daily Practice:Codeforces Round #794 (Div. 2)(A~D)

Import CV2 prompt importerror: libgl so. 1: Cannot open shared object file: no such file or directory
随机推荐
Set theory of Discrete Mathematics (I)
Apple modify system shortcut key
纯碱是做什么的?
golang定时器使用踩的坑:定时器每天执行一次
2022年PMP项目管理考试敏捷知识点(7)
Graduation thesis project local deployment practice
Selenium element positioning
Don't confuse the use difference between series / and / *
[solved] there is something wrong with the image
Rough notes of C language (1)
Miracast技术详解(一):Wi-Fi Display
selenium 元素定位
Today, share the wonderful and beautiful theme of idea + website address
How to modify the file path of Jupiter notebook under miniconda
DataGrid offline installation of database driver
R language learning notes 1
公安基础知识--fb
UNIX commands often used in work
Clickhouse database installation deployment and remote IP access
M2DGR 多源多场景 地面机器人SLAM数据集