The issue involved in that requires you log in via another user, which is
impossible for a per-user installation. If you are installing per-machine then
ICE38 does, in fact, apply to you, you cannot use an advertised shortcut here,
and probably should seriously reconsider installing an executable file to
%appdata%.
The 64,000 question is: are you performing a per-user or per-machine
installation?
If it's the case where you are performing per-user installs then you can edit
your wixproj file to ignore certain ICE errors/warnings in the VS properties
page or with -sice {ice_id} command line parameter. ICE38 is incorrect in this
case.
If it's the case where you are performing per-machine installs then advertised
shortcuts to per-user resources won't be in your future.
-----Original Message-----
From: Wesley Manning [mailto:[email protected]]
Sent: Tuesday, February 11, 2014 4:44 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Using advertised shortcuts/progid in per user install
According to here a HKCU keypath is important for self-healing:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/A-method-for-avoiding-ICE38-error-td712044.html.
So looks like not a good idea to ignore it.
Wes
-----Original Message-----
From: Bryan Wolf [mailto:[email protected]]
Sent: February-11-14 6:15 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Using advertised shortcuts/progid in per user install
Since that is the case, ICE38 is (in my opinion) incorrect and you will want to
ignore it. ICE38 implies you are installing per-user resources in the context
of a per-machine installation but never verifies that this is so.
Actually authoring a per-user install requires that you ignore ICE38 because it
won't ever be accurate for that world.
-----Original Message-----
From: Wesley Manning [mailto:[email protected]]
Sent: Tuesday, February 11, 2014 3:29 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Using advertised shortcuts/progid in per user install
Sorry I copied it after I was playing around with it. I did have the keypath
only set to the registry value.
-----Original Message-----
From: John Cooper [mailto:[email protected]]
Sent: February-11-14 5:15 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Using advertised shortcuts/progid in per user install
If that is your intent, then the KeyPath element should be removed from the
File element. As it stands now, your authoring has both the File element and
the RegistryValue element as KeyPath's.
--
John Merryweather Cooper
Build & Install Engineer - ESA
Jack Henry & Associates, Inc.®
Shawnee Mission, KS 66227
Office: 913-341-3434 x791011
[email protected]
www.jackhenry.com
-----Original Message-----
From: Wesley Manning [mailto:[email protected]]
Sent: Tuesday, February 11, 2014 3:10 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Using advertised shortcuts/progid in per user install
Rob,
The error's not because I made a registry entry the keypath in that component?
I know FILE_Rapid is not the KeyPath as the registry entry is. I had to do
that to meet ICE38 (every component being installed under the current user's
profile also specifies a registry key under the HKEY_CURRENT_USER root in the
KeyPath column of the Component table).
Wes
-----Original Message-----
From: Rob Mensching [mailto:[email protected]]
Sent: February-11-14 4:13 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Using advertised shortcuts/progid in per user install
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:[email protected]]
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:[email protected]]
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 <[email protected]> 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:[email protected]]
> 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
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.
------------------------------------------------------------------------------
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
[email protected]
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
[email protected]
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.
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users