=== Top of the Swiki === Attachments ===

VmCommandLineOptions

The distinction between command line args meaningful to the VM or the image can be found by defining the startup command as

 SqueakVM [vmOptions] imageName [imageOptions]

In other words, the first argument NOT meaningful to the VM is interpreted as the first image option. If the first image option is not the name of a valid Squeak image, then the VM may silently insert a hidden name of an image (at least on Mac and Win32 it does) allowing starting any *.sqo file by double-clicking or dragging on the VM executable. -- AndreasRaab

Windows VM Options


Following are some of the command line options for the Squeak Windows VM (abstracted from some of Andreas's postings to the Squeak mailing list). Note that the space between an option and its argument (or between options) is required:

-headless
Tells Squeak to run without a main window. However, for allowing at least some access to Squeak, an icon is added to the system tray. If you double-click this icon, the Squeak window will show up again.
-log: "logName"
Use the named file as log file for VM messages.
-memory: megaBytes
For limiting or expanding the memory allocated for the VM at startup (the standard amount allocated by the Win32 VM is 16MB)
-service: "serviceName"
Install Squeak as Windows NT service. You will be asked for a couple of things such as if to start the service on system startup or if to run the service right now. You can modify these settings in the service control panel.
-browserWindow: parentHWND
You can get Squeak into any Win32 Window you want, with the security measures turned on: the only files you can see and manipulate are those in and beyound the image directory -- everything else you can't see, touch, or destroy. (This is also true when you start the Win32 VM as a browser plugin.)


NOTE: When using the -service: option, you must give the entire command line as if you want to run the image immediately. The installation process will add a few registry settings to determine the command line during system start up.

Example:
Squeak -memory: 4 -log: "C:\VM.log" -service: "Squeak Sample Service" C:\Swiki\Server.image

The "-service:" switch is fully supported on Win95 but has a little non-standard behavior. Squeak will show up in the system tray (just as when running -headless) because there is no such thing as a service control panel within Win95. If you want to remove a service from a Win95 system you'll have to remove the entry in the registry at

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run