DanCooperstock
10-16-2007, 02:07 PM
I am running the following statement to create a shortcut:
Shell.CreateShortcut(_DesktopFolder, "DONATION", SessionVar.Expand("%AppFolder%\\RunDonation.exe"),
"", SessionVar.Expand("%AppFolder%"), SessionVar.Expand("%AppFolder%\\donation.exe"), 0, SW_SHOWNORMAL, nil,
"My Comment")
The reason I'm doing this is that RunDonation.exe, the Target, is a small runner app that I am code signing, which runs the real app donation.exe. (For technical reasons, I can't code sign donation.exe.) But the icon is in donation.exe.
What happens when I run this is that the "DONATION" shortcut is created, but the target fo that shortcut is donation.exe, not RunDonation.exe.
This seems like a bug. Any way to work around it?
Thanks.
Shell.CreateShortcut(_DesktopFolder, "DONATION", SessionVar.Expand("%AppFolder%\\RunDonation.exe"),
"", SessionVar.Expand("%AppFolder%"), SessionVar.Expand("%AppFolder%\\donation.exe"), 0, SW_SHOWNORMAL, nil,
"My Comment")
The reason I'm doing this is that RunDonation.exe, the Target, is a small runner app that I am code signing, which runs the real app donation.exe. (For technical reasons, I can't code sign donation.exe.) But the icon is in donation.exe.
What happens when I run this is that the "DONATION" shortcut is created, but the target fo that shortcut is donation.exe, not RunDonation.exe.
This seems like a bug. Any way to work around it?
Thanks.