BPBNA Posted August 3, 2006 Share Posted August 3, 2006 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 More sharing options...
Valik Posted August 3, 2006 Share Posted August 3, 2006 You probably need to create the sub-directory first. I don't think FileCreateShortcut() will create the "HEATER Seeker" directory in the Start Menu. Link to comment Share on other sites More sharing options...
BPBNA Posted August 4, 2006 Author Share Posted August 4, 2006 That worked, thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now