How to take current directory path, in custom action used in msi?

I am using,

Set oShell = CreateObject("WScript.Shell")
Set ofso = CreateObject("Scripting.FileSystemObject")
msgbox oshell.currentdirectory

but it is taking me to the c:\windows\system32
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


That will be the current directory, then. When you say "take" the current directory, what do you mean? Do you want to change the current directory? If so, try the Shell object's CurrentDirectory property. You'll get lots of hits on Google with that.
Answered 05/31/2010 by: VBScab
Red Belt

Please log in to comment