Re: Default Location

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Stefan Krueger [MVP] (skrueger_at_newsgroups.nospam)
Date: 11/17/04


Date: Wed, 17 Nov 2004 20:26:15 +0100

Add a "Set a Directory" custom action with a condition that evaluates to
true if the search was successful.

-- 
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)
"rr_dot_net" <rrdotnet@discussions.microsoft.com> schrieb im Newsbeitrag 
news:8499889A-FD7F-4875-8D13-FF1C9C4CC6AA@microsoft.com...
> How does one "set the location from registry only if the registry entry is
> actually found?" (using vs.net or Orca)
>
> Thanks
>
> "Stefan Krueger [MVP]" wrote:
>
>> Specify a valid default location in your package, and set the location 
>> from
>> registry only if the registry entry is actually found.
>>
>> -- 
>> 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)
>>
>> "Raymond" <mon_tejano@yahoo.com> schrieb im Newsbeitrag
>> news:634f874f.0411071932.4322e7ed@posting.google.com...
>> > 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
>>
>> 


Relevant Pages

  • RE: Initialize Command
    ... Event Type: Warning ... Event Source: MsiInstaller ... Description of the Windows Installer CleanUp Utility ... service was still using the registry during log off. ...
    (microsoft.public.windowsxp.general)
  • RE: Initialize Command
    ... Event Type: Warning ... Event Source: MsiInstaller ... Description of the Windows Installer CleanUp Utility ... service was still using the registry during log off. ...
    (microsoft.public.windowsxp.general)
  • RE: Initialize Command
    ... Event Type: Warning ... Event Source: MsiInstaller ... Description of the Windows Installer CleanUp Utility ... service was still using the registry during log off. ...
    (microsoft.public.windowsxp.general)
  • RE: Initialize Command
    ... Event Type: Warning ... Event Source: MsiInstaller ... Description of the Windows Installer CleanUp Utility ... service was still using the registry during log off. ...
    (microsoft.public.windowsxp.general)
  • Re: Windows installer
    ... Here's the information supplied by our contact at Microsoft: ... CurrentVersion information in the registry between the versions. ... is possible to set a registry key to block the Windows Installer ... Microsoft MVP - Publisher ...
    (microsoft.public.word.docmanagement)