A new Flexera Community experience is coming on November 18th, click here for more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Turn on/off logging in vbscript

Is it possible within a vbscript to:

1. Turn on logging
2. create a file
3. Return logging to its previous state

The purpose would be to create a file that will be removed during an uninstall. I do not want to add the file to the RemoveFile table because I do not want to create a component. This whole process is for IsProjBlankTpl.ism.

Thoughts?
(3) Replies
The typical way is to create a separate custom action to undo whatever changes done in one custom action.
Yes, two CA's would work superbly, but is it possible to turn on installation logging so that the file that was created with the script will be uninstalled. I have used installscript in the past to do this, but I work in an environment where installscript is not wanted.

Any ideas?
CChong
By Level 11 Flexeran
Level 11 Flexeran
Just an idea, but can you pass a command line argument to the msi... then... in the RemoveFiles section, automatically enter the name of the log path and file you have already determined...

So

msiexec /i c:\appname.msi /L*V c:\logfile\install-log.log

You'd add install-log.log as the file to remove.

You couldn't run the .MSI directly, per se, you'd have to store the command line arguments in a .bat or wrap it with SMS installer...or use VB script to execute the MSI with those command line arguments...