Jump to content

More on shortcuts...


 Share

Recommended Posts

I have an installer script that installs a peice of software I wrote for my company. When it runs, it puts a shortcut on the desktop with no problem but when I try to put one in the start menu it doesnt work. Heres my code.

FileCreateShortcut(@ProgramFilesDir & "\HEAT Seeker\HEATSeeker.exe", @DesktopDir & "\HEAT Seeker.lnk")
    FileCreateShortcut(@ProgramFilesDir & "\HEAT Seeker\HEATSeeker.exe", @StartMenuCommonDir & "\Programs\HEAT Seeker\HEAT Seeker.lnk")
    FileCreateShortcut(@ProgramFilesDir & "\HEAT Seeker\uninstall.exe", @StartMenuCommonDir & "\Programs\HEAT Seeker\Uninstall.lnk")

I cant see any syntax errors and the first FileCreateShortcut(the working one) looks the same as the bottom two(not working). Am I doing something wrong? I tried using @StartMenuDir and @StartMenuCommonDir.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...