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
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
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.