I think you want to change "${var.MYDIR}\hotkeys.exe" to [MYDIR]hotkeys.exe"

Rob

bryan rasmussen wrote:
> Hi,
> 
> I need to write a key to the registry pointing to the location of my
> program. It is in the ProgramFilesFolder. How do I refer to this
> variable in the registry key?
> 
> with the following I get an MSI out but it crashes halfway through;
> 
> 
>       <Directory Id='TARGETDIR' Name='SourceDir'>
>          <Directory Id='ProgramFilesFolder'
> 
> Name='PFiles'>
>             <Directory Id='MYDIR' Name='TestProg'
> 
> LongName='Test Program'>
>                <Component Id='hotkeyfiles'
> 
> Guid='12345678-1234-1234-1234-098765432112'>
>                   <File Id='hotkeysexe'
> 
> LongName='GrowBusinesshotkeys.exe'
> 
> Name="hotkeys.exe" DiskId='1' Vital="yes"
> 
> src='C:\projects\work\growbusinesshotkeys\demomachin
> 
> e\hotkeys.exe' />
>                   <File Id='gbsicon'
> 
> Name='gbslogo.ico' DiskId='1' Vital="yes"
> 
> src='C:\projects\work\growbusinesshotkeys\demomachin
> 
> e\gbslogo.ico' />
>                   <File Id='gbssite'
> 
> Name='gbssite.txt' DiskId='1'
> 
> src='C:\projects\work\growbusinesshotkeys\demomachin
> 
> e\gbssite.txt' />
>                    <File
> 
> Id='_1280X1024contextsetter' Name="c1280x1"
> 
> LongName='1280X1024contextsetter' DiskId='1'
> 
> src='C:\projects\work\growbusinesshotkeys\demomachin
> 
> e\1280X1024contextsetter' />
> <Registry Root="HKCU"
>               
> 
> Key="Software\Microsoft\Windows\CurrentVersion\Run"
>               Action="createKey" >
>               <Registry Name="SIHotkeys"
> 
> Value="${var.MYDIR}\hotkeys.exe" Type="string" />
>       </Registry>
> 
> Cheers,
> Bryan Rasmussen
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to