2 Replies - 1046 Views - Last Post: 07 March 2017 - 03:47 PM

#1 wtp  Icon User is offline

  • D.I.C Regular

Reputation: 26
  • View blog
  • Posts: 319
  • Joined: 08-December 11

WIX - Create shortcut to different program

Posted 06 March 2017 - 03:19 PM

I want to create a shortcut to a program that WIX isn't building. I want to be able to create a shortcut to a different program that's at C:/someprogram/some.exe. I've created the shortcut by using C#, but when the program uninstalls the shortcut remains. I need the shortcut to be removed when the program is uninstalled. That's why I want to use WIX. I don't have the source code to the program that I want to create the shortcut to, so I need to create the shortcut in my own program.

Is This A Good Question/Topic? 0
  • +

Replies To: WIX - Create shortcut to different program

#2 wtp  Icon User is offline

  • D.I.C Regular

Reputation: 26
  • View blog
  • Posts: 319
  • Joined: 08-December 11

Re: WIX - Create shortcut to different program

Posted 06 March 2017 - 05:18 PM

Maybe I could just use wix to delete the shortcuts, that my program created, on uninstall. Then I could use the code below if I can figure out how to navigate to the Public Desktop directory instead of the CommonAppDataFolder directory. I think the allusers attribute needs to be used somewhere.

<Directory Id="CommonAppDataFolder" Name="CommonAppDataFolder">
  <Directory Id="MyAppFolder" Name="My">
    <Component Id="MyAppFolder" Guid="*">
      <CreateFolder />
      <RemoveFile Id="PurgeAppFolder" Name="*.*" On="uninstall" />
    </Component>
  </Directory>
</Directory>

http://stackoverflow...ninstalling-wix
Was This Post Helpful? 0
  • +
  • -

#3 wtp  Icon User is offline

  • D.I.C Regular

Reputation: 26
  • View blog
  • Posts: 319
  • Joined: 08-December 11

Re: WIX - Create shortcut to different program

Posted 07 March 2017 - 03:47 PM

nvm just going to tell them to copy the shortcuts

This post has been edited by wtp: 07 March 2017 - 07:11 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1