MattFielder
Posts: 22
Joined: Thu Jan 05, 2012 9:49 pm
Contact: Website

Select network location containing specific file

Wed Feb 08, 2012 4:53 am

I need to prompt my user to browse for a specific file. Then I need to store the selected location of that file to a value that is passed to a .Net installer custom action. I'm looking at the dialog editor, but can't quite figure out which of the items in the toolbox to use to allow me to acheive this result - or how to store the result to a value that is then passed to my custom action.

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

Re: Select network location containing specific file

Wed Feb 08, 2012 11:30 am

Hi Matt,

Here's the article to help you with this:
http://www.advancedinstaller.com/user-g ... -file.html

You can pass parameters to your .NET installer class custom action from the following dialog:
http://www.advancedinstaller.com/user-g ... ialog.html
It can be accessed from the custom action's left pane by pressing the [...] button on the right of Action Data text field.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

MattFielder
Posts: 22
Joined: Thu Jan 05, 2012 9:49 pm
Contact: Website

Re: Select network location containing specific file

Thu Feb 09, 2012 12:54 am

Regarding passing the property to the installer class via the dialog:

There is something odd in my project. It's a migrated visual studio setup project. I am unable to locate the custom action that the dialog your mentioning is referenced from. If i add a custom action to the Install node of InstallExecute sequence - the methods in my installer class run twice. With this being the case i'm unsure how to manage the custom actions.

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

Re: Select network location containing specific file

Thu Feb 09, 2012 1:38 pm

Hello,

The custom actions should be imported as well in the Custom Actions page.
If this is not your case, please send us the .VDPROJ you are trying to import to support at advancedinstaller dot com so we can investigate it. Please also specify the Advanced Installer version you are using.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

MattFielder
Posts: 22
Joined: Thu Jan 05, 2012 9:49 pm
Contact: Website

Re: Select network location containing specific file

Fri Feb 10, 2012 12:03 am

fyi: sent vdproj and aip files this morning

Return to “Common Problems”

 

 

cron