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

Comments

  • Thanks for your response.
    can you share some example to achieve it.
Please log in to comment

Community Chosen Answer

1
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

Please log in to comment

Answers

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.
Answered 07/20/2015 by: EdT
Red Belt

  • Thanks for your response.
    Please share some example to achieve it.
Please log in to comment
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.
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.
Please log in to comment
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.
Answered 07/21/2015 by: EdT
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity