Hello guys,

I would appreciate your help to solve a problem I have. With all our packages we make at my company, we populate the registry with a custom made MST file.

I would like to add some VB script to the MST to write something along the following lines. Now, please bare with me: I'm a total newbie when it comes to using VB.

Anyway, here goes:

If Installing then write into c:\log.txt
%DATE%, %TIME%, %PRODUCTNAME% Installed.
%DATE%, %TIME%, %PRODUCTNAME% Uninstalled.

How can I translate it into VB Script language?

Thanks for all your help in advance!
0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.



It is *really* asking a lot of people to build this for you. Anyone can knock out VB Script but to do it properly requires a lot of code. For example, your average script-kiddy will write code which opens a file for writing/appending with the FileSystemObject but I can guarantee it won't be even halfway to being robust. It probably won't check, as a simple example, to see whether or not files can actually be written to the location chosen.

That's the reason I pointed you at the scripting sites in your post in the 'Package Development' forum. The idea I outlined there was for you to look at some examples, experiment a bit and then, if you hit problems, to come here and ask specific questions. I doubt you will receive any replies with the solution you require. Folk here are more than happy to help those who first help themselves but are busy enough doing their proper jobs without embarking on major coding for someone else for free. If you're desperate, try http://www.rentacoder.com which is part of Planet Source Code. There, you can outline your project and invite "tenders". I can tell you for nothing they won't be free.

Sorry :(
Answered 04/11/2008 by: VBScab
Red Belt

Please log in to comment
Writing to the Event Log on the machine may be a better way?
Answered 07/24/2008 by: martyncoup
Senior Yellow Belt

Please log in to comment
I prefer eventlog.
Maybe a good place to look here http://desktopengineer.com/writetomsilog
Answered 07/24/2008 by: Cybermage
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity