WarpIn Script Samples

From OS2World.Com Wiki
Revision as of 17:58, 29 December 2020 by Martini (talk | contribs)
Jump to: navigation, search

This is a note to myself to remember things when creating a WarpIn Installer.

Target Samples

TARGET="$(WARPIN_DEFAULTTOOLSPATH)\4OS2"
TARGET="$(WARPIN_DEFAULTAPPSPATH)\pointers"

Creating WPS Objects

CREATEOBJECT="REPLACE WPFolder|4OS/2|<WP_APPSFOLDER>|OBJECTID=<WP_4OS2FOLDER>"
CREATEOBJECT="REPLACE WPProgram|4OS/2 (Window)|<WP_4OS2FOLDER>|OBJECTID=<WP_4OS2WIN>;EXENAME=$(1)\4OS2.EXE;PROGTYPE=WINDOWABLEVIO;PARAMETERS=%;STARTUPDIR=?:\;NOPRINT=YES;HIDEBUTTON=DEFAULT;MINWIN=DEFAULT;CCVIEW=YES;DEFAULTVIEW=DEFAULT"
CREATEOBJECT="REPLACE WPProgram|4OS/2 (Full screen)|<WP_4OS2FOLDER>|OBJECTID=<WP_4OS2FS>;EXENAME=$(1)\4OS2.EXE;PROGTYPE=FULLSCREEN;PARAMETERS=%;STARTUPDIR=?:\;NOPRINT=YES;HIDEBUTTON=DEFAULT;MINWIN=DEFAULT;CCVIEW=YES;DEFAULTVIEW=DEFAULT"

CREATEOBJECT="REPLACE WPShadow|4OS/2 (Window)|<WP_PROMPTS>|SHADOWID=<WP_4OS2WIN>;OBJECTID=<SHADOW_4OS2WIN>;"

CREATEOBJECT="REPLACE WPShadow|4OS/2 (Full screen)|<WP_PROMPTS>|SHADOWID=<WP_4OS2FS>;OBJECTID=<SHADOW_4OS2FS>;"
CREATEOBJECT="REPLACE WPProgram|4OS/2 Manual|<WP_4OS2FOLDER>|OBJECTID=<WP_4OS2MANUAL>;EXENAME=VIEW.EXE;PARAMETERS=$(1)\4OS2.INF;"
CREATEOBJECT="REPLACE WPProgram|Archive Viewer|<WP_TOOLS>|EXENAME=$(1)\ARCVIEW.EXE;PROGTYPE=PM;ASSOCFILTER=*.ZIP,*.TAR,*_TAR,*.Z,*.TGZ,*.GZ,*.TBZ,*.TBZ2,*.BZ2,*.TLZ,*.LZ,*.7Z,*.RAR,*.ARJ,*.JAR,*.LZH,*.LHA,*.WPI,*.RPM;OBJECTID=<ECS_ARCVIEW>"


Config.SYS changes

       CONFIGSYS="SET USE_HOSTS_FIRST=1| UNIQUE"
       CONFIGSYS="SET HOSTNAME=$(HOSTNAME)| UNIQUE"
       CONFIGSYS="SET USER=$(USER)| UNIQUE"
       CONFIGSYS="SET HOME=$(HOME)| UNIQUE"
    CONFIGSYS="SET PATH=$(1); | ADDRIGHT"
    CONFIGSYS="SET DPATH=$(1); | ADDRIGHT"
    CONFIGSYS="SET HELP=$(1); | ADDRIGHT"
    CONFIGSYS="SET BOOKSHELF=$(1); | ADDRIGHT"
    CONFIGSYS="LIBPATH=$(1); | ADDRIGHT"
    EXECUTE="if not exist $(1)\4start.cmd copy $(1)\4start.cmd.sample $(1)\4start.cmd"
    EXECUTE="if not exist $(1)\4OS2.INI copy $(1)\4OS2.INI.sample $(1)\4OS2.INI"

Register WPS Classes

        REGISTERCLASS="WPHwManagerEx|$(1)\hwman.dll"
        REPLACECLASS="WPHwManager|WPHwManagerEx"


Links