






Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007
Creating an executable file in Smalltalk - Chris Forrence
WARNING: This is primarily for Windows machines. In addition, make sure any web-based parcels are unloaded.
- Load the parcel Application Development -> RuntimePackager
- Go to Tools -> Runtime Packager
- At Clean Up Image, click on Do This Step.
- At Set Common Options, click on Do This Step.
- Startup class will be the initial screen you want opened (SecurityLoginWindow for example).
- Startup method will be the method you use to open that screen (usually either new or open).
- Click through the next few steps.
- At Test Application, click on Do This Step.
- This is a great way to make sure that the application actually works! If it doesn't during runtime, then the program will show and error and close out!
- If it shows any dynamic references, accept them.
- Choose default memory parameters
- Before clicking "Strip and Save Image", close any open workspaces and VisualWorks windows.
- Strip and Save the image, clicking through any dialog boxes.
- While waiting for this to finish, open a window and extract the contents of \Cincom\vw7.6nc\packaging\win\ResHack.zip into \Cincom\vw7.6nc\packaging\win.
- When this finishes, re-open VisualWorks and run the following code in workspace separately.
executor := OSSystemSupport concreteClass.
Transcript show: 'Compressing the image...'; cr.
compressor := 'C:\Program Files\Cincom\vw7.6nc\packaging\win\imageCompress '.
compressor := compressor, 'runtime.im '.
compressor := compressor, 'runtime2.im '.
executor CreateProcess: nil arguments: compressor.
res := 'C:\Program Files\Cincom\vw7.6nc\packaging\win\ResHacker'.
image := 'runtime2.im'.
exe := 'Application.exe'. "This is whatever you want to call your executable!"
vm := 'C:\Program Files\Cincom\vw7.6nc\bin\win\visual.exe'.
icon := ''.
exe1 := res, ' -addoverwrite ', vm, ', ', exe, ', ', image, ', 332, 332,'.
exe2 := res, ' -addoverwrite ', exe, ', ', exe, ', ', icon, ', icon, 323, 1'.
exe3 := res, ' -addoverwrite ', exe, ', ', exe, ', devname.txt, 325, 325, '.
executor CreateProcess: nil arguments: exe1.
executor CreateProcess: nil arguments: exe2.
executor CreateProcess: nil arguments: exe3.
Links to this Page
- Cases last edited on 30 July 2011 at 2:33 am by r59h132.res.gatech.edu
- Index of Individual Cases last edited on 3 May 2011 at 12:46 pm by r52h48.res.gatech.edu