1
votes

I'm generating a .msi for my program using a Setup project in Visual Studio. This is working fine and creates a desktop shortcut for the program which is great.

Now, I want to be able to run the program using a keyboard shortcut. To do this manually I can right click the shortcut > Properties and change the Keyboard Shortcut property.

However, is there any way I can get my .msi to create the shortcut with the keyboard shortcut already set up?

I've spent some time googling and have found some mentions of the MsiShortcutProperty table but couldn't find anything at all on how to actually use this with my Setup project in Visual Studio.

Any help on this would be greatly appreciated.

Cheers.

1
Setup Projects don't support the HotKey column of the shortcut table. You might want to try WiX wixtoolset.org/documentation/manual/v3/xsd/wix/shortcut.html - Peter Ritchie

1 Answers

0
votes

You don't need the MsiShortProperty table - you'd need to edit your MSI file (manually with Orca or as a post-build step) to set the Hotkey value for your shortcut:

https://msdn.microsoft.com/en-us/library/aa371847(v=vs.85).aspx

But as Peter R says, if you keep finding needing features that VS setups don't supply then find another tool that does.