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 / .NET Framework / Setup / May 2005

Tip: Looking for answers? Try searching our database.

Changing TARGETDIR in Installer Class

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
prash - 12 Apr 2005 13:01 GMT
Hi,

Please let me know the following.

How to access Installer properties like TARGETDIR or
INSTALLDIR in the Installer class.

How to set the TARGETDIR property programmatically in  the
installer class so that I can change the TARGETDIR .
I am using VC++.NET.
Phil Wilson - 12 Apr 2005 16:54 GMT
You can't change TARGETDIR in an installer class because that code runs just
about when the install is finished. It's too late. What do you want to set
it to? Something in the registry? There are other ways to set it early in
the setup.
Signature

Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

> Hi,
>
[quoted text clipped - 6 lines]
> installer class so that I can change the TARGETDIR .
> I am using VC++.NET.
prash - 13 Apr 2005 05:45 GMT
hi,
Thank you Phil.
I want to install my application in the location where another related
application has already installed.First i want to check where it is
installed
and set the TARGETDIR to that location(path).
Please tell me the other ways.
I am new to windows installer.
Could you reply as early as possible..
Post VC++.NET sample codes.
waiting for Your reply

With regards
pras

> You can't change TARGETDIR in an installer class because that code runs just
> about when the install is finished. It's too late. What do you want to set
[quoted text clipped - 10 lines]
> > installer class so that I can change the TARGETDIR .
> > I am using VC++.NET.
Phil Wilson - 13 Apr 2005 06:04 GMT
There's a "search target machine" that can do a registry search for a path
and set a property for a custom folder - that's an example of the usual way
to do this kind of thing. So where is this path you're looking for? In the
registry? Where was your installer class code going to get the location
from?
Signature

Phil Wilson
[Microsoft MVP-Windows Installer]

> hi,
> Thank you Phil.
[quoted text clipped - 27 lines]
>> > installer class so that I can change the TARGETDIR .
>> > I am using VC++.NET.
prash - 18 Apr 2005 07:40 GMT
hi,
Since I am new to MSI in .net , i am not sure whether i should use
installer class to set TargetDir.
I am looking for path from the registry. How to access path in the
'search target machine'.

With regards
pras

> There's a "search target machine" that can do a registry search for a path
> and set a property for a custom folder - that's an example of the usual way
[quoted text clipped - 32 lines]
> >> > installer class so that I can change the TARGETDIR .
> >> > I am using VC++.NET.
prash - 18 Apr 2005 10:45 GMT
hi phil,
I get path c:\root\child2 from the registry ,but i want to install my
application at c:\root.
How can i do this(that path may be any thing,here i have taken just
for an example)
waiting for yor reply
with regards
Pras

> hi,
> Since I am new to MSI in .net , i am not sure whether i should use
[quoted text clipped - 41 lines]
> > >> > installer class so that I can change the TARGETDIR .
> > >> > I am using VC++.NET.
surmad - 18 May 2005 17:38 GMT
Hi Pras,

How you get Registry key value from 'search target machine'? How you
access it in launch condition?

I have similar situation like you.
I have to read registry key, get location of old installed software,
Add my files to that location and update some configuration files.

Can you give me details on how to do it?

Regards
Surmad

> *Hi,
>
[quoted text clipped - 6 lines]
> installer class so that I can change the TARGETDIR .
> I am using VC++.NET. *

--
surmad


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.