Hi,
I am using a deferred CA (no impersonation) because of UAC problems on Vista and above. It is written in VBScript.
I have the following string: -
strFilePath = "RegAsm.exe BTS.Gen.Config.dll /tlb:BTS.Gen.Config.tlb > " & Chr(34)& "C:\" & "regasmconfig.log" & Chr(34)
I am getting the APPDIR as part of the CustomActionData property. Ideally C:\ above will be set to this in the above string. The type library is loaded but output file (regasmconfig.log) is not generated. This is achieved using Run(strAPPDIR, strFilePath): -
'************************************************************
' Subroutine: Run
'
' Description: Run an executable file from a named directory.
'
' Parameters: strFilePath File to run.
' strWorkingDirectory Directory to run command in.
'
' Notes:
'************************************************************
Sub Run(strFile, strWorkingDirectory)
Dim shell
Set shell = CreateObject("WScript.Shell")
shell.CurrentDirectory = strWorkingDirectory
' Now run the command 0 = Hide the window and activate another window
' False = immediately returns to script execution rather than waiting
' on the process termination (and returns an error code of 0).
' We need to wait for it to execute because we are actually deleting the
' executable as the next operation so set parameter to True.
' See http://ss64.com/vb/run.html
shell.Run strFile, 0, true
Set shell = Nothing
End Sub
8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<8-<
Is there a known bug/problem that would cause the log not to be produced?
Regards,
John
FOLLOW US
Get the latest news in Application Packaging