Dashut
Posts: 142
Joined: Tue May 04, 2010 4:41 pm

How can I use the BrowseDlg for something else?

Using AI 7.7:
The BrowseDlg is used by AdvancedInstaller to set/choose the installation folder for the application.
I don't want to change that, but what I want is something just like that!
In my program, there's some configuration directory that I need to choose/create for my program: and I want to have a custom dialog that is just like BrowseDlg, and this way I can set/choose my directory for my program: and NOT the installation directory!!!

How can this be done? Can I create a NewDlg that is "based on" BrowseDlg?
I can most probably call a custom action for a program that I will create that does that: but I would really like to avoid this, and save time (time == writing code + checking).

Dashut.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How can I use the BrowseDlg for something else?

Hi Dashut,

Please follow this article from our user guide.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dashut
Posts: 142
Joined: Tue May 04, 2010 4:41 pm

Re: How can I use the BrowseDlg for something else?

I followed your instructions on the link you gave http://www.advancedinstaller.com/user-g ... older.html
and tried to make my own test program just for this (not yet in my project).
I also downloaded your example project: which I think you should have more stuff like that which should really help others.

Okay, so back to my problem: my dialog shows path "c:\" and if you press the "Browse" button, then I get a dialog saying: "Specified path is empty".
If I copy/paste the log (run and log) then you can see this:

Code: Select all

MSI (c) (28:B8) [11:10:18:140]: PROPERTY CHANGE: Adding _BrowseProperty property. Its value is 'C:\'.
Info 2826. Control BottomLine on dialog BrowseDlg extends beyond the boundaries of the dialog to the right by 3 pixels.
MSI (c) (28:B8) [11:10:18:218]: Note: 1: 2343 
Error 2343. Specified path is empty.
MSI (c) (28:B8) [11:10:23:062]: Product: Another folder -- Error 2343. Specified path is empty.

Action ended 11:10:23: WelcomeDlg. Return value 3.
MSI (c) (28:E0) [11:10:23:125]: Doing action: FatalError
Action 11:10:23: FatalError. 
Action start 11:10:23: FatalError.
Info 2826. Control BottomLine on dialog FatalError extends beyond the boundaries of the dialog to the right by 3 pixels.
Action 11:10:23: FatalError. Dialog created
Everything looks like your example, and also I followed your instructions in the guide link you gave.
So what's missing here?

Thanks, Dashut.
Dashut
Posts: 142
Joined: Tue May 04, 2010 4:41 pm

Re: How can I use the BrowseDlg for something else?

Okay, I read the remark you wrote, and I was using [MY_DIR] in the "Published Events" instead of just MY_DIR.
That solved the problem, and now my test program seems to be working.

Thanks again, Dashut.

Return to “Common Problems”