mr_unreliable
Thu Mar 16 14:41:55 CST 2006
hi Boyd,
I suggest using a "wsf" file format, which allows you to
include data segments within your script. Then just
include your outlook form as data.
O.K., now you are going to tell me that the "oft" is Binary?
I suspected that. So, I believe that data in a wsf file is
expected to be text (you experts correct me here if I'm wrong).
Anyway, what you need to do is convert your binary to text
using the "Base64 Emcoding" technique (the same technique is
used for sending graphics via email). Then when you get ready
to install, extract the encoded data (text), and convert it
back to binary.
If that sounds complicated (well it is) don't fret, as
"mayayana" has already done the work for you. Look up his
Encode/DecodeBase64 routines, found here:
http://groups.google.com/group/microsoft.public.scripting.vbscript/browse_thread/thread/2eda1682918dab8f/da7e0d6a20d753ba?lnk=st&q=%22base64+encoding%22+group%3Amicrosoft.public.scripting.vbscript&rnum=1&hl=en#da7e0d6a20d753ba
cheers, jw
____________________________________________________________
You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)
Boyd wrote:
> I have a vbScript file (.vbs) that simply publishes a custom Outlook
> form (.oft) into the user's Personal Forms Library. I'd like to create
> an installation file that packages both of these files (.vbs and .oft),
> and runs the code within the .vbs file when executed.
> Is this an easy thing to do?
>
> Thanks,
> Boyd
>