This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- InstallScript: creating shortcut to a folder
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 01, 2011
06:28 AM
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);
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);
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 05, 2011
09:56 AM
Not related to IA 2011. You have chosen the wrong forum.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)