home *** CD-ROM | disk | FTP | other *** search
- /* Telephone Dialer 1.0b installation utility */
- call rxfuncadd sysloadfuncs, rexxutil, sysloadfuncs
- call sysloadfuncs
-
- cr = '0d'x
- lf = '0a'x
-
- Say 'What is the destination directory? (default = C:\Phone)'
- Pull Destination
- if Destination = "" then Destination = "C:\Phone"
-
- md Destination
-
- Say lf cr
- Say 'Copying the file...'
- copy "Phone.exe" Destination"\Phone.exe /v"
-
- /* associate the .exe file */
- SetupString = "ASSOCTYPE=Telephone Book;ASSOCFILTER=*.TEL"
- result = SysSetObjectData(Destination "\Phone.exe", SetupString)
-
- /* make telephone dialer icon */
- ClassName = "WPProgram"
- Title = "Telephone Dialer"
- SetupString = "EXENAME=" Destination "\PHONE.EXE;PROGTYPE=PM;STARTUPDIR=" Destination ";OBJECTID=<TELEPHONE_DIALER_ICON>;ICONPOS=48,50;"
- Location = "<WP_DESKTOP>"
- Flags = "R"
- Say lf cr
- Say 'Placing the Telephone Dialer icon on the desktop...' lf cr
- result = SysCreateObject(ClassName, Title, Location, SetupString, Flags)
-
- Say 'Program is now installed.' lf lf cr
-
- Exit
-