Hi,
Read a registry value and assign to a property like so
    <Property Id='VS2008'>
      <RegistrySearch Id='VisualStudio2008'
                      Root='HKLM'
                      Key='SOFTWARE\Microsoft\VisualStudio\9.0'
                      Name='InstallDir'
                      Type='raw' />
    </Property>

Then you will start your directory structure like so

      <Directory Id='VS2008' Name='.'>
        <!-- Your directories and components here -->
      </Directory>

Note DirectoryID is the same as the property id.

Regards
Stephen

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:wix-users-
> [EMAIL PROTECTED] On Behalf Of Boris Krivonog
> Sent: 04 March 2008 14:30
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Problem Reading Registry
> 
> Please refer to http://www.tramontana.co.hu/wix/lesson1.php, under
"1.5
> Where to Install?". It contains a really simple and exhaustive
> explanation about this issue.
> 
> Hope this helps,
>   Boris
> 
> 
> Riyaz Mogharabin wrote:
> > Hi everybody,
> >
> > I have to read a registry value from a specific key ( lets say
> > HKLM\Software\Company\ ) and this value contains the path to the
> location
> > where we need to install the software (so the format of the value
will
> be
> > something like "C:\Company\HomeDir\" ).
> >
> > How can I get this value by use of <RegistrySearch> Element? How can
I
> > assign this value to the Directory where I want to install files in?
> >
> >
> >
> >
> >
> > <Directory Id="TARGETDIR" Name="SourceDir" >
> >
> >     <Directory Id="CompanyDIR" Name="Company" >
> >
> >         <Component Id="Components" Guid="<Sample-GUID>" >
> >
> >             <File Id='file01' Name='SampleFile' />
> >
> >          </Component>
> >
> >     </Directory>
> >
> > </Directory>
> >
> >
> >
> > This means, the Value must be divided into the directory names, and
be
> used
> > in the <Directory> names. But how can I get this value by
> <RegistrySearch>
> > Element, and how can I divide it? Can anybody give me a sample code?
> >
> > Also I must add that I use "wix-2.0.5805.0" as the stable version.
> >
> > Thank you very much,
> >
> >
------------------------------------------------------------------------
> -
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> 
> 
>
------------------------------------------------------------------------
-
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to