FrancescoT wrote:for what I see your Create Shortcut statement is not correct.
I suggest you to have a look at the "Shortcuts sample" from; viewtopic.php?f=2&t=6772
Looking at the example the only differences that I can see are that:
1. I'm not trying to Run as Administrator
2. I am manually specifying the location in which I would like the shortcut placed
This should work, no?
I'm not a developer, I just want to install things...
1. Shortcut to File - which I can confirm is correct, I can launch the application using the value in the Run dialog box.
2. Link Name - this is just a text value, so should not have any impact at all?
3. Link Location - This is set to "C:\Users\Public\Desktop" - which is for all users.
Windows Size set to Normal.
Everything else is unchecked and/or empty.
Any thoughts?
I'm not a developer, I just want to install things...
for sure there is an error somewhere with the approach you used...however, without having your exact code it's quite difficult to say where this could be.
As I said previously, I suggest you to replicate in your code how the shortcut gets created by the sample. Of course, you don't need to specify any "Run as Administrator" option.