/build/static/layout/Breadcrumb_cap_w.png

Current Directory Path in msi

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   [ + ] Show comments

Answers (1)

Posted by: anonymous_9363 14 years ago
Red Belt
0
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ