build_pkg.bat 32 KB

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