Metropoli BBS
VIEWER: hcsimple.inf MODE: TEXT (LATIN1)
/*
 * - Installation Hardcopy  (ohne Installation von SwSetup(i) !!!)
 *
 *   - Installation von Hardcopy im Windows-Verzeichnis
 *     Eintrag von Hardcopy in 'Autostart'
 *
 * letzte Änderung: xx.xx.xxxx / Weckmann
 *
 */

					// Installationsverzeichnis auf dem Netzwerk							
vInstallDirVon  = 'd:\\SwSetup\\Hardcopy'

vLogFileName    = '%__WindowsVerzeichnis__%\\SwSetup.log'

DialogOut 'SwSetup  -  Hardcopy - Netzwerk - Installation'

fp = fopen vLogFileName 'w'							 
if __error__ == 0
	MessageBox 'Logdatei ''%vLogFileName%'' kann nicht geöffnet werden'
	Exit
endif


if __WinSystem__ == 'NT'
					// HcpNTdll.dll vom Netzwerk kopieren
   CopyFile '%vInstallDirVon%\\files\\HcpNTdll.dll' '%__WindowsVerzeichnis__%\\HcpNTdll.Dll' fp
					// Hardcopy.exe vom Netzwerk kopieren
   CopyFile '%vInstallDirVon%\\files\\HrdCpy32.exe' '%__WindowsVerzeichnis__%\\Hardcopy.exe' fp
else		// windows95 oder windows 3.n
					// HcpDll.dll vom Netzwerk kopieren
   CopyFile '%vInstallDirVon%\\files\\HcpDll.dll' '%__WindowsVerzeichnis__%\\HcpDll.Dll' fp
					// Hardcopy.exe vom Netzwerk kopieren
   CopyFile '%vInstallDirVon%\\files\\Hardcopy.exe' '%__WindowsVerzeichnis__%\\Hardcopy.exe' fp
endif

				// in SwSetup - Autostart-Gruppe eintragen und beim Start minimierem
CreateItem '\\PS\\Autostart' 'Hardcopy' '%__WindowsVerzeichnis__%\\Hardcopy.exe' '' '%__WindowsVerzeichnis__%' '%__WindowsVerzeichnis__%\\Hardcopy.exe' 0 1

fputs fp '\nEnde\n'

fclose fp
[ RETURN TO DIRECTORY ]