That error is saying the Component is the KeyPath (thus a Directory) not the file. Something is causing FILE_Rapid to not be the KeyPath.
_______________________________________________________________ FireGiant | Dedicated support for the WiX toolset | http://www.firegiant.com/ -----Original Message----- From: Wesley Manning [mailto:wmann...@dynagen.ca] Sent: Tuesday, February 11, 2014 11:32 AM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Using advertised shortcuts/progid in per user install I would think so too but I can't figure out how to get past the ICE warnings. Since it's per user install in a per user location I can't have the file as the keypath of the component I have to set a registry value as the key path or I get ICE38. But once I do, I get ICE19 and ICE50. To meet ICE38 I have the below but it causes the below errors: ICE19 - 'settings' advertises component: 'CMP_Rapid'. This component cannot be advertised because the KeyPath type disallows it ICE19 - Shortcut: 'SHC_RunConfigExe' advertises component: 'CMP_Rapid'. This component cannot be advertised because the KeyPath type disallows it. ICE50 - Component 'CMP_Rapid' has an advertised shortcut, but the KeyPath cannot be found. <DirectoryRef Id="INSTALL_FOLDER"> <Component Id="CMP_Rapid" Guid="{9373A11C-5A3C-49E3-963D-C19B765A4285}"> <File Id="FILE_Rapid" Source="$(var.FilePath)\Dynagen Configurator.exe" KeyPath="yes"> </File> <Shortcut Id="SHC_RunConfigExe" Name="DYNAGEN Configurator" Description="Opens DYNAGEN Configurator application." Directory="ConfigShortCutDir" WorkingDirectory="INSTALL_FOLDER" Icon="ICO_RunConfigExe.exe" Advertise="yes"/> <ProgId Id="Rapid.drcS" Icon="ICO_drcS.ico" Advertise="yes"> <Extension Id="settings"> <Verb Id="Open" Command="Open" Argument="/so "%1"" /> <Verb Id="Edit" Command="Edit" Argument="/edit "%1""/> <Verb Id="Program" Command="Program" Argument="/program "%1""/> </Extension> </ProgId> <RegistryValue Root="HKCU" Key="Software\Dynagen\DynagenConfigurator" Name="CMP_Rapid" Type="integer" Value="1" KeyPath="yes" /> </Component> </DirectoryRef> -----Original Message----- From: Phil Wilson [mailto:phildgwil...@gmail.com] Sent: February-11-14 2:52 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Using advertised shortcuts/progid in per user install I don't know why it wouldn't be possible. Advertised shortcuts are one of the entry points for repair, and I'm pretty sure repair works fine on per user installs. The process is a potential repair - the shortcut checks that the component target is there, and if not installs it and repairs the parent feature. If it happens to have been a per machine install and another user is now using the product, the repair will see that (for example) a file in user's application data doesn't exist, so it gets installed for that user, the install-on-demand thing. --------------- Phil Wilson On Tue, Feb 11, 2014 at 7:03 AM, Wesley Manning <wmann...@dynagen.ca> wrote: > Can you use advertised shortcuts in a per user install that installs to a per > user location (e.g. LocalAppDataFolder). From my searching it doesn't > appear possible. > > I asked this over a week ago but got no responses. I'll try one more > time. :) > > -----Original Message----- > From: Wesley Manning [mailto:wmann...@dynagen.ca] > Sent: January-31-14 5:11 PM > To: General discussion about the WiX toolset. > Subject: [WiX-users] Using advertised shortcuts/progid in per user > install > > Is it possible to use advertised shortcuts/progid in a per user install. I'm > installing to the LocalAppDataFolder. I had to add a registry as keypath > because of ICE38. But now because the file is no longer the keypath I get > ICE19 and ICE50. > > I don't know much about advertising. Is that a per machine thing? > > Details on stackoverflow: > http://stackoverflow.com/questions/21490035/is-it-possible-to-have-adv > ertised-shortcuts-and-progid-for-a-per-user-msi > > Wes > > -----Original Message----- > From: John Cooper [mailto:jocoo...@jackhenry.com] > Sent: January-31-14 4:43 PM > To: General discussion about the WiX toolset. > Subject: Re: [WiX-users] XmlFile Failed to find node > > Change your ElementPath to have the XPath without the /@value and add a Name > attribute to util:XmlFile with the value "value". It should work. > > -- > John Merryweather Cooper > Build & Install Engineer - ESA > Jack Henry & Associates, Inc.(r) > Shawnee Mission, KS 66227 > Office: 913-341-3434 x791011 > jocoo...@jackhenry.com > www.jackhenry.com > > > > -----Original Message----- > From: Jeremy [mailto:s6a9d6...@gmail.com] > Sent: Friday, January 31, 2014 2:34 PM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] XmlFile Failed to find node > > Hello! > > I am trying to use a couple XmlFile definitions to edit an app.config file > using the WiX 3.8 toolset. I got one XmlFile working perfectly, but am > getting a "Failed to find node" node error (-2147020584) with the others, but > am a bit stumped as to why. I am not an XPath pro but the failing XmlFile > entries are pretty much exactly like the working entry, I'm at a loss as to > why one works and the others don't. > > > Here is a stripped down version of the app.config. I'm trying to change that > appSettings/APIURL value element (working just fine), as well as the > "minlevel" element in those nlog/rules/logger entries. > > <configuration> > <configSections> > <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" /> > </configSections> > <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance"> > <targets> > <target name="console" xsi:type="ColoredConsole" > layout="${longdate} > (${level}) [${callsite}]: ${message}" /> > <target name="file" xsi:type="File" fileName="blah.log" > layout="${longdate} (${level}) [${callsite}]: ${message}" /> > </targets> > <rules> > <logger name="*" minlevel="Debug" writeTo="file" /> > <logger name="*" minlevel="Debug" writeTo="console" /> > </rules> > </nlog> > <appSettings> > <add key="APIURL" value="http://localhost/API/" /> > </appSettings> > </configuration> > > > My transforms are relying on these properties if it makes any difference: > > <?if $(var.MyApp.Configuration) = "Debug" ?> > <Property Id="APIURL" Value="http://api.test.com/" /> > <Property Id="NLOGLEVELFILE" Value="Info" /> > <Property Id="NLOGLEVELCONSOLE" Value="Debug" /> > <?else?> > <Property Id="APIURL" Value="https://api.real.com/" /> > <Property Id="NLOGLEVELFILE" Value="Warn" /> > <Property Id="NLOGLEVELCONSOLE" Value="Info" /> > <?endif ?> > > > Here is my first XmlFile transform which is working perfectly: > > <Util:XmlFile Id="UpdateApiUrl" > Action="setValue" > File="[MainInstallFolder]MainApp.exe.config" > SelectionLanguage="XPath" > Permanent="yes" > PreserveModifiedDate="yes" > > ElementPath="/configuration/appSettings/add[\[]@key='APIURL'[\]]/@value" > Value="[APIURL]" > /> > > However when I try to target those NLog settings, these are causing the > "Failed to find node" errors. These three XmlFile entries are all in the same > component which contains my .exe.config file. > > <Util:XmlFile Id="UpdateNlogFileLogLevel" > Action="setValue" > File="[MainInstallFolder]MainApp.exe.config" > SelectionLanguage="XPath" > Permanent="yes" > PreserveModifiedDate="yes" > > ElementPath="/configuration/nlog/rules/logger[\[]@writeTo='file'[\]]/@minlevel" > Value="[NLOGLEVELFILE]" > /> > > <Util:XmlFile Id="UpdateNlogConsoleLogLevel" > Action="setValue" > File="[MainInstallFolder]MainApp.exe.config" > SelectionLanguage="XPath" > Permanent="yes" > PreserveModifiedDate="yes" > > ElementPath="/configuration/nlog/rules/logger[\[]@writeTo='console'[\]]/@minlevel" > Value="[NLOGLEVELCONSOLE]" > /> > > I also even tried a simpler > ElementPath="/configuration/nlog/rules/logger/@minlevel" but that also got > "Failed to find node". > > The XPath query does seem to be correct, at least a couple random online > XPath testing websites showed me I really was targeting what I'm trying to > target. I also removed the name="*" from those logger lines in the xml > config, thinking maybe that was throwing off the parsing somehow, but that > didn't make any difference either. I also tried re-ordering the XmlFile > entries thinking maybe the first one would work for some strange reason and > all extra ones never will work, but that didn't help either. > > Thanks for any and all assistance! > > Best wishes > Jeremy > ---------------------------------------------------------------------- > -------- WatchGuard Dimension instantly turns raw network data into > actionable security intelligence. It gives you real-time visual feedback on > key security issues and trends. Skip the complicated setup - simply import a > virtual appliance and go from zero to informed in seconds. > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg. > clktrk _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > NOTICE: This electronic mail message and any files transmitted with it are > intended exclusively for the individual or entity to which it is addressed. > The message, together with any attachment, may contain confidential and/or > privileged information. > Any unauthorized review, use, printing, saving, copying, disclosure or > distribution is strictly prohibited. If you have received this message in > error, please immediately advise the sender by reply email and delete all > copies. > > > ---------------------------------------------------------------------- > -------- WatchGuard Dimension instantly turns raw network data into > actionable security intelligence. It gives you real-time visual feedback on > key security issues and trends. Skip the complicated setup - simply import a > virtual appliance and go from zero to informed in seconds. > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg. > clktrk _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ---------------------------------------------------------------------- > -------- WatchGuard Dimension instantly turns raw network data into > actionable security intelligence. It gives you real-time visual feedback on > key security issues and trends. Skip the complicated setup - simply import a > virtual appliance and go from zero to informed in seconds. > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg. > clktrk _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ---------------------------------------------------------------------- > -------- > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg. > clktrk _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users