Anyone have an idea why this is not working as a custom action?

Dim wshShell, filesys, filetxt, getname, path, strComputerName
Set wshShell = CreateObject( "WScript.Shell" )
strComputerName = wshShell.ExpandEnvironmentStrings( "%COMPUTERNAME%" )
Set filesys = CreateObject("Scripting.FileSystemObject")
Set filetxt = filesys.CreateTextFile("c:\Program Files\My App\cal.txt", True)
path = filesys.GetAbsolutePathName("c:\Program Files\My App\cal.txt")
getname = filesys.GetFileName(path)

Thanks a lot!
0 Comments   [ - ] Hide 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.
Answer this question or Comment on this question for clarity


A bit more detail. I cant see anything wrong with the script. Are you giving the CA a condition ? Where is it running, ie. UI, EI or deferred ?
Is the CA embedded or running from a file copied to the machine ?
Answered 03/21/2011 by: reds4eva
Second Degree Blue Belt

Please log in to comment
I found the problem. There was a typo in my condition. Missing end quote!

Answered 03/23/2011 by: Secondlaw
Third Degree Blue Belt

Please log in to comment