I thought it might be better like this:

<Registry Root="HKCU"
                

Key="Software\Microsoft\Windows\CurrentVersion\Run"
                Action="write" Name="SIHotkeys"

Value="[MYDIR]\hotkeys.exe" Type="string" />

but that didn't work either. Sorry to be asking what are no doubt
stupid questions but I don't think the documentation is very clear.

Cheers,
Bryan Rasmussen

On 7/24/07, bryan rasmussen <[EMAIL PROTECTED]> 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/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to