pcunite

New Shorcut to -> "Folder"

New Shorcut to -> "Folder"

I need to make a shortcut to the install folder itself. This way the customer
can browse a directory there.
I don't see this option.

Thanks.
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

You're right, it doesn't exist yet. Will add it in a future version.

In the meantime, you can create one by changing the target of an existing Command shortcut to a Directory key, which you can find out opening the AIP file in a text editor and looking for the Directory field of a Row in the MsiDirsComponent.

Hope that helps,
Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
justin

I'm trying to do a similar thing. I would like to link to a folder installed within the base directory.

Here are the current parts from my .aip:

<ROW Directory="New_Folder_1_DIR" Directory_Parent="TARGETDIR" DefaultDir="History"/>

<ROW Shortcut="test" Directory_="New_Folder_DIR" Name="test" Component_="readme.txt" Target="[#readme.txt]" Arguments="" Description="" Hotkey="0" Icon_="" IconIndex="0" ShowCmd="1" WkDir="TARGETDIR"/>

I tried changing Target="New_Folder_1_DIR" and when I try to save the new .aip file in the advanced installer, I get an Error: Exception - Access Violation.

Could someone show me the correct format to make a link to a directory?
dorel
Posts: 25
Joined: Mon Oct 18, 2004 8:13 am

Hi,
Here are the steps to create a shortcut to a folder:
1.Create a new "Shortcut to External File"
2.Clear the Arguments field.
3.Set the "Shortcut Target" field to a string of form [DirectoryKey].
"DirectoryKey" is the primary key of the row of the shortcut target folder.
An easy way to find it without opening the aip file is the following:
a)Press the "Folder" button from the Arguments group box and select the folder you want to create the shortcut to and press OK.
b)Cut the text from the Arguments field and paste it in the "Shortcut Target" field.
4.Set the "Shortcut Folder" field to the folder where the shortcut is to be created.
Dorel Pislan
Advanced Installer Team
http://www.advancedinstaller.com
justin

Thanks for those instructions.

I tried to find the directory key like you specified in step 3, but it gave me the wrong key [TARGETDIR/Folder].

I used the one I found in the aip file [New_Folder_1_DIR] and it works fine.

Thanks.

Return to “Feature Requests”