Jim Beveridge
Posts: 32
Joined: Wed May 10, 2006 10:54 pm

Shortcut to %comspec%?

I am trying to create a shortcut that starts a command prompt with the default directory set to the application directory. Here's the relevant line from the aip file:

<ROW Shortcut="Forensic_Edition_Command_Prompt" Directory_="SHORTCUTDIR" Name="Forens~1|Forensic Edition Command Prompt" Component_="ePreserver.exe" Target="%comspec%" Description="Open ePreserver Forensic Edition Command Prompt" Hotkey="0" Icon_="comspec.exe" IconIndex="0" ShowCmd="1" WkDir="APPDIR"/>

However, the command appears to be ignored by the installer because nothing appears in the shortcut directory. Can you tell me what I'm doing wrong?

Thank you,
Jim Beveridge
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Here is how you can create that shortcut:

Switch to "Files and Folder" view and select the folder where your shortcut will be created. From the context menu choose "New Shortcut To->External File...". In the "Shortcut Target" type: [SystemFolder]cmd.exe. In the "Working Directory" type APPDIR.

Hope this helps.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
markr002
Posts: 21
Joined: Mon Dec 20, 2010 5:38 pm

Re: Shortcut to %comspec%?

I need to do this as well, but Gigi's recommendation does not work for me. The start menu shortcut is simply never created.

I'm running Advanced Installer (Enterprise Edition) 10.9 on Windows 8.1 to manage a mixed 32/64-bit installer package.

Any advice?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Shortcut to %comspec%?

Hello,

Unfortunately, starting with Windows 8.1 we are not able to pin a shortcut to Start Screen. It seems this is because Microsoft doesn't allow any programmatically customization of the Start Screen. The Windows 8.1 Start Screen can be only manually customized by the user.

You can also take a look on our Not able to pin shortcut to 'Start' tile list in Windows 8.1 forum thread which debates a similar issue.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”