PDA

View Full Version : Need help with defining a Features folder path



jgswcm
06-25-2012, 07:40 AM
Hello,

I have an install with custom features. The user can select either a "Workstation" or a "Server" install, or both. I have two "Select Install Folder" dialogs. The first DIALOG is for the Workstation whose Store Folder in Variable is %_SB_INSTALLDIR%. The second DIALOG is for the Server whose Store Folder in Variable is defined as %SERVER%. %SERVER% is initially defined as [INSTALLDIR] in the Runtime Variables section. So %_SB_INSTALLDIR% and %SERVER% start off as the same path, but they can become different based on the user's input.

My issue is this: In the Files and Folders section, I have subfolders defined in my "Server" installation section. When I look at the Dynamic File Linking on the on a subfolder called "REPORTS", I see that the Location is %_SB_INSTALLDIR%\REPORTS. I can't seem to change this to %SERVER%\REPORTS. I get the message A variable name cannot contain any of the following characters: / : * ? " < > [ ]

Is there some other way to define this?

Thank you,
Joanne

linder
06-25-2012, 08:03 AM
Joanne,

See attached screenshots. I would suggest to add the runtime variable %SERVER" as a folder variable (don't forget to enable the "Absolute folder path specification" option) and then add the REPORTS subfolder.

Does this help?

Friedrich

linder
06-25-2012, 08:07 AM
BTW, select the "Server" feature and then right-click. Select "Add" and enter %SERVER%. This creates the folder variable or you. Open the Folder Properties (right-click and select "Details") and mark the "Absolute folder path specification" checkbox.

Friedrich

jgswcm
06-25-2012, 08:16 AM
That worked!!! I didn't realize that you can add a runtime variable as a folder variable.

You have made me extremely happy :)

Thank you again,
Joanne

linder
06-25-2012, 08:22 AM
Perfect! You are very welcome :)

Friedrich