/build/static/layout/Breadcrumb_cap_w.png

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

Hello,

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. - programmer1983 9 years ago

Answers (4)

Posted by: jagadeish 9 years ago
Red Belt
1
Use SetDirectory custom action just before CreateShortcuts standard action in ExecuteImmediate sequence..
Assign a new ShortPath value to the target folder
Posted by: EdT 9 years ago
Red Belt
0
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.

Comments:
  • Thanks for your response.
    Please share some example to achieve it. - programmer1983 9 years ago
Posted by: EdT 9 years ago
Red Belt
0
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.

Comments:
  • 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. - programmer1983 9 years ago
Posted by: EdT 9 years ago
Red Belt
0
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.
 
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