Did you ever figure this out? If not, does this work for you?

<DirectoryRef Id="MyShortcutsDir">
         <Component Id="CMP_RegistryKey"
Guid="1EA6DA30-C06D-4698-B62B-D4F22C53DD0D">
            <Shortcut Id="RunPowershell"
                          Name="Run PowerShell Script"
                          Description="Runs a PowerShell script"
                    
Target="[System64Folder]windowspowershell\v1.0\powershell.exe"
                          Arguments="-NoExit &amp; 'C:\test\test.ps1'" />

            <RemoveFolder Id="RemoveShortsDir" On="uninstall" />

            <RegistryValue Root="HKCU"
Key="Software\Microsoft\AwesomeSoftware" Name="installed" Type="integer"
Value="1" KeyPath="yes" />
         </Component>
      </DirectoryRef>

-----
Learn WiX with the book: 
https://www.packtpub.com/wix-a-developers-guide-to-windows-installer-xml/book
WiX: A Developer's Guide to Windows Installer XML 
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Creating-shortcut-to-execute-script-tp5649581p5683069.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to