/build/static/layout/Breadcrumb_cap_w.png

MSI: referencing Directory table in Property table.

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)".


0 Comments   [ + ] Show comments

Answers (5)

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
Posted by: jagadeish 11 years ago
Red Belt
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


Comments:
  • That's what I was looking for. Thanks! - Normannen 11 years ago
Posted by: anonymous_9363 11 years ago
Red Belt
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.

Posted by: anonymous_9363 11 years ago
Red Belt
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.


Comments:
  • 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. - Normannen 11 years ago
Posted by: Normannen 11 years ago
Orange Belt
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.

Posted by: anonymous_9363 11 years ago
Red Belt
0

It would, yes.

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ