Thanks David that works.
I have used as below:
<Property Id="SIMULATORPATH">
<DirectorySearch Id="SimulatortDir" Depth="6"
Path="$(var.SimulatorSearchRoot)" AssignToProperty="yes">
<FileSearch Id="StandaloneSimulator_exe"
Name="StandaloneSimulator.exe"/>
</DirectorySearch>
</Property>
Adding to it, is there any way i can refer to the root directory of the
current directory where the wix file is. My wix file is in the location
D:\Project\ESI\PLTLPLO\trunk\releaseFiles\GameraInstaller, how can i
refer to the root directory "D:\". I want to use this value in the path
attribute of DirectorySearch. If anyone has used the same please let me
know.
Regards,
SuvraJyoti
On 15-01-2014 20:53, David Watson wrote:
> If you are not shipping the simulator and it is already on the target machine
> you can use a directory/file search to search the hard disk for it then use
> the resulting property to set the registry value.
>
> See
> http://wixtoolset.org/documentation/manual/v3/howtos/files_and_registry/parentdirectorysearch.html
>
>
> -----Original Message-----
> From: Suvrajyoti Panda [mailto:[email protected]]
> Sent: 15 January 2014 11:51
> To: General discussion about the WiX toolset.
> Subject: [WiX-users] Fwd: Creating registry for an application installed
> outside the current directory structure in WIX file
>
> Hi All,
>
> To add to the below issue, i understand that i could use a property that
> includes the registry search. But issue here is that the application
> "StandaloneSimulator.exe" is not something that has been installed on my
> machine(i cannot find it under control panel). The
> D:\Project\ESI\PFW\trunk\StandaloneSimulator\bin exists as it has been
> checked out from SVN.Please let me know in case there are any workarounds.
>
>
> -------- Original Message --------
> Subject: Creating registry for an application installed outside the
> current directory structure in WIX file
> Date: Wed, 15 Jan 2014 12:44:55 +0530
> From: Suvrajyoti Panda <[email protected]>
> To: General discussion about the WiX toolset.
> <[email protected]>
>
>
>
> Hi All,
>
> I am creating an wix installer. I want to create a registry entry whose path
> is not under the directory structure created in the WIX file. Below is what i
> intend to do:
>
> <Directory Id='TARGETDIR' Name='SourceDir'>
> <Directory Id='Scheduler' Name="Scheduler">
> <Directory Id='PLTLPLOGAMERA' Name="Pipeline Scheduler Gamera">
>
> <Component Id="x86RegEntGameraSimulatorPath"
> Guid="{C769AC98-A3D0-4CB4-939F-F396B49D4E5F}" Win64="no">
> <RegistryValue Id="x86GameraSimulatorPathRegValue"
> Root="HKLM" Key="SOFTWARE\[Manufacturer]"
> Name="$(var.standalonesimulatorRegName)"
> *Value="D:\Project\ESI\PFW\trunk\StandaloneSimulator\bin" *Type="string" />
> </Component>
> <Component Id="x64RegEntGameraSimulatorPath"
> Guid="{0ED0A7FC-DCB1-4C36-A39B-56F9F97A3A2C}" Win64="yes">
> <RegistryValue Id="x64GameraSimulatorPathRegValue"
> Root="HKLM" Key="SOFTWARE\[Manufacturer]"
> Name="$(var.standalonesimulatorRegName)"
> Value="*D:\Project\ESI\PFW\trunk\StandaloneSimulator\bin*" Type="string" />
> </Component>
> </Directory>
> </Directory>
> </Directory>
>
> The *Value *in the above keys is the path where an application
> "standalonesimulator.exe" is installed.Please suggest if there is anyway that
> i do not have to hardcode this path. I know i can use an include file and
> fetch this path, but again that path will be harcoded in the include file
> anyways.
>
> Regards,
> SuvraJyoti
>
>
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical
> Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
> SDL PLC confidential, all rights reserved.
> If you are not the intended recipient of this mail SDL requests and requires
> that you delete it without acting upon or copying any of its contents, and we
> further request that you advise us.
> SDL PLC is a public limited company registered in England and Wales.
> Registered number: 02675207.
> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6
> 7DY, UK.
>
>
>
> This message has been scanned for malware by Websense. www.websense.com
>
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users