Hi Rob,

Thank you very much! I very much appreciate your help. I'll go find
out how to populate POWERSHELLEXE.

Best Regards,
Jason

On 6/22/07, Rob Mensching <[EMAIL PROTECTED]> wrote:
> If you nest the Shortcut under the File element that is what the Shortcut is 
> going to point at.  If you want to point the Shortcut at something else, you 
> use the Target attribute (and you can't nest the Shortcut at that point).
>
> Ultimately, you want something like:
>
>         "[POWERSHELLEXE] -Command &quot; &amp;'[!userlistgendominoPS1]'&quot;"
>
>
> -----Original Message-----
> From: Jason J. W. Williams [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 21, 2007 10:36 PM
> To: Rob Mensching
> Cc: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Shortcut Tag & Powershell Script
>
> Hi Rob,
>
> Not necessarily, usually its installed in the path. I just need to be
> able to update the following shortcut reference to refer to powershell
> + FILE instead of just FILE:
>
> <File Id="userlistgendominoPS1" Name="ulgdom.ps1"
> LongName="userlistgen-domino.ps1"
>                                 DiskId="1"
> Source="userlistgen-domino.ps1" Vital="yes">
>                                 <Shortcut Id="startMenuULGDom"
> Directory="ProgramMenuDir" Name="ULGDom10"
>                                     LongName="Sentinel Messaging User
> List Generator for Domino 0.8"
>                                     Icon="DigiTar.ico" IconIndex="0" />
>                             </File>
>
>
> Thank you so much for your help.
>
> Best Regards,
> Jason
>
> On 6/21/07, Rob Mensching <[EMAIL PROTECTED]> wrote:
> > Shortcut/@Target?
> >
> > You'll need to find the path to powershell.exe on the machine (FileSearch?)
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason J. W. 
> > Williams
> > Sent: Thursday, June 21, 2007 6:24 PM
> > To: wix-users@lists.sourceforge.net
> > Subject: [WiX-users] Shortcut Tag & Powershell Script
> >
> > Hello,
> >
> > I'm installing a PowerShell script and would like to install a
> > shortcut for it. The problem is that the Shortcut tag defaults the
> > target of the shortcut to the filename, which in this case is an issue
> > because PowerShell isn't associated by default with .PS1 files. Is it
> > possible to modify the target of the shortcut in the tag?
> >
> > So instead of the target pointing to myscript.ps1 it would point to:
> >
> > powershell -Command "& 'myscript.ps1'"
> >
> > Any help is greatly appreciated. Thank you in advance.
> >
> > Best Regards,
> > Jason
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to