path of feature - 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!

CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

path of feature

Hi again...

Im now trying to make a installer with 3 Features, which should be installed based on selection of a radiobutton using a VBScript.

But I need to change the path of the feature installing, the script runs and i can see in the log file its being set, but later on the path is changed back.

Basically this is what i want to do:
select feature based on radiobutton
set path for feature from script when button is clicked :?:

regards Carl
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: path of feature

Hello Carl,

If you are trying to set the related feature path using a property, which contains a path, then you should use a public property. Also, can you please give us more details about your scenario (maybe exemplify)?
But I need to change the path of the feature installing, the script runs and i can see in the log file its being set, but later on the path is changed back.

Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Re: path of feature

Ok, ill try to exemplify:

I have a Feature called Client,
depending on a selection of a radiobutton i want to install into a different folder e.g.

if Rb1 install into C:\sp3\Client\
if Rb2 install into C:\sp3\
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: path of feature

Hello,

In order to achieve this you can proceed like this:
- Go to "Install Parameters" -> "Properties" group and add a new public property, using the [New] toolbar button, like this:
  • Name: MY_FEATURE_PATH
    Value: C:\sp3\Client
- In "Files and Folders" view create a new property based folder using your custom property (MY_FEATURE_PATH).
- Go to "Organization Page", select the desired feature and from "Feature Properties" right pane set the "Directory" field to MY_FEATURE_PATH.
- Go to "Dialogs" page and create a new dialog containing a radio button group with two radio buttons.
- Select the radio button group and set the "Property Name" field, from "Properties" right pane, to RADIO.
- Select the first radio button and set the "Value" field, from "Properties" right pane, to Rb1 and "Text" field to RadioButton1.
- Select the second radio button and set the "Value" field, from "Properties" right pane, to Rb2 and "Text" field to RadioButton2.
- On the [Next>] button add two "SetProperty" published events and after them a "SetTargetPath" published event like this:
  • Name: [MY_FEATURE_PATH]
    Argument: C:\sp3\Client
    Condition: RADIO = "Rb1"

    Name: [MY_FEATURE_PATH]
    Argument: C:\sp3
    Condition: RADIO = "Rb2"

    Name: SetTargetPath
    Argument: MY_FEATURE_PATH
    Condition:
- Build and run your project.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Re: path of feature

Hi, no it didnt work to well im now getting “Could not access network location Property.SP3_CLIENT_PATH″ Error 1606

btw what happened to SetTargetPath in 9.4 ?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: path of feature

Hello,

I'm not sure why you are encountering this behavior. Can you reproduce the behavior on a clean machine? If so, can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?
btw what happened to SetTargetPath in 9.4 ?
Starting with version 9.4 of Advanced Installer the "SetTargetPath" control event has been renamed to "Verify and set the selected folder path".

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”