Source code of Windows XP (NT5)
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.

77 lines
2.5 KiB

  1. Rem #########################################################################
  2. Rem
  3. Rem HWPW 97 installation location from registry
  4. Rem
  5. ..\ACRegL %Temp%\OrgUser.Cmd ORGUSER "HKLM\Software\HNC\HNC Path" "ORGUSER" ""
  6. ..\ACRegL %Temp%\HNC.Cmd HNC "HKLM\Software\HNC\HNC Path" "HNC" ""
  7. ..\ACRegL %Temp%\HNCDRV.Cmd HNCDRV "HKLM\Software\HNC\HNC Path" "HNCDRV" ""
  8. ..\ACRegL %Temp%\HNCFONT.Cmd HNCFONT "HKLM\Software\HNC\HNC Path" "HNCFONT" ""
  9. ..\ACRegL %Temp%\HNCLIB.Cmd HNCLIB "HKLM\Software\HNC\HNC Path" "HNCLIB" ""
  10. Call %Temp%\HNC.Cmd
  11. Call %Temp%\HNCDRV.Cmd
  12. Call %Temp%\HNCFONT.Cmd
  13. Call %Temp%\HNCLIB.Cmd
  14. Call %Temp%\OrgUser.Cmd
  15. Del %Temp%\HNC.Cmd >Nul: 2>&1
  16. Del %Temp%\HNCDRV.Cmd >Nul: 2>&1
  17. Del %Temp%\HNCFONT.Cmd >Nul: 2>&1
  18. Del %Temp%\HNCLIB.Cmd >Nul: 2>&1
  19. Del %Temp%\OrgUser.Cmd >Nul: 2>&1
  20. Rem #########################################################################
  21. Rem
  22. Rem
  23. Rem
  24. Rem If not currently in execute Mode, change to execute Mode.
  25. Set __OrigMode=Exec
  26. Change User /query > Nul:
  27. if Not ErrorLevel 101 Goto cont1
  28. Set __OrigMode=Install
  29. Change User /Execute > Nul:
  30. :cont1
  31. If Not Exist "%RootDrive%\WINDOWS" Call TsMkUDir "%RootDrive%\WINDOWS"
  32. ..\aciniupd /e /u "%RootDrive%\WINDOWS\win.ini" "HNC Path" HNC "%HNC%"
  33. ..\aciniupd /e /u "%RootDrive%\WINDOWS\win.ini" "HNC Path" HNCDRV "%HNCDRV%"
  34. ..\aciniupd /e /u "%RootDrive%\WINDOWS\win.ini" "HNC Path" HNCFONT "%HNCFONT%"
  35. ..\aciniupd /e /u "%RootDrive%\WINDOWS\win.ini" "HNC Path" HNCLIB "%HNCLIB%"
  36. ..\aciniupd /e /u "%RootDrive%\WINDOWS\win.ini" "HNC Path" HNCUSER "%RootDrive%\HNC\USER"
  37. ..\aciniupd /e /u "%RootDrive%\WINDOWS\win.ini" "HNC Path" WORK "%RootDrive%\HNC\WORK"
  38. ..\aciniupd /e /u "%RootDrive%\WINDOWS\win.ini" "HNC Path" HNCTEMP "%RootDrive%\HNC\TEMP"
  39. Rem If original mode was Install, change back to Install Mode.
  40. If "%__OrigMode%" == "Install" Change User /Install > Nul:
  41. Set __OrigMode=
  42. Rem #########################################################################
  43. Rem
  44. Rem Create USER directories in the user's home directory.
  45. Rem
  46. If Not Exist "%RootDrive%\HNC" Call TsMkUDir "%RootDrive%\HNC"
  47. If Not Exist "%RootDrive%\HNC\WORK" Call TsMkUDir "%RootDrive%\HNC\WORK"
  48. If Not Exist "%RootDrive%\HNC\USER" Call TsMkUDir "%RootDrive%\HNC\USER"
  49. If Not Exist "%RootDrive%\HNC\TEMP" Call TsMkUDir "%RootDrive%\HNC\TEMP"
  50. Rem #########################################################################
  51. Rem
  52. Rem Copy all user file to the current user location
  53. Rem
  54. If Exist "%RootDrive%\HNC\USER\HNC.INI" Goto Done
  55. Xcopy "%ORGUSER%*.*" "%RootDrive%\HNC\USER" /E /I >Nul: 2>&1
  56. :Done