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!
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)
Please log in to answer
Posted by:
anonymous_9363
16 years ago
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 :(
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:
Cybermage
16 years ago
I prefer eventlog.
Maybe a good place to look here http://desktopengineer.com/writetomsilog
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.
so that the conversation will remain readable.