Installing Vendor User-Specified Virtual Directory - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jmace
Posts: 55
Joined: Thu Jul 01, 2010 4:46 pm

Installing Vendor User-Specified Virtual Directory

Support,

We are winding down development of a web application and our users are starting to send back feedback. They are asking for a way for them to specify the virtual directory path. For instance, our application 'tracker' is set one level below the Default Website, so our URL reads http://localhost/tracker. Some of our users would like to have their URLs look something more like this http://intratest/dsa/apps/tracker. How would we go about giving them this functionality? Is there a screen that lets them pick under which virtual directory to install the web application?

Thank you in advance,
Jim
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Installing Vendor User-Specified Virtual Directory

Hi Jim,

You might be first interested in how to browse for existing web sites, virtual directories and web applications.

Also, on the IIS page, select your virtual directory. To the right, in the Virtual Directory pane, the "Name:" field under the General section is a formatted field, meaning it supports properties inside it.
You can place a property (which could include a path) in that field, for example MY_TRACKER (which would have the value "dsa/apps/tracker"). That would create a virtual directory with the path you mentioned in your post. You can attribute the MY_TRACKER property to an input field during the install so that the user himself can specify the path he wishes to install his virtual directory into.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
jmace
Posts: 55
Joined: Thu Jul 01, 2010 4:46 pm

Re: Installing Vendor User-Specified Virtual Directory

I followed the tutorial and your suggestions. My BrowseIIS dialog box, includes a text box that is associated with the property URL_PATH as such:
Image

Following your suggestions, I set up my IIS virtual directory's name to be: [IISBrowseListBox]/[URL_PATH]/Tracker. This way, if the user enters, dsa/apps and chooses a website (previously created) intratest, the URL would be http://intratest/dsa/apps/Tracker.

The problem is is that, when the installer goes to configure IIS, it fails and does not give me a specific reason why, just that an error occurred during the configuration process and that it has been restored. Does dsa/apps need to already exist under the website intratest already?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Installing Vendor User-Specified Virtual Directory

Hi,

Please try this:
- select the "Next" button of your custom dialog
- in "Published Events" tab create a SetProperty control event which looks like this:

Code: Select all

[VD_NAME]    [IISBrowseListBox]/[URL_PATH]/Tracker    AI_INSTALL
- use [VD_NAME] as the virtual directory name

If this still doesn't work, please send us the .AIP (project) file you are using and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jmace
Posts: 55
Joined: Thu Jul 01, 2010 4:46 pm

Re: Installing Vendor User-Specified Virtual Directory

That worked out well. Thanks.

How is also able to add the new dialog as you described. I also created a dialogue that gives the user a choice to either, plainly, extract the application files (leaving the setup of IIS to them) or to set up IIS automatically.

New Dialogue (SetupOptions)
Image
Combo box's Property Name is SETUP_OPTIONS and the control data is as such:
Image

My problem is that when you run the MSI and you come to this dialogue, I need the first option's text to be displayed.
Image

My second problem is that when you change from one option to the other, the ListItem's value is displayed instead of its text.
Image
Image

Any ideas?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Installing Vendor User-Specified Virtual Directory

Hello,

I am afraid this is the Windows Installer's behavior. As a workaround, you can set the same text and value for each combo box element.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
jmace
Posts: 55
Joined: Thu Jul 01, 2010 4:46 pm

Re: Installing Vendor User-Specified Virtual Directory

I just put the values in the list box which seems to work okay for the time being.

I have uncovered a slight problem with using the [VD_NAME] virtual directory property. Say I set up the virtual directory's Name property as, [VD_NAME] which is [IISBrowseListBox]/intranet/dsa/apps/tracker, but the Folder is set to APPDIR (which is set to something that is not under the virtual directory "apps"). The install completes, but a virtual directory/web application is not created under [VD_NAME] , in fact, no virtual directory/web application is created at all.

Any ideas?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Installing Vendor User-Specified Virtual Directory

Hi,

I'm not sure why this happens. Can you please send us the .AIP (project) file you are using and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”