Sign in to follow this  
Followers 0
BPBNA

More on shortcuts...

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



You probably need to create the sub-directory first. I don't think FileCreateShortcut() will create the "HEATER Seeker" directory in the Start Menu.

Share this post


Link to post
Share on other sites

That worked, thanks!

Share this post


Link to post
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
Sign in to follow this  
Followers 0