Hi, I'm making an installer program in MMF2 and I was wondering if anybody knew how to make shortcuts to programs. I'm trying to make it so the user can choose to have a desktop icon and a start menu icon created for them.
Printable View
Hi, I'm making an installer program in MMF2 and I was wondering if anybody knew how to make shortcuts to programs. I'm trying to make it so the user can choose to have a desktop icon and a start menu icon created for them.
In the installer settings go to the file tab and then click on the file you want to make the shortcut to. Then go the shortcut tab. Then put the name of the shortcut in the "Desktop Shortcut Name" box and then you can add command line options in the next box (if you know how). Then you can choose an icon for the shortcut in the last box.
No no, I'm making the installer itself in MMF2. I wanted it to have to feel of the game and possibly have music.
oh I'm sorry I misinterpreted
Does anybody know how to make MMF2 create shortcuts to files?
MMF2 has no option to do this I believe, but MMF1.5 had an extension for it, the Shortcut object.
My first solution for you is to create a simple application in MMF1.5 with the Shortcut object to be able to create shortcuts and Global Function object to receive the shortcut information from your MMF2 application. Make this application invisible at start and run it from your MMF2 application. From within your MMF2 application using Global Function you can send a string with all the information the Shortcut object needs to create a shortcut. When the shortcuts have been created close the MMF1.5 application and you will have your shortcuts!
But I have an alternative for you:
Download from http://www.optimumx.com/download/ the "shortcut.exe" file. From within MMF2 using the File Object run "shortcut.exe" with the command line as discribed at http://www.vista64.net/forums/powershell/27434-creating-shortcut-lnk-url-files.html.
See http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=39158&page=1#Po st39158 for an example using MMF1.5
Dang, well... Hmmm... Oh wait, when I use the 'include external files' feature, would that keep the mmf1.5 file hidden (and not external)?