The WiX references to keys are the same concepts as registry keys.  The 
Type="string" is how you 
tell WiX you want a string value.  When you say it doesn't work, what does it 
do?

Rob

bryan rasmussen wrote:
>> From: Rob Hamflett <[EMAIL PROTECTED]>
> 
>> I think you want to change "${var.MYDIR}\hotkeys.exe" to [MYDIR]hotkeys.exe"
>>
> 
> Hmm, still doesn't work. Actually I think this is wrong:
> <Registry Root="HKCU"
>               
> 
> Key="Software\Microsoft\Windows\CurrentVersion\Run"
>               Action="createKey" >
>               <Registry Name="SIHotkeys"
> 
> Value="[MYDIR]\hotkeys.exe" Type="string" />
>       </Registry>
> 
> does createKey map the term key to the actual Registry concept of a
> key? I thought not because I didn't see any CreateString values as
> being allowed.
> I'd assumed it did not just create a key but strings and integers and
> so forth, but of course that could be wrong. If it is, what action
> should I be doing. Also is my Type correct?  How do I tell WIX that I
> want a REG_SZ?
> 
> Cheers,
> Bryan Rasmussen
> 
> 
> 
>> 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