home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
c't freeware shareware 1997
/
CT_SW_97.ISO
/
pc
/
software
/
entwickl
/
win95
/
plsei306.exe
/
bin
/
perlscript-uninstall.bat
< prev
next >
Wrap
DOS Batch File
|
1997-04-09
|
1KB
|
42 lines
@rem = '--*-Perl-*--';
@rem = '
@echo off
if not exist perl.exe goto perlnotthere
if not exist Perl300.dll goto perlnotthere
if not exist PerlSE.dll goto perlscriptnotthere
perl.exe PerlScript-uninstall.bat %1 %2 %3 %4 %5 %6 %7 %8 %9
pause
goto endofperl
@rem ';
@INC = qw( ..\Lib ..\Ext );
print <<'--end--';
PerlScript-uninstall.bat:
This script will remove the registry entries created by the
PerlScript-install.bat script. The script does not delete files.
You can re-install by running PerlScript-install.bat again.
Continue?(Y/N):
--end--
$in = <STDIN>;
until ( $in eq "\n" || $in =~ /^y/i ) {
exit if ( $in =~ /^no?\n$/i );
print "Do you wish to proceed? [Y/n]";
$in = <STDIN>;
}
Win32::UnregisterServer('PerlSE.dll') ?
print "\nPerlScript uninstalled successfully\n" :
warn "\nError unregistering PerlSE.dll\n";
__END__
:perlnotthere
echo Could not find Perl interpreter!!
echo *gasp* *wheez* *choke*
goto endofperl
:perlscriptnotthere
echo Did you install PerlScript into the same directory as Perl?
:endofperl