Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Thu, 21 Aug 2008 05:33:00 -0700,    group: microsoft.public.platformsdk.msi        back       


How to Conditionally setup a desktop shorcut to app being installe   
Hi,
I am using a VS2008 setup project that installs my app.  The installer will 
pickup two command line arguments [EMURL] and [EMSERVER] that will be used as 
parameters for a shortcut that I am required to put on the desktop for all 
users. 
So far, I've got that working.  
What I would appreciate some help on is how to prevent the shortcut from 
being created if [EMURL] is not provided as an argument to MSIEXEC.  
I have been experimenting with the User's Desktop Condition File 
Installation Property. The shortcut itself, which is under User's Desktop 
does not have a Condition property. 
I have tried [EMURL]<>""  and toggled the Transitive property but the 
shorcut is always installed.
Please help.

Thanks
date: Thu, 21 Aug 2008 05:33:00 -0700   author:   Mario Montes

Re: How to Conditionally setup a desktop shorcut to app being installe   
Shortcuts are associated with files (they're in the same component) so you 
can't have one without the other. VS people solve this by having the same 
exe installed twice, one with the shortcut and one without. Then use the 
condition on the file (and not condition on the other file).
-- 
Phil Wilson
Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972


"Mario Montes"  wrote in message 
news:9DE0CF5B-FD43-40A9-B731-23E7C8BA4621@microsoft.com...
> Hi,
> I am using a VS2008 setup project that installs my app.  The installer 
> will
> pickup two command line arguments [EMURL] and [EMSERVER] that will be used 
> as
> parameters for a shortcut that I am required to put on the desktop for all
> users.
> So far, I've got that working.
> What I would appreciate some help on is how to prevent the shortcut from
> being created if [EMURL] is not provided as an argument to MSIEXEC.
> I have been experimenting with the User's Desktop Condition File
> Installation Property. The shortcut itself, which is under User's Desktop
> does not have a Condition property.
> I have tried [EMURL]<>""  and toggled the Transitive property but the
> shorcut is always installed.
> Please help.
>
> Thanks
date: Thu, 21 Aug 2008 10:34:48 -0700   author:   Phil Wilson

Re: How to Conditionally setup a desktop shorcut to app being installe   
On Aug 21, 5:33 am, Mario Montes
 wrote:
> Hi,
> I am using a VS2008 setup project that installs my app.  The installer will
> pickup two command line arguments [EMURL] and [EMSERVER] that will be used as
> parameters for a shortcut that I am required to put on the desktop for all
> users.
> So far, I've got that working.  
> What I would appreciate some help on is how to prevent the shortcut from
> being created if [EMURL] is not provided as an argument to MSIEXEC.  
> I have been experimenting with the User's Desktop Condition File
> Installation Property. The shortcut itself, which is under User's Desktop
> does not have a Condition property.
> I have tried [EMURL]<>""  and toggled the Transitive property but the
> shorcut is always installed.
> Please help.
>
> Thanks

Following up on Phil's comment. Shortcuts are associated with files
(they're in the same component) so you
can't have one without the other - I think he meant to say you can't
have a shortcut without the file- one can of course have the file
without the shortcut.  You could prevent the shortcut from being
installed by placing it in its own component and setting the condition
on the shortcut's component EMURL<>"", and that should work.
date: Mon, 25 Aug 2008 16:00:59 -0700 (PDT)   author:   Owen Gilmore

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us