Hello.

I have a Property which sets the location to 32-bit version of IE. I'd like to fetch this location from the ProgramFilesFolder entry in the Directory table.

I would have thought "[ProgramFilesFolder]Internet Explorer\iexplore.exe" would resolve to "C:\Program Files (x86)\Internet Explorer\iexplore.exe", but alas, this is not the case. It resolves to "[ProgramFilesFolder]Internet Explorer\iexplore.exe".

How can reference the Directory table so that my property resolves correctly to "C:\Program Files (x86)".

Answer Summary:
This because, the installer does nothing to the text string entered in the Value column before setting the property in the Property column. For Ex: If FirstProperty is entered into the Property column and [SecondProperty] in the Value column, the value of FirstProperty is set to the text string "[SecondProperty]" and not to the value of the SecondProperty property. This is necessary to prevent creating circular references in the Property table. Instead, you can set one property to another by using a Custom Action Type 51
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

2

This because, the installer does nothing to the text string entered in the Value column before setting the property in the Property column.

For Ex:

If FirstProperty is entered into the Property column and [SecondProperty] in the Value column, the value of FirstProperty is set to the text string "[SecondProperty]" and not to the value of the SecondProperty property.

This is necessary to prevent creating circular references in the Property table. Instead, you can set one property to another by using a Custom Action Type 51

Answered 03/05/2013 by: jagadeish
Red Belt

  • That's what I was looking for. Thanks!
Please log in to comment

Answers

1

...in which case, you don't need to bother. All your shortcut needs to contain is the URL itself, as Windows is set up by default to handle them automatically. Notice how typing the URL into the 'Run' text-box automatically fires up IE and then loads the URL.

Answered 03/05/2013 by: VBScab
Red Belt

Please log in to comment
0

Are you futzing with IE itself or another application which uses it?

 

I wouldn't recommend the former and for the latter I'd recommend using AppSearch to find its location and setting a property's value.

Answered 03/05/2013 by: VBScab
Red Belt

  • This content is currently hidden from public view.
    Reason: Removed by member request
    For more information, visit our FAQ's.
  • It was more of a general question, set within the context of this particular situation.

    It really is just a shortcut launching IE with a given URL. The path to IE is set through a property. AppSearch you say? I thought there would be a simple(r) way of doing it.
Please log in to comment
This content is currently hidden from public view.
Reason: Removed by member request
For more information, visit our FAQ's.

0

That will invoke the system default browser though, not IE, I would have thought?

Not entirely certain why they so badly need IE, but apparently they do.

Answered 03/05/2013 by: Normannen
Orange Belt

Please log in to comment
0

It would, yes.

Answered 03/05/2013 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity