Software Deployment Question

While cretaing shortcut file how to set dos path (short path) in "Start in" of the shortcut file using MSI installer (VS2005 setup project)

07/20/2015 1617 views


While creating MSI Installer by using VS2005 (setup Project), I have created shortcut of my installed application in program menu but while checking the properties of shortcut file in the "start in" absolute path is appeared.

When the application installed path (Installation Path) is very long around 240 then application cannot be opened by usingĀ  shortcut.

By setting the DOS path (short path) in "Start in" of shortcut, application can be opened correctly from shortcut file.

While creating MSI Installer, please suggest how to set DOS Path (Short path) instead of absolute path in "Start in" of the shortcut file, therefore in case of very long installation path application can be opened from shortcut file.

Thank You

1 Comment   [ + ] Show comment


  • Thanks for your response.
    can you share some example to achieve it.

Community Chosen Answer

Use SetDirectory custom action just before CreateShortcuts standard action in ExecuteImmediate sequence..
Assign a new ShortPath value to the target folder
Answered 07/27/2015 by: jagadeish
Red Belt

All Answers

Create a custom action to convert the long path to a short path in a new property and reference that property in the "Start in" field of your shortcut.
Answered 07/20/2015 by: EdT
Red Belt

  • Thanks for your response.
    Please share some example to achieve it.
I have no examples to share. You will just need to code it yourself or search on google as there are plenty of codfe examples on the internet.
Answered 07/20/2015 by: EdT
Red Belt

  • I am using VS2005 setup project for creating the installer, please suggest that how to create new property and how to reference property in "start in " field of shortcut.
    If you can suggest some link that will be more helpful.
Find the Windows installer SDK help file called MSI.CHM - you can google for it. You will find everything you need to know about MSI in there.
Answered 07/21/2015 by: EdT
Red Belt

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ