Re: [WiX-users] Get only the name of a file by its id

2014-10-29 Thread soldag
Thanks, Nicholas Pierce. I now solved the problem by using the preprocessor variable /TargetFileName/. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Get-only-the-name-of-a-file-by-its-id-tp7597508p7597563.html Sent from the wix-users mailing lis

Re: [WiX-users] Get only the name of a file by its id

2014-10-28 Thread Phil Wilson
I wouldn't do this at install time anyway. Is it safe to assume that people will never upgrade or change their version of IE after your app is installed? --- Phil Wilson On Tue, Oct 28, 2014 at 7:50 AM, Nicholas Pierce wrote: > Do you not know the name of your EXE at compile time? Y

Re: [WiX-users] Get only the name of a file by its id

2014-10-28 Thread Nicholas Pierce
Do you not know the name of your EXE at compile time? You could hard code the name of the executable, or you could use the preprocessor. $(var.ProjectName.TargetFileName) will get you the file name of the output of the project with name 'ProjectName' if you've set up the references in Visual Stud

Re: [WiX-users] Get only the name of a file by its id

2014-10-28 Thread Brian Enderle
If you need to install a different version of a particular file based on the version of IE installed on a machine you could check the registry key HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > InternetExplorer > Version Vector and then install files using a condition like so: ...

Re: [WiX-users] Get only the name of a file by its id

2014-10-28 Thread soldag
Hmm, too bad that their is no other possibility, because I never came in touch with custom actions. I want to specify, which version of the Interner Explorer should be used inside my application. Therefore I need to add a registry key with only the executable name (see here

Re: [WiX-users] Get only the name of a file by its id

2014-10-28 Thread Nicholas Pierce
If you want just the file name, I think you'd need to write a custom action to get that. Why are you interested in just the file name of a particular file? Nicholas On 27 October 2014 13:32, soldag wrote: > Hello, > > I am currently working on an installer for my software using the WiX > tools