cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
pfsjmiller
Level 3

InstallScript: creating shortcut to a folder

I want to create a shortcut to a folder that gets installed. I've searched and done what was suggested but still no shortcut.
I have a directory named "Reports" in TARGETDIR.
I want to create a shortcut to "Reports" in a folder named "MyApp" on the desktop.
This is what I tried. It creates a shortcut, but the shortcut is a file type shortcut and not a folder shortcut.
szFolder = TARGETDIR ^ "Reports";

LongPathToQuote(szFolder,TRUE);

AddFolderIcon(
FOLDER_DESKTOP ^ "MyApp",
"Reports Shortcut",
szFolder,
"",
"",
0,
"",
NULL);
Labels (1)
0 Kudos
1 Reply
shemareddy
Level 4

Not related to IA 2011. You have chosen the wrong forum.
0 Kudos