/build/static/layout/Breadcrumb_cap_w.png

Simple VB command?

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.
Else
%DATE%, %TIME%, %PRODUCTNAME% Uninstalled.
Endinf

How can I translate it into VB Script language?

Thanks for all your help in advance!

0 Comments   [ + ] Show comments

Answers (3)

Posted by: anonymous_9363 16 years ago
Red Belt
0
Stephane,

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 :(
Posted by: martyncoup 15 years ago
Senior Yellow Belt
0
Writing to the Event Log on the machine may be a better way?
Posted by: Cybermage 15 years ago
Orange Belt
0
I prefer eventlog.
Maybe a good place to look here http://desktopengineer.com/writetomsilog
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ