Retrieving TARGETDIR
Retrieving TARGETDIR
Retrieving TARGETDIR
Retrieving TARGETDIR
Retrieving TARGETDIR
Retrieving TARGETDIR Retrieving TARGETDIR Retrieving TARGETDIR Retrieving TARGETDIR Retrieving TARGETDIR Retrieving TARGETDIR Retrieving TARGETDIR Retrieving TARGETDIR
Retrieving TARGETDIR Retrieving TARGETDIR
Retrieving TARGETDIR
Go Back  Xtreme Visual Basic Talk > > > Retrieving TARGETDIR


Reply
 
Thread Tools Display Modes
  #1  
Old 01-08-2008, 07:00 AM
gubbs gubbs is offline
Centurion
 
Join Date: Sep 2002
Location: Georgia
Posts: 112
Default Retrieving TARGETDIR


All,

I seem to have a brain block here. In my Windows Installer app, I've a VBScript Custom Action performed during the Install phase. I need to retrieve the path of the folder in which the installed application is being installed (e.g. C:\Program Files\[Manufacturer]\[Software]\...). However, when I try to retrieve the TARGETDIR property, a zero-lenght string is returned:

dim tardir
tardir = property("TARGETDIR")

I've also tried tardir = session.property("TARGETDIR"), but get the same result.

Am I retrieving the correct property to get the install path?

Thanx!
__________________
Gubbs
Reply With Quote
  #2  
Old 01-08-2008, 07:48 AM
gubbs gubbs is offline
Centurion
 
Join Date: Sep 2002
Location: Georgia
Posts: 112
Default

I figured it out with the help of Phil Wilson:

http://www.simple-talk.com/dotnet/vi...ustom-actions/

The trick is to enter [TARGETDIR] in the CustomActionProperty of the Custom Action in the Windows Installer App.

Then Session.Property("CustomActionData") will return the target directory
__________________
Gubbs
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Retrieving TARGETDIR
Retrieving TARGETDIR
Retrieving TARGETDIR Retrieving TARGETDIR
Retrieving TARGETDIR
Retrieving TARGETDIR
Retrieving TARGETDIR Retrieving TARGETDIR Retrieving TARGETDIR Retrieving TARGETDIR Retrieving TARGETDIR Retrieving TARGETDIR Retrieving TARGETDIR
Retrieving TARGETDIR
Retrieving TARGETDIR
 
Retrieving TARGETDIR
Retrieving TARGETDIR
 
-->