I found a solution to package kix32 + DLLs + scripts into one single .exe file. The tool is called IExpress, you can find it in the IE 5 Ressource Kit.

This is an exemple using IExpress:
Before:
kix32.exe + kx32.dll + kx16.dll (version 3.55) + lpt2prt.kix (small script to assign LPT2 to the default printer)
Size: 211'558 bytes

After:
lpt2prt.exe
Size: 139'520 bytes

This is the code:

code:

SetConsole("Hide")
If @InWin=1
$Dev=ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows","Device")
$Printer=SubStr($Dev,1,(InStr($Dev,",")-1))
Else
$Dev=ReadValue("HKEY_LOCAL_MACHINE\Config\0001\System\CurrentControlSet\Control\Print\Printers","Default")
$Printer=ReadValue("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Printers\"+$Dev,"Port")
EndIf
Use LPT2: /Delete
Use LPT2: $Printer /Persistent
MessageBox("LPT2: has been assigned to "+$Printer,"LPT2PRT",0,10)
Exit

If Kix is copied on every machine, you can even create the package without kix: the size go down to 67'840 bytes!!!

The Resource Kit is there: http://download.microsoft.com/download/ie501/install/5.01/w9xnt4/en-us/ieak5.exe

------------------
Flavien Scheurer

[This message has been edited by Flavien (edited 30 June 2000).]