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 / November 2004

Tip: Looking for answers? Try searching our database.

Default Location

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Raymond - 08 Nov 2004 03:32 GMT
Hello to all.  I have created a deployment package for
my .net app. My deployment package seachers for a registry
key and uses its value as the default location for my
application (done via Launch Conditions editor).  However,
if the registry key does not exist, it the deployment package
pops up an error and never resumes installation.

Is there a way or a good approach on having to assign
a default directory (programmatic i guess) if the
registry key does not exist and also suppress that
error message?

I am thinking of using custom folders and customer actions.
Can i use this approach? Can you share to me how to
do this?

Thanks for your answers.
Raymond
Stefan Krueger [MVP] - 08 Nov 2004 10:28 GMT
Specify a valid default location in your package, and set the location from
registry only if the registry entry is actually found.

Signature

Stefan Krueger
Microsoft Windows Installer MVP

Please post your questions in the newsgroup or vist one of these web sites:

Windows Installer FAQ
http://www.msifaq.com - http://www.msifaq.de

InstallSite - Resources for Setup Developers
http://www.installsite.org
http://www.installsite.de (GERMAN)

> Hello to all.  I have created a deployment package for
> my .net app. My deployment package seachers for a registry
[quoted text clipped - 14 lines]
> Thanks for your answers.
> Raymond
rr_dot_net - 15 Nov 2004 20:32 GMT
How does one "set the location from registry only if the registry entry is
actually found?" (using vs.net or Orca)

Thanks

> Specify a valid default location in your package, and set the location from
> registry only if the registry entry is actually found.
[quoted text clipped - 17 lines]
> > Thanks for your answers.
> > Raymond
Stefan Krueger [MVP] - 17 Nov 2004 19:26 GMT
Add a "Set a Directory" custom action with a condition that evaluates to
true if the search was successful.

Signature

Stefan Krueger
Microsoft Windows Installer MVP

Please post your questions in the newsgroup or vist one of these web sites:

Windows Installer FAQ
http://www.msifaq.com - http://www.msifaq.de

InstallSite - Resources for Setup Developers
http://www.installsite.org
http://www.installsite.de (GERMAN)

> How does one "set the location from registry only if the registry entry is
> actually found?" (using vs.net or Orca)
[quoted text clipped - 23 lines]
>> > Thanks for your answers.
>> > Raymond

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.