I have tried creating a shortcut to a folder instead of a file with the Create Shortcut command but it does not seem to work. This is how my shortcut looks like right now:
~InstallAware Clipboard Data~
~Create Shortcut~
~{854C7120-62AB-4285-9198-35BE5CE6A594}~
~$ADMINDIR$\|FALSE~
~Client Installation Files~
~$SHORTCUTFOLDER$|FALSE~
~Folder with installation files for PAS administration~
~~
~$ADMINDIR$\|FALSE~
~$SYSTEM32$\imageres.dll|FALSE~
~6|~
~0|~
The shortcut is created and looks fine in the startmenu, but when I click on it i get the standard windows dialog that lets me choose which program I want to use to open the "file" with, which of course doesn't work since it is a folder and not a file.
When I look at the properties of the shortcut the type is "File" and not "Folder". Is there a way to set the type to "Folder"?
Thanks for the reply, but is that the final answer? From what I understand Embarcadero use InstallAware to install Delphi (which I think you are familiar with since InstallAware was made using Delphi too?) and they manage to create a shortcut to a folder with sample projects on the start menu. So is there really not some other way you can use to create that kind of shortcut, like a DLL call or something? Is there no one else who has had this need before?
honestly, I don't know how Embarcadero released that specific sample. They probably used a custom DLL to manage such shortcut.
This is of course possible ...InstallAware is not a closed box.
As I said previously, the "Create Shortcut" command (which is a Windows Installer command) can be only used to create a shortcut to a file.
Sometimes I think I get things to work, because I'm not smart enough to know they shouldn't, but I've used this type of thing in multiple installers and never had an issue...