Post your code and I will try it here. Or, you could ExtendScript's built-in Folder methods:
var folder = Folder(app.OpenDir).selectDlg ("Select a folder:");
var folder = Folder.selectDialog ("Select a folder:");
The major difference is that selectDlg lets you start with a default folder selected.
I always use openDlg function of Folder class. This works well for my use cases.
I think I discovered the same issue former times and decided to use Folder class.
Hope this helps
BTW: I wrote and extend script installer some time ago. practice innovation | SWATFMINSTALLSCRIPTS
It works for me, something like this:
var path = ChooseFile("Browse for folder", "", "", Constants.FV_ChooseOpenDir);
One thing though... there is a bug in the interface where the prompt will fail and just return null if the start path is bogus:
var path = ChooseFile("Browse for folder", "C:\\Some\\Bogus\\Path", "", Constants.FV_ChooseOpenDir);
Make sure that the path is a valid folder, if you are specifying one. It might even give you problems if the path points to a file, even if valid.