1
0

build_pkg.bat 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  1. @echo off
  2. @echo Salt Windows Build Package Script
  3. @echo =====================================================================
  4. @echo.
  5. :: Get Passed Parameters
  6. @echo Get Passed Parameters...
  7. @echo ---------------------------------------------------------------------
  8. Set "Version="
  9. Set "Python="
  10. :: First Parameter
  11. if not "%~1"=="" (
  12. echo.%1 | FIND /I "=" > nul && (
  13. :: Named Parameter
  14. set "%~1"
  15. ) || (
  16. :: Positional Parameter
  17. set "Version=%~1"
  18. )
  19. )
  20. :: Second Parameter
  21. if not "%~2"=="" (
  22. echo.%2 | FIND /I "=" > nul && (
  23. :: Named Parameter
  24. set "%~2"
  25. ) || (
  26. :: Positional Parameter
  27. set "Python=%~2"
  28. )
  29. )
  30. :: If Version not defined, Get the version from Git
  31. if "%Version%"=="" (
  32. for /f "delims=" %%a in ('git describe') do @set "Version=%%a"
  33. )
  34. :: If Python not defined, Assume Python 3
  35. if "%Python%"=="" (
  36. set Python=3
  37. )
  38. :: Verify valid Python value (3)
  39. :: We may need to add Python 4 in the future (delims=34)
  40. set "x="
  41. for /f "delims=3" %%i in ("%Python%") do set x=%%i
  42. if Defined x (
  43. echo Invalid Python Version specified. Must be 3. Passed %Python%
  44. goto eof
  45. )
  46. @echo.
  47. :: Define Variables
  48. @echo Defining Variables...
  49. @echo ----------------------------------------------------------------------
  50. if %Python%==3 (
  51. Set "PyDir=C:\Python37"
  52. Set "PyVerMajor=3"
  53. Set "PyVerMinor=7"
  54. ) else (
  55. :: Placeholder for future version
  56. :: Set "PyDir=C:\Python4"
  57. :: Set "PyVerMajor=0"
  58. :: Set "PyVerMinor=0"
  59. )
  60. :: Verify the Python Installation
  61. If not Exist "%PyDir%\python.exe" (
  62. @echo Expected version of Python not found: Python %PyVerMajor%.%PyVerMinor%"
  63. exit /b 1
  64. )
  65. Set "CurDir=%~dp0"
  66. Set "BldDir=%CurDir%buildenv"
  67. Set "BinDir=%CurDir%buildenv\bin"
  68. Set "CnfDir=%CurDir%buildenv\conf"
  69. Set "InsDir=%CurDir%installer"
  70. Set "PreDir=%CurDir%prereqs"
  71. for /f "delims=" %%a in ('git rev-parse --show-toplevel') do @set "SrcDir=%%a"
  72. :: Find the NSIS Installer
  73. If Exist "C:\Program Files\NSIS\" (
  74. Set "NSIS=C:\Program Files\NSIS\"
  75. ) Else (
  76. Set "NSIS=C:\Program Files (x86)\NSIS\"
  77. )
  78. If not Exist "%NSIS%NSIS.exe" (
  79. @echo "NSIS not found in %NSIS%"
  80. exit /b 1
  81. )
  82. :: Add NSIS to the Path
  83. Set "PATH=%NSIS%;%PATH%"
  84. @echo.
  85. :: Check for existing bin directory and remove
  86. If Exist "%BinDir%\" (
  87. @echo Removing %BinDir%
  88. @echo ----------------------------------------------------------------------
  89. rd /S /Q "%BinDir%"
  90. )
  91. :: Copy the contents of the Python Dir to bin
  92. @echo Copying "%PyDir%" to bin...
  93. @echo ----------------------------------------------------------------------
  94. @echo xcopy /E /Q "%PyDir%" "%BinDir%\"
  95. xcopy /E /Q "%PyDir%" "%BinDir%\"
  96. @echo.
  97. :: Copy the default master and minion configs to buildenv\conf
  98. @echo Copying configs to buildenv\conf...
  99. @echo ----------------------------------------------------------------------
  100. @echo xcopy /E /Q "%SrcDir%\conf\master" "%CnfDir%\"
  101. xcopy /Q /Y "%SrcDir%\conf\master" "%CnfDir%\"
  102. @echo xcopy /E /Q "%SrcDir%\conf\minion" "%CnfDir%\"
  103. xcopy /Q /Y "%SrcDir%\conf\minion" "%CnfDir%\"
  104. @echo.
  105. @echo Copying SSM to buildenv
  106. @echo ----------------------------------------------------------------------
  107. :: Set the location of the ssm to download
  108. Set Url64="https://repo.saltstack.com/windows/dependencies/64/ssm-2.24-103-gdee49fc.exe"
  109. Set Url32="https://repo.saltstack.com/windows/dependencies/32/ssm-2.24-103-gdee49fc.exe"
  110. :: Check for 64 bit by finding the Program Files (x86) directory
  111. If Defined ProgramFiles(x86) (
  112. powershell -ExecutionPolicy RemoteSigned -File download_url_file.ps1 -url "%Url64%" -file "%BinDir%\ssm.exe"
  113. ) Else (
  114. powershell -ExecutionPolicy RemoteSigned -File download_url_file.ps1 -url "%Url32%" -file "%BinDir%\ssm.exe"
  115. )
  116. @echo.
  117. :: Make sure the "prereq" directory exists and is empty
  118. If Exist "%PreDir%" rd /s /q "%PreDir%"
  119. mkdir "%PreDir%"
  120. :: 32 bit binaries only needed for x86 installer
  121. :: ProgramFiles(x86) is defined on AMD64 systems
  122. :: If it's defined, skip the x86 binaries
  123. If Defined ProgramFiles(x86) goto dependencies_x64
  124. :dependencies_x86
  125. @echo.
  126. @echo Copying VCRedist 2013 X86 to Prerequisites
  127. @echo ----------------------------------------------------------------------
  128. set Url=http://repo.saltstack.com/windows/dependencies/32/vcredist_x86_2013.exe
  129. set Name=vcredist_x86_2013.exe
  130. @echo - Downloading %Name%
  131. powershell -ExecutionPolicy RemoteSigned -File download_url_file.ps1 -url %Url% -file "%PreDir%\%Name%"
  132. @echo.
  133. @echo Copying Universal C Runtimes X86 to Prerequisites
  134. @echo ----------------------------------------------------------------------
  135. set Url=http://repo.saltstack.com/windows/dependencies/32/ucrt_x86.zip
  136. set Name=ucrt_x86.zip
  137. @echo - Downloading %Name%
  138. powershell -ExecutionPolicy RemoteSigned -File download_url_file.ps1 -url %Url% -file "%PreDir%\%Name%"
  139. goto prereq_end
  140. :: These are only needed on 64bit installer
  141. :dependencies_x64
  142. @echo.
  143. @echo Copying VCRedist 2013 X64 to Prerequisites
  144. @echo ----------------------------------------------------------------------
  145. set Url=http://repo.saltstack.com/windows/dependencies/64/vcredist_x64_2013.exe
  146. set Name=vcredist_x64_2013.exe
  147. @echo - Downloading %Name%
  148. powershell -ExecutionPolicy RemoteSigned -File download_url_file.ps1 -url %Url% -file "%PreDir%\%Name%"
  149. @echo.
  150. @echo Copying Universal C Runtimes X64 to Prerequisites
  151. @echo ----------------------------------------------------------------------
  152. set Url=http://repo.saltstack.com/windows/dependencies/64/ucrt_x64.zip
  153. set Name=ucrt_x64.zip
  154. @echo - Downloading %Name%
  155. powershell -ExecutionPolicy RemoteSigned -File download_url_file.ps1 -url %Url% -file "%PreDir%\%Name%"
  156. :prereq_end
  157. :: Remove the fixed path in .exe files
  158. @echo Removing fixed path from .exe files
  159. @echo ----------------------------------------------------------------------
  160. "%PyDir%\python" "%CurDir%\portable.py" -f "%BinDir%\Scripts\easy_install.exe"
  161. "%PyDir%\python" "%CurDir%\portable.py" -f "%BinDir%\Scripts\easy_install-%PyVerMajor%.%PyVerMinor%.exe"
  162. "%PyDir%\python" "%CurDir%\portable.py" -f "%BinDir%\Scripts\pip.exe"
  163. "%PyDir%\python" "%CurDir%\portable.py" -f "%BinDir%\Scripts\pip%PyVerMajor%.%PyVerMinor%.exe"
  164. "%PyDir%\python" "%CurDir%\portable.py" -f "%BinDir%\Scripts\pip%PyVerMajor%.exe"
  165. "%PyDir%\python" "%CurDir%\portable.py" -f "%BinDir%\Scripts\wheel.exe"
  166. @echo.
  167. @echo Cleaning up unused files and directories...
  168. @echo ----------------------------------------------------------------------
  169. :: Remove all Compiled Python files (.pyc)
  170. del /S /Q "%BinDir%\*.pyc" 1>nul
  171. :: Remove all Compiled HTML Help (.chm)
  172. del /S /Q "%BinDir%\*.chm" 1>nul
  173. :: Remove all empty text files (they are placeholders for git)
  174. del /S /Q "%BinDir%\..\empty.*" 1>nul
  175. :: Delete Unused Docs and Modules
  176. If Exist "%BinDir%\Doc" rd /S /Q "%BinDir%\Doc"
  177. If Exist "%BinDir%\share" rd /S /Q "%BinDir%\share"
  178. If Exist "%BinDir%\tcl" rd /S /Q "%BinDir%\tcl"
  179. If Exist "%BinDir%\Lib\idlelib" rd /S /Q "%BinDir%\Lib\idlelib"
  180. If Exist "%BinDir%\Lib\lib-tk" rd /S /Q "%BinDir%\Lib\lib-tk"
  181. If Exist "%BinDir%\Lib\test" rd /S /Q "%BinDir%\Lib\test"
  182. If Exist "%BinDir%\Lib\unit-test" rd /S /Q "%BinDir%\Lib\unit-test"
  183. :: Delete Unused .dll files
  184. If Exist "%BinDir%\DLLs\tcl85.dll" del /Q "%BinDir%\DLLs\tcl85.dll" 1>nul
  185. If Exist "%BinDir%\DLLs\tclpip85.dll" del /Q "%BinDir%\DLLs\tclpip85.dll" 1>nul
  186. If Exist "%BinDir%\DLLs\tk85.dll" del /Q "%BinDir%\DLLs\tk85.dll" 1>nul
  187. :: Delete Unused .lib files
  188. If Exist "%BinDir%\libs\_tkinter.lib" del /Q "%BinDir%\libs\_tkinter.lib" 1>nul
  189. :: Delete .txt files
  190. If Exist "%BinDir%\NEWS.txt" del /Q "%BinDir%\NEWS.txt" 1>nul
  191. If Exist "%BinDir%\README.txt" del /Q "%BinDir%\README.txt" 1>nul
  192. :: Delete Non-Windows Modules
  193. If Exist "%BinDir%\Lib\site-packages\salt\modules\acme.py"^
  194. del /Q "%BinDir%\Lib\site-packages\salt\modules\acme.*" 1>nul
  195. If Exist "%BinDir%\Lib\site-packages\salt\modules\alternatives.py"^
  196. del /Q "%BinDir%\Lib\site-packages\salt\modules\alternatives.*" 1>nul
  197. If Exist "%BinDir%\Lib\site-packages\salt\modules\apf.py"^
  198. del /Q "%BinDir%\Lib\site-packages\salt\modules\apf.*" 1>nul
  199. If Exist "%BinDir%\Lib\site-packages\salt\modules\aptpkg.py"^
  200. del /Q "%BinDir%\Lib\site-packages\salt\modules\aptpkg.*" 1>nul
  201. If Exist "%BinDir%\Lib\site-packages\salt\modules\at.py"^
  202. del /Q "%BinDir%\Lib\site-packages\salt\modules\at.*" 1>nul
  203. If Exist "%BinDir%\Lib\site-packages\salt\modules\bcache.py"^
  204. del /Q "%BinDir%\Lib\site-packages\salt\modules\bcache.*" 1>nul
  205. If Exist "%BinDir%\Lib\site-packages\salt\modules\blockdev.py"^
  206. del /Q "%BinDir%\Lib\site-packages\salt\modules\blockdev.*" 1>nul
  207. If Exist "%BinDir%\Lib\site-packages\salt\modules\bluez.py"^
  208. del /Q "%BinDir%\Lib\site-packages\salt\modules\bluez.*" 1>nul
  209. If Exist "%BinDir%\Lib\site-packages\salt\modules\bridge.py"^
  210. del /Q "%BinDir%\Lib\site-packages\salt\modules\bridge.*" 1>nul
  211. If Exist "%BinDir%\Lib\site-packages\salt\modules\bsd_shadow.py"^
  212. del /Q "%BinDir%\Lib\site-packages\salt\modules\bsd_shadow.*" 1>nul
  213. If Exist "%BinDir%\Lib\site-packages\salt\modules\btrfs.py"^
  214. del /Q "%BinDir%\Lib\site-packages\salt\modules\btrfs.*" 1>nul
  215. If Exist "%BinDir%\Lib\site-packages\salt\modules\ceph.py"^
  216. del /Q "%BinDir%\Lib\site-packages\salt\modules\ceph.*" 1>nul
  217. If Exist "%BinDir%\Lib\site-packages\salt\modules\container_resource.py"^
  218. del /Q "%BinDir%\Lib\site-packages\salt\modules\container_resource.*" 1>nul
  219. If Exist "%BinDir%\Lib\site-packages\salt\modules\cron.py"^
  220. del /Q "%BinDir%\Lib\site-packages\salt\modules\cron.*" 1>nul
  221. If Exist "%BinDir%\Lib\site-packages\salt\modules\csf.py"^
  222. del /Q "%BinDir%\Lib\site-packages\salt\modules\csf.*" 1>nul
  223. If Exist "%BinDir%\Lib\site-packages\salt\modules\daemontools.py"^
  224. del /Q "%BinDir%\Lib\site-packages\salt\modules\daemontools.*" 1>nul
  225. If Exist "%BinDir%\Lib\site-packages\salt\modules\deb*"^
  226. del /Q "%BinDir%\Lib\site-packages\salt\modules\deb*" 1>nul
  227. If Exist "%BinDir%\Lib\site-packages\salt\modules\devmap.py"^
  228. del /Q "%BinDir%\Lib\site-packages\salt\modules\devmap.*" 1>nul
  229. If Exist "%BinDir%\Lib\site-packages\salt\modules\dpkg.py"^
  230. del /Q "%BinDir%\Lib\site-packages\salt\modules\dpkg.*" 1>nul
  231. If Exist "%BinDir%\Lib\site-packages\salt\modules\ebuild.py"^
  232. del /Q "%BinDir%\Lib\site-packages\salt\modules\ebuild.*" 1>nul
  233. If Exist "%BinDir%\Lib\site-packages\salt\modules\eix.py"^
  234. del /Q "%BinDir%\Lib\site-packages\salt\modules\eix.*" 1>nul
  235. If Exist "%BinDir%\Lib\site-packages\salt\modules\eselect.py"^
  236. del /Q "%BinDir%\Lib\site-packages\salt\modules\eselect.*" 1>nul
  237. If Exist "%BinDir%\Lib\site-packages\salt\modules\ethtool.py"^
  238. del /Q "%BinDir%\Lib\site-packages\salt\modules\ethtool.*" 1>nul
  239. If Exist "%BinDir%\Lib\site-packages\salt\modules\extfs.py"^
  240. del /Q "%BinDir%\Lib\site-packages\salt\modules\extfs.*" 1>nul
  241. If Exist "%BinDir%\Lib\site-packages\salt\modules\firewalld.py"^
  242. del /Q "%BinDir%\Lib\site-packages\salt\modules\firewalld.*" 1>nul
  243. If Exist "%BinDir%\Lib\site-packages\salt\modules\freebsd*"^
  244. del /Q "%BinDir%\Lib\site-packages\salt\modules\freebsd*" 1>nul
  245. If Exist "%BinDir%\Lib\site-packages\salt\modules\genesis.py"^
  246. del /Q "%BinDir%\Lib\site-packages\salt\modules\genesis.*" 1>nul
  247. If Exist "%BinDir%\Lib\site-packages\salt\modules\gentoo*"^
  248. del /Q "%BinDir%\Lib\site-packages\salt\modules\gentoo*" 1>nul
  249. If Exist "%BinDir%\Lib\site-packages\salt\modules\glusterfs.py"^
  250. del /Q "%BinDir%\Lib\site-packages\salt\modules\glusterfs.*" 1>nul
  251. If Exist "%BinDir%\Lib\site-packages\salt\modules\gnomedesktop.py"^
  252. del /Q "%BinDir%\Lib\site-packages\salt\modules\gnomedesktop.*" 1>nul
  253. If Exist "%BinDir%\Lib\site-packages\salt\modules\groupadd.py"^
  254. del /Q "%BinDir%\Lib\site-packages\salt\modules\groupadd.*" 1>nul
  255. If Exist "%BinDir%\Lib\site-packages\salt\modules\grub_legacy.py"^
  256. del /Q "%BinDir%\Lib\site-packages\salt\modules\grub_legacy.*" 1>nul
  257. If Exist "%BinDir%\Lib\site-packages\salt\modules\guestfs.py"^
  258. del /Q "%BinDir%\Lib\site-packages\salt\modules\guestfs.*" 1>nul
  259. If Exist "%BinDir%\Lib\site-packages\salt\modules\htpasswd.py"^
  260. del /Q "%BinDir%\Lib\site-packages\salt\modules\htpasswd.*" 1>nul
  261. If Exist "%BinDir%\Lib\site-packages\salt\modules\ilo.py"^
  262. del /Q "%BinDir%\Lib\site-packages\salt\modules\ilo.*" 1>nul
  263. If Exist "%BinDir%\Lib\site-packages\salt\modules\img.py"^
  264. del /Q "%BinDir%\Lib\site-packages\salt\modules\img.*" 1>nul
  265. If Exist "%BinDir%\Lib\site-packages\salt\modules\incron.py"^
  266. del /Q "%BinDir%\Lib\site-packages\salt\modules\incron.*" 1>nul
  267. If Exist "%BinDir%\Lib\site-packages\salt\modules\inspector.py"^
  268. del /Q "%BinDir%\Lib\site-packages\salt\modules\inspector.*" 1>nul
  269. If Exist "%BinDir%\Lib\site-packages\salt\modules\ipset.py"^
  270. del /Q "%BinDir%\Lib\site-packages\salt\modules\ipset.*" 1>nul
  271. If Exist "%BinDir%\Lib\site-packages\salt\modules\iptables.py"^
  272. del /Q "%BinDir%\Lib\site-packages\salt\modules\iptables.*" 1>nul
  273. If Exist "%BinDir%\Lib\site-packages\salt\modules\iwtools.py"^
  274. del /Q "%BinDir%\Lib\site-packages\salt\modules\iwtools.*" 1>nul
  275. If Exist "%BinDir%\Lib\site-packages\salt\modules\k8s.py"^
  276. del /Q "%BinDir%\Lib\site-packages\salt\modules\k8s.*" 1>nul
  277. If Exist "%BinDir%\Lib\site-packages\salt\modules\kapacitor.py"^
  278. del /Q "%BinDir%\Lib\site-packages\salt\modules\kapacitor.*" 1>nul
  279. If Exist "%BinDir%\Lib\site-packages\salt\modules\keyboard.py"^
  280. del /Q "%BinDir%\Lib\site-packages\salt\modules\keyboard.*" 1>nul
  281. If Exist "%BinDir%\Lib\site-packages\salt\modules\keystone.py"^
  282. del /Q "%BinDir%\Lib\site-packages\salt\modules\keystone.*" 1>nul
  283. If Exist "%BinDir%\Lib\site-packages\salt\modules\kmod.py"^
  284. del /Q "%BinDir%\Lib\site-packages\salt\modules\kmod.*" 1>nul
  285. If Exist "%BinDir%\Lib\site-packages\salt\modules\layman.py"^
  286. del /Q "%BinDir%\Lib\site-packages\salt\modules\layman.*" 1>nul
  287. If Exist "%BinDir%\Lib\site-packages\salt\modules\linux*"^
  288. del /Q "%BinDir%\Lib\site-packages\salt\modules\linux*" 1>nul
  289. If Exist "%BinDir%\Lib\site-packages\salt\modules\localemod.py"^
  290. del /Q "%BinDir%\Lib\site-packages\salt\modules\localemod.*" 1>nul
  291. If Exist "%BinDir%\Lib\site-packages\salt\modules\locate.py"^
  292. del /Q "%BinDir%\Lib\site-packages\salt\modules\locate.*" 1>nul
  293. If Exist "%BinDir%\Lib\site-packages\salt\modules\logadm.py"^
  294. del /Q "%BinDir%\Lib\site-packages\salt\modules\logadm.*" 1>nul
  295. If Exist "%BinDir%\Lib\site-packages\salt\modules\logrotate.py"^
  296. del /Q "%BinDir%\Lib\site-packages\salt\modules\logrotate.*" 1>nul
  297. If Exist "%BinDir%\Lib\site-packages\salt\modules\lvs.py"^
  298. del /Q "%BinDir%\Lib\site-packages\salt\modules\lvs.*" 1>nul
  299. If Exist "%BinDir%\Lib\site-packages\salt\modules\lxc.py"^
  300. del /Q "%BinDir%\Lib\site-packages\salt\modules\lxc.*" 1>nul
  301. If Exist "%BinDir%\Lib\site-packages\salt\modules\mac*"^
  302. del /Q "%BinDir%\Lib\site-packages\salt\modules\mac*" 1>nul
  303. If Exist "%BinDir%\Lib\site-packages\salt\modules\makeconf.py"^
  304. del /Q "%BinDir%\Lib\site-packages\salt\modules\makeconf.*" 1>nul
  305. If Exist "%BinDir%\Lib\site-packages\salt\modules\mdadm.py"^
  306. del /Q "%BinDir%\Lib\site-packages\salt\modules\mdadm.*" 1>nul
  307. If Exist "%BinDir%\Lib\site-packages\salt\modules\mdata.py"^
  308. del /Q "%BinDir%\Lib\site-packages\salt\modules\mdata.*" 1>nul
  309. If Exist "%BinDir%\Lib\site-packages\salt\modules\monit.py"^
  310. del /Q "%BinDir%\Lib\site-packages\salt\modules\monit.*" 1>nul
  311. If Exist "%BinDir%\Lib\site-packages\salt\modules\moosefs.py"^
  312. del /Q "%BinDir%\Lib\site-packages\salt\modules\moosefs.*" 1>nul
  313. If Exist "%BinDir%\Lib\site-packages\salt\modules\mount.py"^
  314. del /Q "%BinDir%\Lib\site-packages\salt\modules\mount.*" 1>nul
  315. If Exist "%BinDir%\Lib\site-packages\salt\modules\napalm*"^
  316. del /Q "%BinDir%\Lib\site-packages\salt\modules\napalm*" 1>nul
  317. If Exist "%BinDir%\Lib\site-packages\salt\modules\netbsd*"^
  318. del /Q "%BinDir%\Lib\site-packages\salt\modules\netbsd*" 1>nul
  319. If Exist "%BinDir%\Lib\site-packages\salt\modules\netscaler.py"^
  320. del /Q "%BinDir%\Lib\site-packages\salt\modules\netscaler.*" 1>nul
  321. If Exist "%BinDir%\Lib\site-packages\salt\modules\neutron.py"^
  322. del /Q "%BinDir%\Lib\site-packages\salt\modules\neutron.*" 1>nul
  323. If Exist "%BinDir%\Lib\site-packages\salt\modules\nfs3.py"^
  324. del /Q "%BinDir%\Lib\site-packages\salt\modules\nfs3.*" 1>nul
  325. If Exist "%BinDir%\Lib\site-packages\salt\modules\nftables.py"^
  326. del /Q "%BinDir%\Lib\site-packages\salt\modules\nftables.*" 1>nul
  327. If Exist "%BinDir%\Lib\site-packages\salt\modules\nova.py"^
  328. del /Q "%BinDir%\Lib\site-packages\salt\modules\nova.*" 1>nul
  329. If Exist "%BinDir%\Lib\site-packages\salt\modules\nspawn.py"^
  330. del /Q "%BinDir%\Lib\site-packages\salt\modules\nspawn.*" 1>nul
  331. If Exist "%BinDir%\Lib\site-packages\salt\modules\openbsd*"^
  332. del /Q "%BinDir%\Lib\site-packages\salt\modules\openbsd*" 1>nul
  333. If Exist "%BinDir%\Lib\site-packages\salt\modules\openstack_mng.py"^
  334. del /Q "%BinDir%\Lib\site-packages\salt\modules\openstack_mng.*" 1>nul
  335. If Exist "%BinDir%\Lib\site-packages\salt\modules\openvswitch.py"^
  336. del /Q "%BinDir%\Lib\site-packages\salt\modules\openvswitch.*" 1>nul
  337. If Exist "%BinDir%\Lib\site-packages\salt\modules\opkg.py"^
  338. del /Q "%BinDir%\Lib\site-packages\salt\modules\opkg.*" 1>nul
  339. If Exist "%BinDir%\Lib\site-packages\salt\modules\pacman.py"^
  340. del /Q "%BinDir%\Lib\site-packages\salt\modules\pacman.*" 1>nul
  341. If Exist "%BinDir%\Lib\site-packages\salt\modules\parallels.py"^
  342. del /Q "%BinDir%\Lib\site-packages\salt\modules\parallels.*" 1>nul
  343. If Exist "%BinDir%\Lib\site-packages\salt\modules\parted.py"^
  344. del /Q "%BinDir%\Lib\site-packages\salt\modules\parted.*" 1>nul
  345. If Exist "%BinDir%\Lib\site-packages\salt\modules\pcs.py"^
  346. del /Q "%BinDir%\Lib\site-packages\salt\modules\pcs.*" 1>nul
  347. If Exist "%BinDir%\Lib\site-packages\salt\modules\pkgin.py"^
  348. del /Q "%BinDir%\Lib\site-packages\salt\modules\pkgin.*" 1>nul
  349. If Exist "%BinDir%\Lib\site-packages\salt\modules\pkgng.py"^
  350. del /Q "%BinDir%\Lib\site-packages\salt\modules\pkgng.*" 1>nul
  351. If Exist "%BinDir%\Lib\site-packages\salt\modules\pkgutil.py"^
  352. del /Q "%BinDir%\Lib\site-packages\salt\modules\pkgutil.*" 1>nul
  353. If Exist "%BinDir%\Lib\site-packages\salt\modules\portage_config.py"^
  354. del /Q "%BinDir%\Lib\site-packages\salt\modules\portage_config.*" 1>nul
  355. If Exist "%BinDir%\Lib\site-packages\salt\modules\postfix.py"^
  356. del /Q "%BinDir%\Lib\site-packages\salt\modules\postfix.*" 1>nul
  357. If Exist "%BinDir%\Lib\site-packages\salt\modules\poudriere.py"^
  358. del /Q "%BinDir%\Lib\site-packages\salt\modules\poudriere.*" 1>nul
  359. If Exist "%BinDir%\Lib\site-packages\salt\modules\powerpath.py"^
  360. del /Q "%BinDir%\Lib\site-packages\salt\modules\powerpath.*" 1>nul
  361. If Exist "%BinDir%\Lib\site-packages\salt\modules\pw_*"^
  362. del /Q "%BinDir%\Lib\site-packages\salt\modules\pw_*" 1>nul
  363. If Exist "%BinDir%\Lib\site-packages\salt\modules\qemu_ndb.py"^
  364. del /Q "%BinDir%\Lib\site-packages\salt\modules\qemu_ndb.*" 1>nul
  365. If Exist "%BinDir%\Lib\site-packages\salt\modules\quota.py"^
  366. del /Q "%BinDir%\Lib\site-packages\salt\modules\quota.*" 1>nul
  367. If Exist "%BinDir%\Lib\site-packages\salt\modules\redismod.py"^
  368. del /Q "%BinDir%\Lib\site-packages\salt\modules\redismod.*" 1>nul
  369. If Exist "%BinDir%\Lib\site-packages\salt\modules\restartcheck.py"^
  370. del /Q "%BinDir%\Lib\site-packages\salt\modules\restartcheck.*" 1>nul
  371. If Exist "%BinDir%\Lib\site-packages\salt\modules\rh_*"^
  372. del /Q "%BinDir%\Lib\site-packages\salt\modules\rh_*" 1>nul
  373. If Exist "%BinDir%\Lib\site-packages\salt\modules\riak.py"^
  374. del /Q "%BinDir%\Lib\site-packages\salt\modules\riak.*" 1>nul
  375. If Exist "%BinDir%\Lib\site-packages\salt\modules\rpm*"^
  376. del /Q "%BinDir%\Lib\site-packages\salt\modules\rpm*" 1>nul
  377. If Exist "%BinDir%\Lib\site-packages\salt\modules\runit.py"^
  378. del /Q "%BinDir%\Lib\site-packages\salt\modules\runit.*" 1>nul
  379. If Exist "%BinDir%\Lib\site-packages\salt\modules\s6.py"^
  380. del /Q "%BinDir%\Lib\site-packages\salt\modules\s6.*" 1>nul
  381. If Exist "%BinDir%\Lib\site-packages\salt\modules\scsi.py"^
  382. del /Q "%BinDir%\Lib\site-packages\salt\modules\scsi.*" 1>nul
  383. If Exist "%BinDir%\Lib\site-packages\salt\modules\seed.py"^
  384. del /Q "%BinDir%\Lib\site-packages\salt\modules\seed.*" 1>nul
  385. If Exist "%BinDir%\Lib\site-packages\salt\modules\sensors.py"^
  386. del /Q "%BinDir%\Lib\site-packages\salt\modules\sensors.*" 1>nul
  387. If Exist "%BinDir%\Lib\site-packages\salt\modules\service.py"^
  388. del /Q "%BinDir%\Lib\site-packages\salt\modules\service.*" 1>nul
  389. If Exist "%BinDir%\Lib\site-packages\salt\modules\shadow.py"^
  390. del /Q "%BinDir%\Lib\site-packages\salt\modules\shadow.*" 1>nul
  391. If Exist "%BinDir%\Lib\site-packages\salt\modules\smartos*"^
  392. del /Q "%BinDir%\Lib\site-packages\salt\modules\smartos*" 1>nul
  393. If Exist "%BinDir%\Lib\site-packages\salt\modules\smf.py"^
  394. del /Q "%BinDir%\Lib\site-packages\salt\modules\smf.*" 1>nul
  395. If Exist "%BinDir%\Lib\site-packages\salt\modules\snapper.py"^
  396. del /Q "%BinDir%\Lib\site-packages\salt\modules\snapper.*" 1>nul
  397. If Exist "%BinDir%\Lib\site-packages\salt\modules\solaris*"^
  398. del /Q "%BinDir%\Lib\site-packages\salt\modules\solaris*" 1>nul
  399. If Exist "%BinDir%\Lib\site-packages\salt\modules\solr.py"^
  400. del /Q "%BinDir%\Lib\site-packages\salt\modules\solr.*" 1>nul
  401. If Exist "%BinDir%\Lib\site-packages\salt\modules\ssh_*"^
  402. del /Q "%BinDir%\Lib\site-packages\salt\modules\ssh_*" 1>nul
  403. If Exist "%BinDir%\Lib\site-packages\salt\modules\supervisord.py"^
  404. del /Q "%BinDir%\Lib\site-packages\salt\modules\supervisord.*" 1>nul
  405. If Exist "%BinDir%\Lib\site-packages\salt\modules\sysbench.py"^
  406. del /Q "%BinDir%\Lib\site-packages\salt\modules\sysbench.*" 1>nul
  407. If Exist "%BinDir%\Lib\site-packages\salt\modules\sysfs.py"^
  408. del /Q "%BinDir%\Lib\site-packages\salt\modules\sysfs.*" 1>nul
  409. If Exist "%BinDir%\Lib\site-packages\salt\modules\sysrc.py"^
  410. del /Q "%BinDir%\Lib\site-packages\salt\modules\sysrc.*" 1>nul
  411. If Exist "%BinDir%\Lib\site-packages\salt\modules\system.py"^
  412. del /Q "%BinDir%\Lib\site-packages\salt\modules\system.*" 1>nul
  413. If Exist "%BinDir%\Lib\site-packages\salt\modules\test_virtual.py"^
  414. del /Q "%BinDir%\Lib\site-packages\salt\modules\test_virtual.*" 1>nul
  415. If Exist "%BinDir%\Lib\site-packages\salt\modules\timezone.py"^
  416. del /Q "%BinDir%\Lib\site-packages\salt\modules\timezone.*" 1>nul
  417. If Exist "%BinDir%\Lib\site-packages\salt\modules\trafficserver.py"^
  418. del /Q "%BinDir%\Lib\site-packages\salt\modules\trafficserver.*" 1>nul
  419. If Exist "%BinDir%\Lib\site-packages\salt\modules\tuned.py"^
  420. del /Q "%BinDir%\Lib\site-packages\salt\modules\tuned.*" 1>nul
  421. If Exist "%BinDir%\Lib\site-packages\salt\modules\udev.py"^
  422. del /Q "%BinDir%\Lib\site-packages\salt\modules\udev.*" 1>nul
  423. If Exist "%BinDir%\Lib\site-packages\salt\modules\upstart.py"^
  424. del /Q "%BinDir%\Lib\site-packages\salt\modules\upstart.*" 1>nul
  425. If Exist "%BinDir%\Lib\site-packages\salt\modules\useradd.py"^
  426. del /Q "%BinDir%\Lib\site-packages\salt\modules\useradd.*" 1>nul
  427. If Exist "%BinDir%\Lib\site-packages\salt\modules\uswgi.py"^
  428. del /Q "%BinDir%\Lib\site-packages\salt\modules\uswgi.*" 1>nul
  429. If Exist "%BinDir%\Lib\site-packages\salt\modules\varnish.py"^
  430. del /Q "%BinDir%\Lib\site-packages\salt\modules\varnish.*" 1>nul
  431. If Exist "%BinDir%\Lib\site-packages\salt\modules\vbox_guest.py"^
  432. del /Q "%BinDir%\Lib\site-packages\salt\modules\vbox_guest.*" 1>nul
  433. If Exist "%BinDir%\Lib\site-packages\salt\modules\vboxmanage.py"^
  434. del /Q "%BinDir%\Lib\site-packages\salt\modules\vboxmanage.*" 1>nul
  435. If Exist "%BinDir%\Lib\site-packages\salt\modules\virt.py"^
  436. del /Q "%BinDir%\Lib\site-packages\salt\modules\virt.*" 1>nul
  437. If Exist "%BinDir%\Lib\site-packages\salt\modules\xapi.py"^
  438. del /Q "%BinDir%\Lib\site-packages\salt\modules\xapi.*" 1>nul
  439. If Exist "%BinDir%\Lib\site-packages\salt\modules\xbpspkg.py"^
  440. del /Q "%BinDir%\Lib\site-packages\salt\modules\xbpspkg.*" 1>nul
  441. If Exist "%BinDir%\Lib\site-packages\salt\modules\xfs.py"^
  442. del /Q "%BinDir%\Lib\site-packages\salt\modules\xfs.*" 1>nul
  443. If Exist "%BinDir%\Lib\site-packages\salt\modules\yumpkg.py"^
  444. del /Q "%BinDir%\Lib\site-packages\salt\modules\yum.*" 1>nul
  445. If Exist "%BinDir%\Lib\site-packages\salt\modules\zfs.py"^
  446. del /Q "%BinDir%\Lib\site-packages\salt\modules\zfs.*" 1>nul
  447. If Exist "%BinDir%\Lib\site-packages\salt\modules\znc.py"^
  448. del /Q "%BinDir%\Lib\site-packages\salt\modules\znc.*" 1>nul
  449. If Exist "%BinDir%\Lib\site-packages\salt\modules\zpool.py"^
  450. del /Q "%BinDir%\Lib\site-packages\salt\modules\zpool.*" 1>nul
  451. If Exist "%BinDir%\Lib\site-packages\salt\modules\zypper.py"^
  452. del /Q "%BinDir%\Lib\site-packages\salt\modules\zypper.*" 1>nul
  453. :: Delete Non-Windows States
  454. If Exist "%BinDir%\Lib\site-packages\salt\states\acme.py"^
  455. del /Q "%BinDir%\Lib\site-packages\salt\states\acme.*" 1>nul
  456. If Exist "%BinDir%\Lib\site-packages\salt\states\alternatives.py"^
  457. del /Q "%BinDir%\Lib\site-packages\salt\states\alternatives.*" 1>nul
  458. If Exist "%BinDir%\Lib\site-packages\salt\states\aptpkg.py"^
  459. del /Q "%BinDir%\Lib\site-packages\salt\states\aptpkg.*" 1>nul
  460. If Exist "%BinDir%\Lib\site-packages\salt\states\at.py"^
  461. del /Q "%BinDir%\Lib\site-packages\salt\states\at.*" 1>nul
  462. If Exist "%BinDir%\Lib\site-packages\salt\states\blockdev.py"^
  463. del /Q "%BinDir%\Lib\site-packages\salt\states\blockdev.*" 1>nul
  464. If Exist "%BinDir%\Lib\site-packages\salt\states\ceph.py"^
  465. del /Q "%BinDir%\Lib\site-packages\salt\states\ceph.*" 1>nul
  466. If Exist "%BinDir%\Lib\site-packages\salt\states\cron.py"^
  467. del /Q "%BinDir%\Lib\site-packages\salt\states\cron.*" 1>nul
  468. If Exist "%BinDir%\Lib\site-packages\salt\states\csf.py"^
  469. del /Q "%BinDir%\Lib\site-packages\salt\states\csf.*" 1>nul
  470. If Exist "%BinDir%\Lib\site-packages\salt\states\debconfmod.py"^
  471. del /Q "%BinDir%\Lib\site-packages\salt\states\debconfmod.*" 1>nul
  472. If Exist "%BinDir%\Lib\site-packages\salt\states\eselect.py"^
  473. del /Q "%BinDir%\Lib\site-packages\salt\states\eselect.*" 1>nul
  474. If Exist "%BinDir%\Lib\site-packages\salt\states\ethtool.py"^
  475. del /Q "%BinDir%\Lib\site-packages\salt\states\ethtool.*" 1>nul
  476. If Exist "%BinDir%\Lib\site-packages\salt\states\firewalld.py"^
  477. del /Q "%BinDir%\Lib\site-packages\salt\states\firewalld.*" 1>nul
  478. If Exist "%BinDir%\Lib\site-packages\salt\states\glusterfs.py"^
  479. del /Q "%BinDir%\Lib\site-packages\salt\states\glusterfs.*" 1>nul
  480. If Exist "%BinDir%\Lib\site-packages\salt\states\gnomedesktop.py"^
  481. del /Q "%BinDir%\Lib\site-packages\salt\states\gnomedesktop.*" 1>nul
  482. If Exist "%BinDir%\Lib\site-packages\salt\states\htpasswd.py"^
  483. del /Q "%BinDir%\Lib\site-packages\salt\states\htpasswd.*" 1>nul
  484. If Exist "%BinDir%\Lib\site-packages\salt\states\incron.py"^
  485. del /Q "%BinDir%\Lib\site-packages\salt\states\incron.*" 1>nul
  486. If Exist "%BinDir%\Lib\site-packages\salt\states\ipset.py"^
  487. del /Q "%BinDir%\Lib\site-packages\salt\states\ipset.*" 1>nul
  488. If Exist "%BinDir%\Lib\site-packages\salt\states\iptables.py"^
  489. del /Q "%BinDir%\Lib\site-packages\salt\states\iptables.*" 1>nul
  490. If Exist "%BinDir%\Lib\site-packages\salt\states\k8s.py"^
  491. del /Q "%BinDir%\Lib\site-packages\salt\states\k8s.*" 1>nul
  492. If Exist "%BinDir%\Lib\site-packages\salt\states\kapacitor.py"^
  493. del /Q "%BinDir%\Lib\site-packages\salt\states\kapacitor.*" 1>nul
  494. If Exist "%BinDir%\Lib\site-packages\salt\states\keyboard.py"^
  495. del /Q "%BinDir%\Lib\site-packages\salt\states\keyboard.*" 1>nul
  496. If Exist "%BinDir%\Lib\site-packages\salt\states\keystone.py"^
  497. del /Q "%BinDir%\Lib\site-packages\salt\states\keystone.*" 1>nul
  498. If Exist "%BinDir%\Lib\site-packages\salt\states\kmod.py"^
  499. del /Q "%BinDir%\Lib\site-packages\salt\states\kmod.*" 1>nul
  500. If Exist "%BinDir%\Lib\site-packages\salt\states\layman.py"^
  501. del /Q "%BinDir%\Lib\site-packages\salt\states\layman.*" 1>nul
  502. If Exist "%BinDir%\Lib\site-packages\salt\states\linux*"^
  503. del /Q "%BinDir%\Lib\site-packages\salt\states\linux*" 1>nul
  504. If Exist "%BinDir%\Lib\site-packages\salt\states\lxc.py"^
  505. del /Q "%BinDir%\Lib\site-packages\salt\states\lxc.*" 1>nul
  506. If Exist "%BinDir%\Lib\site-packages\salt\states\mac_*"^
  507. del /Q "%BinDir%\Lib\site-packages\salt\states\mac_*" 1>nul
  508. If Exist "%BinDir%\Lib\site-packages\salt\states\makeconf.py"^
  509. del /Q "%BinDir%\Lib\site-packages\salt\states\makeconf.*" 1>nul
  510. If Exist "%BinDir%\Lib\site-packages\salt\states\mdadm.py"^
  511. del /Q "%BinDir%\Lib\site-packages\salt\states\mdadm.*" 1>nul
  512. If Exist "%BinDir%\Lib\site-packages\salt\states\monit.py"^
  513. del /Q "%BinDir%\Lib\site-packages\salt\states\monit.*" 1>nul
  514. If Exist "%BinDir%\Lib\site-packages\salt\states\mount.py"^
  515. del /Q "%BinDir%\Lib\site-packages\salt\states\mount.*" 1>nul
  516. If Exist "%BinDir%\Lib\site-packages\salt\states\nftables.py"^
  517. del /Q "%BinDir%\Lib\site-packages\salt\states\nftables.*" 1>nul
  518. If Exist "%BinDir%\Lib\site-packages\salt\states\pcs.py"^
  519. del /Q "%BinDir%\Lib\site-packages\salt\states\pcs.*" 1>nul
  520. If Exist "%BinDir%\Lib\site-packages\salt\states\pkgng.py"^
  521. del /Q "%BinDir%\Lib\site-packages\salt\states\pkgng.*" 1>nul
  522. If Exist "%BinDir%\Lib\site-packages\salt\states\portage_config.py"^
  523. del /Q "%BinDir%\Lib\site-packages\salt\states\portage_config.*" 1>nul
  524. If Exist "%BinDir%\Lib\site-packages\salt\states\powerpath.py"^
  525. del /Q "%BinDir%\Lib\site-packages\salt\states\powerpath.*" 1>nul
  526. If Exist "%BinDir%\Lib\site-packages\salt\states\quota.py"^
  527. del /Q "%BinDir%\Lib\site-packages\salt\states\quota.*" 1>nul
  528. If Exist "%BinDir%\Lib\site-packages\salt\states\redismod.py"^
  529. del /Q "%BinDir%\Lib\site-packages\salt\states\redismod.*" 1>nul
  530. If Exist "%BinDir%\Lib\site-packages\salt\states\smartos.py"^
  531. del /Q "%BinDir%\Lib\site-packages\salt\states\smartos.*" 1>nul
  532. If Exist "%BinDir%\Lib\site-packages\salt\states\snapper.py"^
  533. del /Q "%BinDir%\Lib\site-packages\salt\states\snapper.*" 1>nul
  534. If Exist "%BinDir%\Lib\site-packages\salt\states\ssh_*"^
  535. del /Q "%BinDir%\Lib\site-packages\salt\states\ssh_*" 1>nul
  536. If Exist "%BinDir%\Lib\site-packages\salt\states\supervisord.py"^
  537. del /Q "%BinDir%\Lib\site-packages\salt\states\supervisord.*" 1>nul
  538. If Exist "%BinDir%\Lib\site-packages\salt\states\sysrc.py"^
  539. del /Q "%BinDir%\Lib\site-packages\salt\states\sysrc.*" 1>nul
  540. If Exist "%BinDir%\Lib\site-packages\salt\states\trafficserver.py"^
  541. del /Q "%BinDir%\Lib\site-packages\salt\states\trafficserver.*" 1>nul
  542. If Exist "%BinDir%\Lib\site-packages\salt\states\tuned.py"^
  543. del /Q "%BinDir%\Lib\site-packages\salt\states\tuned.*" 1>nul
  544. If Exist "%BinDir%\Lib\site-packages\salt\states\vbox_guest.py"^
  545. del /Q "%BinDir%\Lib\site-packages\salt\states\vbox_guest.*" 1>nul
  546. If Exist "%BinDir%\Lib\site-packages\salt\states\virt.py"^
  547. del /Q "%BinDir%\Lib\site-packages\salt\states\virt.*" 1>nul
  548. If Exist "%BinDir%\Lib\site-packages\salt\states\zfs.py"^
  549. del /Q "%BinDir%\Lib\site-packages\salt\states\zfs.*" 1>nul
  550. If Exist "%BinDir%\Lib\site-packages\salt\states\zpool.py"^
  551. del /Q "%BinDir%\Lib\site-packages\salt\states\zpool.*" 1>nul
  552. :: Remove Unneeded Components
  553. If Exist "%BinDir%\Lib\site-packages\salt\cloud"^
  554. rd /S /Q "%BinDir%\Lib\site-packages\salt\cloud" 1>nul
  555. If Exist "%BinDir%\Scripts\salt-unity*"^
  556. del /Q "%BinDir%\Scripts\salt-unity*" 1>nul
  557. @echo.
  558. @echo Building the installer...
  559. @echo ----------------------------------------------------------------------
  560. :: Make the Master installer if the nullsoft script exists
  561. If Exist "%InsDir%\Salt-Setup.nsi"^
  562. makensis.exe /DSaltVersion=%Version% /DPythonVersion=%Python% "%InsDir%\Salt-Setup.nsi"
  563. :: Remove files not needed for Salt Minion
  564. :: salt
  565. :: salt has to be removed individually (can't wildcard it)
  566. If Exist "%BinDir%\Scripts\salt"^
  567. del /Q "%BinDir%\Scripts\salt" 1>nul
  568. If Exist "%BinDir%\Scripts\salt.exe"^
  569. del /Q "%BinDir%\Scripts\salt.exe" 1>nul
  570. If Exist "%BldDir%\salt.bat"^
  571. del /Q "%BldDir%\salt.bat" 1>nul
  572. :: salt-key
  573. If Exist "%BinDir%\Scripts\salt-key*"^
  574. del /Q "%BinDir%\Scripts\salt-key*" 1>nul
  575. If Exist "%BldDir%\salt-key.bat"^
  576. del /Q "%BldDir%\salt-key.bat" 1>nul
  577. :: salt-master
  578. If Exist "%BinDir%\Scripts\salt-master*"^
  579. del /Q "%BinDir%\Scripts\salt-master*" 1>nul
  580. If Exist "%BldDir%\salt-master.bat"^
  581. del /Q "%BldDir%\salt-master.bat" 1>nul
  582. :: salt-run
  583. If Exist "%BinDir%\Scripts\salt-run*"^
  584. del /Q "%BinDir%\Scripts\salt-run*" 1>nul
  585. If Exist "%BldDir%\salt-run.bat"^
  586. del /Q "%BldDir%\salt-run.bat" 1>nul
  587. :: Remove the master config file
  588. if Exist "%CnfDir%\master"^
  589. del /Q "%CnfDir%\master" 1>nul
  590. :: Make the Salt Minion Installer
  591. makensis.exe /DSaltVersion=%Version% /DPythonVersion=%Python% "%InsDir%\Salt-Minion-Setup.nsi"
  592. @echo.
  593. @echo.
  594. @echo ======================================================================
  595. @echo Script completed...
  596. @echo ======================================================================
  597. @echo Installation file can be found in the following directory:
  598. @echo %InsDir%
  599. :done
  600. if [%Version%] == [] pause