How to programmatically get the Installation Folder Dialog box value

D

Dave

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
 
F

Family Tree Mike

Dave said:
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"];
 
D

Dave

Dave said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top