467,885 Members | 1,330 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,885 developers. It's quick & easy.

How to programmatically get the Installation Folder Dialog box value

I'm working with the Windows installer and need to programmatically
get a hold of the Application Folder value (in a custom step). I.e.
Application Folder value gets set in the Folder field of the
Installation Folder User Interface Dialog Box, and I have a custom
step that needs to retrieve this value.

MSDN mentions TARGETDIR property value and so on but really lacks
specifics on how to get a hold of this dynamically changing value.

I need the value as my install target dir contains some readme input
files that i'm displaying in custom GUIs during installation.

thanks, dave

Dec 6 '07 #1
  • viewed: 7344
Share:
2 Replies


"Dave" wrote:
I'm working with the Windows installer and need to programmatically
get a hold of the Application Folder value (in a custom step). I.e.
Application Folder value gets set in the Folder field of the
Installation Folder User Interface Dialog Box, and I have a custom
step that needs to retrieve this value.

MSDN mentions TARGETDIR property value and so on but really lacks
specifics on how to get a hold of this dynamically changing value.

I need the value as my install target dir contains some readme input
files that i'm displaying in custom GUIs during installation.

thanks, dave

Set the property on the custom action for "CustomeActionData" to
/INSTALLDIR="[TARGETDIR]\"

In the custom action code, get the value by:
Context.Parameters ["INSTALLDIR"];

Dec 6 '07 #2
On Dec 6, 2:57 pm, Family Tree Mike
<FamilyTreeM...@discussions.microsoft.comwrote:
"Dave" wrote:
I'm working with the Windows installer and need to programmatically
get a hold of the Application Folder value (in a custom step). I.e.
Application Folder value gets set in the Folder field of the
Installation Folder User Interface Dialog Box, and I have a custom
step that needs to retrieve this value.
MSDN mentions TARGETDIR property value and so on but really lacks
specifics on how to get a hold of this dynamically changing value.
I need the value as my install target dir contains some readme input
files that i'm displaying in custom GUIs during installation.
thanks, dave

Set the property on the custom action for "CustomeActionData" to
/INSTALLDIR="[TARGETDIR]\"

In the custom action code, get the value by:
Context.Parameters ["INSTALLDIR"];- Hide quoted text -

- Show quoted text -
smashing thanks! I was sooo close, i hadn't thought of setting a parm
value to the TARGETDIR, but had it set to other values.

dave
Dec 6 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Jimbo | last post: by
9 posts views Thread by Nick 'The Database Guy' | last post: by
reply views Thread by MrMoon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.