home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR24
/
WPPRG15.ZIP
/
INSTALL.C
< prev
next >
Wrap
Text File
|
1993-11-29
|
908b
|
41 lines
#define INCL_WINWORKPLACE
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <os2.h>
main(int argc, char *argv[], char *envp[])
{
CHAR myPath[256];
BOOL rc;
if (argc != 2 || strlen(argv[1]) != 1) {
printf("Usage : \n\n");
printf("install x\n");
printf(" - where x is the os/2 system drive\n\n");
}
else {
strcpy(myPath, argv[1]);
strcat(myPath, ":\\OS2\\DLL\\wpprgext.dll");
WinDeregisterObjectClass("WPPrgExt");
rc = WinRegisterObjectClass("WPPrgExt", (PSZ)myPath);
if (!rc)
printf("Unable to register the class\n\n");
else {
rc = WinReplaceObjectClass("WPProgram", "WPPrgExt", TRUE);
if (!rc)
printf("Unable to replace WPPrgram class\n\n");
else
printf("Installation is completed\n\n");
}
}
}