PDA

View Full Version : InstallScript: creating shortcut to a folder



pfsjmiller
07-01-2011, 06:28 AM
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);

shemareddy
07-05-2011, 09:56 AM
Not related to IA 2011. You have chosen the wrong forum.