Jump to content
Sign in to follow this  
BPBNA

More on shortcuts...

Recommended Posts

BPBNA

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
Valik

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.