Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

466 lines
20 KiB

  1. REM
  2. REM
  3. REM Generate fxsclnt.msi from fxscln_.msi
  4. REM 1) create fxsclnt.cab for client bins and stream that in
  5. REM 2) stream in custom.dll (custom action)
  6. REM 3) Update file table with new version and size info (for this build)
  7. REM
  8. REM Assumes i386 build env (we don't build the fax client MSI for any other archs)
  9. REM
  10. REM Contact: moolyb (originaly taken from TS client - contact is nadima)
  11. REM
  12. set MSINAME=.\fxsclnt.msi
  13. set CABNAME=.\fxsclnt.cab
  14. set BINARIESDIR=%_NTPOSTBLD%
  15. set CLIENTDIR=%_NTPOSTBLD%\faxclients
  16. set CLIENTBINARIES=%CLIENTDIR%\win9x
  17. set CLIENTBINARIESNT4=%CLIENTDIR%\NT4
  18. REM make tempdirs
  19. if exist .\tmpcab (
  20. rmdir /q /s .\tmpcab
  21. if errorlevel 1 call errmsg.cmd "err deleting tmpcab dir"& goto errend
  22. )
  23. mkdir .\tmpcab
  24. if errorlevel 1 call errmsg.cmd "err creating .\tmpcab dir"& goto errend
  25. REM verify source files
  26. if not exist %CLIENTBINARIES%\fxsclnt.exe (
  27. call errmsg.cmd "%CLIENTBINARIES%\fxsclnt.exe is missing"
  28. goto errend
  29. )
  30. if not exist %CLIENTBINARIESNT4%\fxsapi.dll (
  31. call errmsg.cmd "%CLIENTBINARIESNT4%\fxsapi.dll is missing"
  32. goto errend
  33. )
  34. if not exist %CLIENTBINARIES%\fxsclntr.dll (
  35. call errmsg.cmd "%CLIENTBINARIES%\fxsclntr.dll is missing"
  36. goto errend
  37. )
  38. if not exist %CLIENTBINARIES%\fxsapi.dll (
  39. call errmsg.cmd "%CLIENTBINARIES%\fxsapi.dll is missing"
  40. goto errend
  41. )
  42. if not exist %CLIENTBINARIES%\fxscover.exe (
  43. call errmsg.cmd "%CLIENTBINARIES%\fxscover.exe is missing"
  44. goto errend
  45. )
  46. if not exist %CLIENTBINARIES%\fxsext32.dll (
  47. call errmsg.cmd "%CLIENTBINARIES%\fxsext32.dll is missing"
  48. goto errend
  49. )
  50. if not exist %CLIENTBINARIES%\fxssend.exe (
  51. call errmsg.cmd "%CLIENTBINARIES%\fxssend.exe is missing"
  52. goto errend
  53. )
  54. if not exist %CLIENTBINARIES%\fxstiff.dll (
  55. call errmsg.cmd "%CLIENTBINARIES%\fxstiff.dll is missing"
  56. goto errend
  57. )
  58. if not exist %CLIENTBINARIES%\fxsxp32.dll (
  59. call errmsg.cmd "%CLIENTBINARIES%\fxsxp32.dll is missing"
  60. goto errend
  61. )
  62. if not exist %CLIENTBINARIES%\win95\unidrv.hlp (
  63. call errmsg.cmd "%CLIENTBINARIES%\win95\unidrv.hlp is missing"
  64. goto errend
  65. )
  66. if not exist %CLIENTBINARIES%\win95\unidrv.dll (
  67. call errmsg.cmd "%CLIENTBINARIES%\win95\unidrv.dll is missing"
  68. goto errend
  69. )
  70. if not exist %CLIENTBINARIES%\win95\iconlib.dll (
  71. call errmsg.cmd "%CLIENTBINARIES%\win95\iconlib.dll is missing"
  72. goto errend
  73. )
  74. if not exist %CLIENTBINARIES%\fxsdrv16.drv (
  75. call errmsg.cmd "%CLIENTBINARIES%\fxsdrv16.drv is missing"
  76. goto errend
  77. )
  78. if not exist %CLIENTBINARIES%\fxsdrv32.dll (
  79. call errmsg.cmd "%CLIENTBINARIES%\fxsdrv32.dll is missing"
  80. goto errend
  81. )
  82. if not exist %CLIENTBINARIES%\fxswzrd.dll (
  83. call errmsg.cmd "%CLIENTBINARIES%\fxswzrd.dll is missing"
  84. goto errend
  85. )
  86. if not exist %CLIENTBINARIES%\win98\unidrv.dll (
  87. call errmsg.cmd "%CLIENTBINARIES%\win98\unidrv.dll is missing"
  88. goto errend
  89. )
  90. if not exist %CLIENTBINARIES%\win98\unidrv.hlp (
  91. call errmsg.cmd "%CLIENTBINARIES%\win98\unidrv.hlp is missing"
  92. goto errend
  93. )
  94. if not exist %CLIENTBINARIES%\win98\iconlib.dll (
  95. call errmsg.cmd "%CLIENTBINARIES%\win98\iconlib.dll is missing"
  96. goto errend
  97. )
  98. if not exist %BINARIESDIR%\fxsdrv4.dll (
  99. call errmsg.cmd "%BINARIESDIR%\fxsdrv4.dll is missing"
  100. goto errend
  101. )
  102. if not exist %BINARIESDIR%\clntcusa.dll (
  103. call errmsg.cmd "%BINARIESDIR%\clntcusa.dll is missing"
  104. goto errend
  105. )
  106. if not exist %BINARIESDIR%\clntcusu.dll (
  107. call errmsg.cmd "%BINARIESDIR%\clntcusu.dll is missing"
  108. goto errend
  109. )
  110. REM *****************************************************
  111. REM * Update the product name in setup.ini
  112. REM *****************************************************
  113. if exist setup.ini del setup.ini
  114. copy fxssetu_.ini setup.ini
  115. if errorlevel 1 call errmsg.cmd "err copying fxssetu_.ini to setup.ini" & goto errend
  116. %RazzleToolPath%\FxsUpdateIni.exe .\setup.ini "Microsoft Shared Fax Client"
  117. REM rename files
  118. copy %CLIENTBINARIES%\fxscldwn.chm .\tmpcab\FXS_fxsclnt.chm
  119. if errorlevel 1 call errmsg.cmd "err copying fxscldwn.chm to .\tmpcab"& goto errend
  120. copy %CLIENTBINARIES%\fxscov_d.chm .\tmpcab\FXS_fxscover.chm
  121. if errorlevel 1 call errmsg.cmd "err copying fxscov_d.chm to .\tmpcab"& goto errend
  122. copy %CLIENTBINARIES%\fxsclnt.exe .\tmpcab\W9X_fxsclnt.exe
  123. if errorlevel 1 call errmsg.cmd "err copying fxsclnt.exe to .\tmpcab"& goto errend
  124. copy %CLIENTBINARIES%\fxsclntr.dll .\tmpcab\W9X_fxsclntr.dll
  125. if errorlevel 1 call errmsg.cmd "err copying fxsclntr.dll to .\tmpcab"& goto errend
  126. copy %CLIENTBINARIES%\fxsapi.dll .\tmpcab\W9X_fxsapi.dll
  127. if errorlevel 1 call errmsg.cmd "err copying fxsapi.dll to .\tmpcab"& goto errend
  128. copy %CLIENTBINARIES%\fxscover.exe .\tmpcab\W9X_fxscover.exe
  129. if errorlevel 1 call errmsg.cmd "err copying fxscover.exe to .\tmpcab"& goto errend
  130. copy %CLIENTBINARIES%\fxsext32.dll .\tmpcab\W9X_fxsext32.dll
  131. if errorlevel 1 call errmsg.cmd "err copying fxsext32.dll to .\tmpcab"& goto errend
  132. copy %CLIENTBINARIES%\fxssend.exe .\tmpcab\W9X_fxssend.exe
  133. if errorlevel 1 call errmsg.cmd "err copying fxssend.exe to .\tmpcab"& goto errend
  134. copy %CLIENTBINARIES%\fxstiff.dll .\tmpcab\W9X_fxstiff.dll
  135. if errorlevel 1 call errmsg.cmd "err copying fxstiff.dll to .\tmpcab"& goto errend
  136. copy %CLIENTBINARIES%\fxsxp32.dll .\tmpcab\W9X_fxsxp32.dll
  137. if errorlevel 1 call errmsg.cmd "err copying fxsxp32.dll to .\tmpcab"& goto errend
  138. copy %CLIENTBINARIES%\win95\unidrv.hlp .\tmpcab\W95_unidrv.hlp
  139. if errorlevel 1 call errmsg.cmd "err copying win95\unidrv.hlp to .\tmpcab"& goto errend
  140. copy %CLIENTBINARIES%\win95\unidrv.dll .\tmpcab\W95_unidrv.dll
  141. if errorlevel 1 call errmsg.cmd "err copying win95\unidrv.dll to .\tmpcab"& goto errend
  142. copy %CLIENTBINARIES%\win95\iconlib.dll .\tmpcab\W95_iconlib.dll
  143. if errorlevel 1 call errmsg.cmd "err copying win95\iconlib.dll to .\tmpcab"& goto errend
  144. copy %CLIENTBINARIES%\fxsdrv16.drv .\tmpcab\W9X_fxsdrv16.drv
  145. if errorlevel 1 call errmsg.cmd "err copying fxsdrv16.drv to .\tmpcab"& goto errend
  146. copy %CLIENTBINARIES%\fxsdrv32.dll .\tmpcab\W9X_fxsdrv32.dll
  147. if errorlevel 1 call errmsg.cmd "err copying fxsdrv32.dll to .\tmpcab"& goto errend
  148. copy %CLIENTBINARIES%\fxswzrd.dll .\tmpcab\W9X_fxswzrd.dll
  149. if errorlevel 1 call errmsg.cmd "err copying fxswzrd.dll to .\tmpcab"& goto errend
  150. copy %CLIENTBINARIES%\win98\unidrv.dll .\tmpcab\W98_unidrv.dll
  151. if errorlevel 1 call errmsg.cmd "err copying win98\unidrv.dll to .\tmpcab"& goto errend
  152. copy %CLIENTBINARIES%\win98\unidrv.hlp .\tmpcab\W98_unidrv.hlp
  153. if errorlevel 1 call errmsg.cmd "err copying win98\unidrv.hlp to .\tmpcab"& goto errend
  154. copy %CLIENTBINARIES%\win98\iconlib.dll .\tmpcab\W98_iconlib.dll
  155. if errorlevel 1 call errmsg.cmd "err copying win98\iconlib.dll to .\tmpcab"& goto errend
  156. copy %BINARIESDIR%\fxsdrv4.dll .\tmpcab\NT4_fxsdrv4.dll
  157. if errorlevel 1 call errmsg.cmd "err copying fxsdrv4.dll to .\tmpcab"& goto errend
  158. copy .\fxssetup.exe .\tmpcab\FXS_setup.exe
  159. if errorlevel 1 call errmsg.cmd "err copying fxssetup.exe to .\tmpcab"& goto errend
  160. copy .\setup.ini .\tmpcab\FXS_setup.ini
  161. if errorlevel 1 call errmsg.cmd "err copying setup.ini to .\tmpcab"& goto errend
  162. copy .\fxsstrap.exe .\tmpcab\FXS_strap.exe
  163. if errorlevel 1 call errmsg.cmd "err copying fxsstrap.exe to .\tmpcab"& goto errend
  164. copy .\fxsmsvcrt.dll .\tmpcab\FXS_msvcrt.dll
  165. if errorlevel 1 call errmsg.cmd "err copying fxsmsvcrt.dll to .\tmpcab"& goto errend
  166. copy %CLIENTBINARIESNT4%\fxsapi.dll .\tmpcab\NT4_fxsapi.dll
  167. if errorlevel 1 call errmsg.cmd "err copying fxsapi.dll to .\tmpcab"& goto errend
  168. REM create a catalog file for the content of the cabinet file
  169. call %RazzleToolPath%\deltacat %CLIENTDIR%\tmpcab
  170. if errorlevel 1 (
  171. call errmsg.cmd "failed to generate catalog file"
  172. goto errend
  173. )
  174. copy /y %CLIENTDIR%\tmpcab\delta.cat %BINARIESDIR%\fxscat.cat
  175. if errorlevel 1 call errmsg.cmd "err copying delta.cat to fxscat.cat" & goto errend
  176. del %CLIENTDIR%\tmpcab\delta.*
  177. REM now generate the cab file
  178. if exist %CABNAME% (
  179. del %CABNAME%
  180. )
  181. cabarc -s 6144 -m MSZIP -i 1 n %CABNAME% .\tmpcab\*.*
  182. if errorlevel 1 (
  183. call errmsg.cmd "cabarc failed to generate .\data.cab"
  184. goto errend
  185. )
  186. rmdir /q /s .\tmpcab
  187. if errorlevel 1 call errmsg.cmd "err deleting tmpcab dir"& goto errend
  188. REM *****************************************************
  189. REM * copy the CAB to the drop location *
  190. REM *****************************************************
  191. copy /y %CABNAME% %BINARIESDIR%
  192. if errorlevel 1 call errmsg.cmd "err copying CAB to drop location" & goto errend
  193. REM *****************************************************
  194. REM * Update the MSI *
  195. REM *****************************************************
  196. if exist %MSINAME% del %MSINAME%
  197. copy .\fxscln_.msi %MSINAME%
  198. if errorlevel 1 call errmsg.cmd "err copying fxscln_.msi to %MSINAME%" & goto errend
  199. REM *****************************************************
  200. REM * Stream in the new custom action DLLs
  201. REM *****************************************************
  202. cscript.exe %RazzleToolPath%\fxswistream.vbs %MSINAME% %BINARIESDIR%\clntcusa.dll CaForAnsii
  203. if errorlevel 1 (
  204. call errmsg.cmd "wistream failed to stream in %BINARIESDIR%\clntcusa.dll"
  205. goto errend
  206. )
  207. cscript.exe %RazzleToolPath%\fxswistream.vbs %MSINAME% %BINARIESDIR%\clntcusu.dll CaForUnicode
  208. if errorlevel 1 (
  209. call errmsg.cmd "wistream failed to stream in %BINARIESDIR%\clntcusa.dll"
  210. goto errend
  211. )
  212. REM *****************************************************
  213. REM * Create the client file tree under %_NT386TREE%\faxclients
  214. REM *****************************************************
  215. if not exist %CLIENTDIR% (
  216. call errmsg.cmd "err client dir is not there"& goto errend
  217. )
  218. if not exist %CLIENTDIR%\PrgFiles (
  219. mkdir %CLIENTDIR%\PrgFiles
  220. if errorlevel 1 call errmsg.cmd "err creating %CLIENTDIR%\PrgFiles dir"& goto errend
  221. )
  222. if not exist %CLIENTDIR%\PrgFiles\msfax (
  223. mkdir %CLIENTDIR%\PrgFiles\msfax
  224. if errorlevel 1 call errmsg.cmd "err creating %CLIENTDIR%\PrgFiles\msfax dir"& goto errend
  225. )
  226. if not exist %CLIENTDIR%\PrgFiles\msfax\Bin (
  227. mkdir %CLIENTDIR%\PrgFiles\msfax\Bin
  228. if errorlevel 1 call errmsg.cmd "err creating %CLIENTDIR%\PrgFiles\msfax\Bin dir"& goto errend
  229. )
  230. if not exist %CLIENTDIR%\PrgFiles\msfax\Bin9x (
  231. mkdir %CLIENTDIR%\PrgFiles\msfax\Bin9x
  232. if errorlevel 1 call errmsg.cmd "err creating %CLIENTDIR%\PrgFiles\msfax\Bin9x dir"& goto errend
  233. )
  234. if not exist %CLIENTDIR%\System (
  235. mkdir %CLIENTDIR%\System
  236. if errorlevel 1 call errmsg.cmd "err creating %CLIENTDIR%\System dir"& goto errend
  237. )
  238. if not exist %CLIENTDIR%\System\W95 (
  239. mkdir %CLIENTDIR%\System\W95
  240. if errorlevel 1 call errmsg.cmd "err creating %CLIENTDIR%\System\W95 dir"& goto errend
  241. )
  242. if not exist %CLIENTDIR%\System\W98 (
  243. mkdir %CLIENTDIR%\System\W98
  244. if errorlevel 1 call errmsg.cmd "err creating %CLIENTDIR%\System\W98 dir"& goto errend
  245. )
  246. if not exist %CLIENTDIR%\System32 (
  247. mkdir %CLIENTDIR%\System32
  248. if errorlevel 1 call errmsg.cmd "err creating %CLIENTDIR%\System32 dir"& goto errend
  249. )
  250. if not exist %CLIENTDIR%\System32\NT4 (
  251. mkdir %CLIENTDIR%\System32\NT4
  252. if errorlevel 1 call errmsg.cmd "err creating %CLIENTDIR%\System32\NT4 dir"& goto errend
  253. )
  254. if not exist %CLIENTDIR%\Windows (
  255. mkdir %CLIENTDIR%\Windows
  256. if errorlevel 1 call errmsg.cmd "err creating %CLIENTDIR%\Windows dir"& goto errend
  257. )
  258. if not exist %CLIENTDIR%\Windows\addins (
  259. mkdir %CLIENTDIR%\Windows\addins
  260. if errorlevel 1 call errmsg.cmd "err creating %CLIENTDIR%\Windows\addins dir"& goto errend
  261. )
  262. if not exist %CLIENTDIR%\Windows\help (
  263. mkdir %CLIENTDIR%\Windows\help
  264. if errorlevel 1 call errmsg.cmd "err creating %CLIENTDIR%\Windows\help dir"& goto errend
  265. )
  266. REM *****************************************************
  267. REM * Copy the client files to %_NT386TREE%\faxclients
  268. REM *****************************************************
  269. REM [FaxFiles.Clients.Fax]
  270. REM copy /y .\fxsclnt.msi %CLIENTDIR%
  271. if errorlevel 1 call errmsg.cmd "err copying fxsclnt.msi to client share"& goto errend
  272. REM [FaxFiles.Clients.Fax.PrgFiles.msfax.Bin]
  273. copy /y %BINARIESDIR%\fxsclnt.exe %CLIENTDIR%\PrgFiles\msfax\Bin
  274. if errorlevel 1 call errmsg.cmd "err copying fxsclnt.exe to bin in client share"& goto errend
  275. copy /y %BINARIESDIR%\fxsclntr.dll %CLIENTDIR%\PrgFiles\msfax\Bin
  276. if errorlevel 1 call errmsg.cmd "err copying fxsclntr.dll to bin in client share"& goto errend
  277. copy /y %BINARIESDIR%\fxscover.exe %CLIENTDIR%\PrgFiles\msfax\Bin
  278. if errorlevel 1 call errmsg.cmd "err copying fxscover.exe to bin in client share"& goto errend
  279. copy /y %BINARIESDIR%\fxsext32.dll %CLIENTDIR%\PrgFiles\msfax\Bin
  280. if errorlevel 1 call errmsg.cmd "err copying fxsext32.dll to bin in client share"& goto errend
  281. copy /y %BINARIESDIR%\fxssend.exe %CLIENTDIR%\PrgFiles\msfax\Bin
  282. if errorlevel 1 call errmsg.cmd "err copying fxssend.exe to bin in client share"& goto errend
  283. copy /y %BINARIESDIR%\fxstiff.dll %CLIENTDIR%\PrgFiles\msfax\Bin
  284. if errorlevel 1 call errmsg.cmd "err copying fxstiff.dll to bin in client share"& goto errend
  285. REM [FaxFiles.Clients.Fax.PrgFiles.msfax.Bin9x]
  286. copy /y %CLIENTBINARIES%\fxsclnt.exe %CLIENTDIR%\PrgFiles\msfax\Bin9x
  287. if errorlevel 1 call errmsg.cmd "err copying fxsclnt.exe to bin95 in client share"& goto errend
  288. copy /y %CLIENTBINARIES%\fxsclntr.dll %CLIENTDIR%\PrgFiles\msfax\Bin9x
  289. if errorlevel 1 call errmsg.cmd "err copying fxsclntr.dll to bin95 in client share"& goto errend
  290. copy /y %CLIENTBINARIES%\fxscover.exe %CLIENTDIR%\PrgFiles\msfax\Bin9x
  291. if errorlevel 1 call errmsg.cmd "err copying fxscover.exe to bin95 in client share"& goto errend
  292. copy /y %CLIENTBINARIES%\fxsext32.dll %CLIENTDIR%\PrgFiles\msfax\Bin9x
  293. if errorlevel 1 call errmsg.cmd "err copying fxsext32.dll to bin95 in client share"& goto errend
  294. copy /y %CLIENTBINARIES%\fxssend.exe %CLIENTDIR%\PrgFiles\msfax\Bin9x
  295. if errorlevel 1 call errmsg.cmd "err copying fxssend.exe to bin95 in client share"& goto errend
  296. REM [FaxFiles.Clients.Fax.System]
  297. copy /y %CLIENTBINARIES%\fxsapi.dll %CLIENTDIR%\System
  298. if errorlevel 1 call errmsg.cmd "err copying fxsapi.dll to system in client share"& goto errend
  299. copy /y %CLIENTBINARIES%\fxsdrv16.drv %CLIENTDIR%\System
  300. if errorlevel 1 call errmsg.cmd "err copying fxsdrv16.drv to system in client share"& goto errend
  301. copy /y %CLIENTBINARIES%\fxsdrv32.dll %CLIENTDIR%\System
  302. if errorlevel 1 call errmsg.cmd "err copying fxsdrv32.dll to system in client share"& goto errend
  303. copy /y %CLIENTBINARIES%\fxstiff.dll %CLIENTDIR%\System
  304. if errorlevel 1 call errmsg.cmd "err copying fxstiff.dll to system in client share"& goto errend
  305. copy /y %CLIENTBINARIES%\fxswzrd.dll %CLIENTDIR%\System
  306. if errorlevel 1 call errmsg.cmd "err copying fxswzrd.dll to system in client share"& goto errend
  307. copy /y %CLIENTBINARIES%\fxsxp32.dll %CLIENTDIR%\System
  308. if errorlevel 1 call errmsg.cmd "err copying fxsxp32.dll to system in client share"& goto errend
  309. copy /y %BINARIESDIR%\mfc42.dll %CLIENTDIR%\System
  310. if errorlevel 1 call errmsg.cmd "err copying mfc42.dll to system in client share"& goto errend
  311. REM [FaxFiles.Clients.Fax.System.W95]
  312. copy /y %CLIENTBINARIES%\Win95\iconlib.dll %CLIENTDIR%\System\W95
  313. if errorlevel 1 call errmsg.cmd "err copying iconlib.dll to system95 in client share"& goto errend
  314. copy /y %CLIENTBINARIES%\Win95\unidrv.dll %CLIENTDIR%\System\W95
  315. if errorlevel 1 call errmsg.cmd "err copying unidrv.dll to system95 in client share"& goto errend
  316. copy /y %CLIENTBINARIES%\Win95\unidrv.hlp %CLIENTDIR%\System\W95
  317. if errorlevel 1 call errmsg.cmd "err copying unidrv.hlp to system95 in client share"& goto errend
  318. REM [FaxFiles.Clients.Fax.System.W98]
  319. copy /y %CLIENTBINARIES%\Win98\iconlib.dll %CLIENTDIR%\System\W98
  320. if errorlevel 1 call errmsg.cmd "err copying iconlib.dll to system98 in client share"& goto errend
  321. copy /y %CLIENTBINARIES%\Win98\unidrv.dll %CLIENTDIR%\System\W98
  322. if errorlevel 1 call errmsg.cmd "err copying unidrv.dll to system98 in client share"& goto errend
  323. copy /y %CLIENTBINARIES%\Win98\unidrv.hlp %CLIENTDIR%\System\W98
  324. if errorlevel 1 call errmsg.cmd "err copying unidrv.hlp to system98 in client share"& goto errend
  325. REM [FaxFiles.Clients.Fax.System32]
  326. copy /y %BINARIESDIR%\fxsapi.dll %CLIENTDIR%\System32
  327. if errorlevel 1 call errmsg.cmd "err copying fxsapi.dll to system32 in client share"& goto errend
  328. copy /y %BINARIESDIR%\fxsres.dll %CLIENTDIR%\System32
  329. if errorlevel 1 call errmsg.cmd "err copying fxsres.dll to system32 in client share"& goto errend
  330. copy /y %BINARIESDIR%\fxsxp32.dll %CLIENTDIR%\System32
  331. if errorlevel 1 call errmsg.cmd "err copying fxsxp32.dll to system32 in client share"& goto errend
  332. copy /y %BINARIESDIR%\mfc42u.dll %CLIENTDIR%\System32
  333. if errorlevel 1 call errmsg.cmd "err copying mfc42u.dll to system32 in client share"& goto errend
  334. copy /y %BINARIESDIR%\msvcp60.dll %CLIENTDIR%\System32
  335. if errorlevel 1 call errmsg.cmd "err copying msvcp60.dll to system32 in client share"& goto errend
  336. copy /y .\fxsmsvcrt.dll %CLIENTDIR%\System32\msvcrt.dll
  337. if errorlevel 1 call errmsg.cmd "err copying fxsmsvcrt.dll to system32 in client share"& goto errend
  338. REM [FaxFiles.Clients.Fax.System32.NT4]
  339. copy /y %CLIENTBINARIESNT4%\fxsapi.dll %CLIENTDIR%\System32\NT4
  340. if errorlevel 1 call errmsg.cmd "err copying fxsapi.dll to system32 nt4 in client share"& goto errend
  341. REM [FaxFiles.Clients.Fax.Windows.addins]
  342. copy /y %BINARIESDIR%\fxsext.ecf %CLIENTDIR%\Windows\addins
  343. if errorlevel 1 call errmsg.cmd "err copying fxsext.ecf to addins in client share"& goto errend
  344. REM [FaxFiles.Clients.Fax.Windows.help]
  345. copy /y %CLIENTBINARIES%\fxscldwn.chm %CLIENTDIR%\Windows\help\fxsclnt.chm
  346. if errorlevel 1 call errmsg.cmd "err copying fxscldwn.chm to help in client share"& goto errend
  347. copy /y %BINARIESDIR%\fxscl_s.hlp %CLIENTDIR%\Windows\help\fxsclnt.hlp
  348. if errorlevel 1 call errmsg.cmd "err copying fxscl_s.hlp to help in client share"& goto errend
  349. copy /y %CLIENTBINARIES%\fxscov_d.chm %CLIENTDIR%\Windows\help\fxscover.chm
  350. if errorlevel 1 call errmsg.cmd "err copying fxscov_d.chm to help in client share"& goto errend
  351. REM *****************************************************
  352. REM * Update the filetable with file size and ver info *
  353. REM * assumes the source files are in the same directory*
  354. REM *****************************************************
  355. call cscript.exe %RazzleToolPath%\fxswifilver.vbs /U %CLIENTDIR%\%MSINAME%
  356. if errorlevel 1 (
  357. call errmsg.cmd "wifilver failed"
  358. goto errend
  359. )
  360. REM *****************************************************
  361. REM * fix the MSI for InstallShield bugs
  362. REM *****************************************************
  363. call cscript.exe %RazzleToolPath%\fxsWiRunSQL.vbs %CLIENTDIR%\%MSINAME% "UPDATE Control SET Control.Attributes=3 WHERE (Control.Type='RadioButtonGroup' OR Control.Type='PushButton') AND Control.Attributes=1048579"
  364. if errorlevel 1 (
  365. call errmsg.cmd "fxsWiRunSQL run1 failed"
  366. goto errend
  367. )
  368. call cscript.exe %RazzleToolPath%\fxsWiRunSQL.vbs %CLIENTDIR%\%MSINAME% "DELETE FROM AdvtExecuteSequence WHERE AdvtExecuteSequence.Action = 'DLLWrapStartup' or AdvtExecuteSequence.Action = 'DLLWrapCleanup'"
  369. if errorlevel 1 (
  370. call errmsg.cmd "fxsWiRunSQL run2 failed"
  371. goto errend
  372. )
  373. REM *****************************************************
  374. REM * Finally, copy the MSI to the drop location *
  375. REM *****************************************************
  376. copy /y %CLIENTDIR%\%MSINAME% %BINARIESDIR%
  377. if errorlevel 1 call errmsg.cmd "err copying msi to drop location"& goto errend
  378. call logmsg.cmd "fxsmsigen.cmd COMPLETED OK!"
  379. REM we're done
  380. goto end
  381. :errend
  382. seterror.exe 1
  383. goto :EOF
  384. :end
  385. seterror.exe 0
  386. goto :EOF