473,395 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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
2 7644


"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jimbo | last post by:
I am trying to install Sql Server on a Win 2000 Server...It keeps failing and I dont know why...I turned off my anti-virus for installation and am logged in as an admin..heres the output of the...
1
by: Wayne | last post by:
I'm using the following code from the Access Web to open a folder. The folder opens in "List" View. Is there an addition that I can make to the code to force the folder to open in "Details" view?...
8
by: Salad | last post by:
I designed a small app and I wanted to do a BrowseFolder (see http://www.mvps.org/access/api/api0002.htm), basically do a file open diaglog and select a directory/folder. The problem is that you...
4
by: coosa | last post by:
Hi, I was installing SQL Server on my machine and during installation my PC freezed. It happens frequently on my machine. So i tried after restarting to install it again and since then i always...
1
by: ImageAnalyst | last post by:
Yay!!! They fixed this for VS2005. You can now set the default installation to be "Everyone" instead of "Just Me" and you can control whether you even want those radio button installed in your...
0
by: Kemin | last post by:
Recently I built an ASP.NET application Installation program for deployment. The ASP.NET app use a Sql Server db, I package it into the installation file too. The general step of building an...
9
by: Nick 'The Database Guy' | last post by:
Hi All, I want to browse to a particular folder, not a particular file. The reason for this is that I have a utility that asks people to browse to a certain file, and I want them to be able to...
3
by: oopaevah | last post by:
I want to have a separate button which invokes the "browse" button on an input type=file. In internet explorer the following code works ok, in firefox nothing happens. All I do is call click()...
1
by: sunil | last post by:
Hi, I want to change the default installation folder to my own path. I did it by changing the application folder's DefaultLocation property. The installation works fine as long the path that I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.