home *** CD-ROM | disk | FTP | other *** search
- /*
- * - Installation SwShell
- *
- * letzte ─nderung: 96-08-30
- *
- */
-
- CreateBackground 'SwShell - Installation'
-
- DialogOut 'SwShell - Installation'
-
- vInstallDirVon = pwd
-
- vLogFileName = '%__WindowsDirectory__%\\SwShell.log'
-
- fp = fopen vLogFileName 'w'
- If __error__ == 0
- MessageBox 'Logdatei ''%vLogFileName%'' kann nicht ge÷ffnet werden'
- Exit
- EndIf
-
- Fehler = 0
-
- fputs fp '\nInstallation SwShell\n\n'
-
- fputs fp 'Datum/Uhrzeit: \t%__Date__%\n'
- fputs fp ' WinVersion: \t%__WinVersion__%\n'
- fputs fp ' WinMinor: \t%__WinMinor__%\n'
- fputs fp ' WinSystem: \t%__WinSystem__%\n'
- fputs fp '\n'
-
- CopyFile '%vInstallDirVon%\\swshell.dll' '%__WindowsSystemDirectory__%\\swshell.dll' fp
- If __Error__ != 0
- MessageBox 'Error copy file: SwShell.dll to Windows-System-Directory.\nRestart Windows and start swshell-setup as first.'
- Fehler = 1
- EndIf
-
- CopyFile '%vInstallDirVon%\\swshellx.exe' '%__WindowsDirectory__%\\swshellx.exe' fp
- If __Error__ != 0
- MessageBox 'Error copy file: SwShellX.exe to Windows-Directory.\nRestart Windows and start swshell-setup as first.'
- Fehler = 1
- EndIf
-
- CopyFile '%vInstallDirVon%\\swshell.hlp' '%__WindowsDirectory__%\\swshell.hlp' fp
- If __Error__ != 0
- MessageBox 'Error copy file: SwShell.hlp to Windows-Directory.'
- Fehler = 1
- EndIf
-
-
- SetRegistry 'HKEY_CLASSES_ROOT' '*\\shellex\\ContextMenuHandlers\\SwShell' '' '{0002D503-0000-0000-C000-000000000046}'
- If __Error__ != 0
- MessageBox 'Error Set Registry.'
- Fehler = 1
- EndIf
-
- SetRegistry 'HKEY_LOCAL_MACHINE' 'SOFTWARE\\Classes\\CLSID\\{0002D503-0000-0000-C000-000000000046}' '' 'Sw Shell Extension'
- SetRegistry 'HKEY_LOCAL_MACHINE' 'SOFTWARE\\Classes\\CLSID\\{0002D503-0000-0000-C000-000000000046}\\InProcServer32' '' 'swshell.dll'
- SetRegistry 'HKEY_LOCAL_MACHINE' 'SOFTWARE\\Classes\\CLSID\\{0002D503-0000-0000-C000-000000000046}\\InProcServer32' 'ThreadingModel' 'Apartment'
- SetRegistry 'HKEY_LOCAL_MACHINE' 'SOFTWARE\\Classes\\Folder\\shellex\\ContextMenuHandlers\\SwShell' '' '{0002D503-0000-0000-C000-000000000046}'
-
-
- // --------------- uninstall --------------- //
- vUninst = 'Uninstall SwShell'
- If __Language__ == 'deu'
- vUninst = 'SwShell entfernen'
- EndIf
-
- SetRegistry 'HKEY_LOCAL_MACHINE' 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\SwShell' 'DisplayName' 'Sw Shell Extension'
- SetRegistry 'HKEY_LOCAL_MACHINE' 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\SwShell' 'UninstallString' '%__WindowsDirectory__%\\SwSetupu.exe %__WindowsDirectory__%\\swshell.del'
-
- fpDel = fopen '%__WindowsVerzeichnis__%\\swshell.del' 'w'
- If __error__ == 0
- fputs fp 'Datei ''%vDir%\\swshell.del'' kann nicht ge÷ffnet werden\n'
- MessageBox 'Datei ''%vDir%\\swshell.del'' kann nicht ge÷ffnet werden'
- Fehler = 1
- EndIf
- vT1 = 'Uninstall SwShell'
- vT2 = 'This will remove "SwShell".\\nDo you wish continue ?'
- vT3 = 'SwShell removed.'
- //vT4 = 'Will you remove the install-tool >SwSetup< ?'
- If __Language__ == 'deu'
- vT1 = 'SwShell entfernen'
- vT2 = 'M÷chten Sie tatsΣchlich SwShell entfernen ?'
- vT3 = 'SwShell wurde entfernt !'
- // vT4 = 'Soll auch das Installations-Tool >SwSetup< entfernt werden ?'
- EndIf
- fputs fpDel 'CreateBackground ''%vT1%''\n'
- fputs fpDel 'DialogOut ''%vT1%''\n'
- fputs fpDel 'MessageBox ''%vT2%'' 36\n'
- fputs fpDel 'If __error__ == 6\n'
- // swsetupx.exe wird auch von winfilee verwendet !!
- fputs fpDel ' vIni = GetIniFile ''%%__WindowsDirectory__%%\\\\Winfile.ini'' ''AddOns'' ''DateiManagerErweiterung''\n'
- fputs fpDel ' If vIni == ''''\n'
- fputs fpDel ' DeleteFile ''%%__WindowsDirectory__%%\\\\swshellx.exe''\n'
- fputs fpDel ' EndIf\n'
- fputs fpDel ' DeleteFile ''%%__WindowsSystemDirectory__%%\\\\swshell.dll''\n'
- fputs fpDel ' DeleteFile ''%%__WindowsDirectory__%%\\\\swshell.hlp''\n'
- fputs fpDel ' DeleteFile ''%%__WindowsDirectory__%%\\\\swshell.ini''\n'
- fputs fpDel ' DeleteFile ''%%__WindowsDirectory__%%\\\\swshell.del''\n'
- fputs fpDel ' DeleteFile ''%%__WindowsDirectory__%%\\\\swshell.log''\n'
-
- fputs fpDel ' DeleteRegistry ''HKEY_CLASSES_ROOT'' ''*\\\\shellex\\\\ContextMenuHandlers\\\\SwShell'' ''''\n'
- fputs fpDel ' DeleteRegistry ''HKEY_LOCAL_MACHINE'' ''SOFTWARE\\\\Classes\\\\CLSID\\\\{0002D503-0000-0000-C000-000000000046}'' ''''\n'
- fputs fpDel ' DeleteRegistry ''HKEY_LOCAL_MACHINE'' ''SOFTWARE\\\\Classes\\\\Folder\\\\shellex\\\\ContextMenuHandlers\\\\SwShell'' ''''\n'
-
- fputs fpDel ' DeleteRegistry ''HKEY_LOCAL_MACHINE'' ''SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\SwShell'' ''''\n'
-
- //fputs fpDel ' MessageBox ''%vT4%'' 36\n'
- //fputs fpDel ' If __error__ == 6\n'
- //fputs fpDel ' MoveFileByStartup ''%%__WindowsDirectory__%%\\\\swsetupu.exe'' ''NUL''\n'
- //fputs fpDel ' MoveFileByStartup ''%%__WindowsDirectory__%%\\\\swstdf32.dll'' ''NUL''\n'
- //fputs fpDel ' EndIf\n'
-
- fputs fpDel ' MessageBox ''%vT3%''\n'
- fputs fpDel 'EndIf\n'
- fclose fpDel
- // ------------
-
-
- fputs fp '\nEnde\n'
-
- fclose fp
-
- If Fehler != 0
- vText = '\r\nError by installation, will you see the installation-log ?'
- If __Language__ == 'deu'
- vText = '\r\nBei der Installation ist ein Fehler aufgetreten,\r\nsoll die Installations-Logdatei angezeigt werden ?'
- EndIf
- MessageBox vText 36
- If __error__ == 6
- Exec 'notepad %vLogFileName%'
- EndIf
- Endif
-
- If Fehler == 0
- vText = 'Setup is complete. You may run the Explorer.'
- If __Language__ == 'deu'
- vText = 'Die Installation ist Ok, Sie k÷nnen nun den Arbeitsplatz/Explorer ÷ffnen.'
- Endif
- MessageBox vText
- EndIf
-