Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / April 2007

Tip: Looking for answers? Try searching our database.

How to get the actual Installation folder

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ahmed Saeed - 26 Apr 2007 09:43 GMT
HI

I created a setup project using visual studio, but I would like to retrieve
the actual Installation folder name that the user has entered during the
installation of the application using custom actions so that I can include
the folder name in one of the installed files.

any help would be appreciated.

Regards
Ahmed
Phil Wilson - 26 Apr 2007 15:50 GMT
Create a registry item that contains this, case-sensitive:
[TARGETDIR]
TARGETDIR is the property name, and the brackets cause it it to resolve to
the actual path.
Signature

Phil Wilson
[Microsoft MVP-Windows Installer]

> HI
>
[quoted text clipped - 7 lines]
> Regards
> Ahmed
Ahmed Saeed - 28 Apr 2007 17:31 GMT
Thank you Phil
This worked for me, I created a registry item as you said and I read it
using the RegRead method of the wscript.shell class,

Dim WshShell
Set WshShell = CreateObject("WScript.Shell")
msgbox WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\TWS\MYDIR")

But is their a way to read the [TARGETDIR] property directly in session
class.
thank you
Ahmed

> Create a registry item that contains this, case-sensitive:
> [TARGETDIR]
[quoted text clipped - 11 lines]
>> Regards
>> Ahmed

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.