Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2009
    Posts
    3

    Creating Shortcuts

    how do i create a shortcut folder for the %ProductName% that will be placed on the users desktop and the Start > Program Files?

    In my project (Archive Window) I have a list of files but not a list of folders that are installed. I ran a test installation and the correct folders have been placed in the Program Files as seen in windows explorer. I understand how to create shortcuts to the specific files but I really just need to be able to create shortcuts to the folders not files. please help!

    I have referenced the users guide and help files but just cant seem to make sense of it!

    Thank you in advance for your help.

  2. #2
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    Hello,

    to create a shortcut on the desktop to the folder where your application was installed, you may use an action like this in the On Post Install event:

    Code:
    Shell.CreateShortcut(_DesktopFolder, SessionVar.Expand("%ProductName%"), SessionVar.Expand("%AppFolder%"), "", "", "", nil, nil, nil, "");
    Ulrich

  3. #3
    Join Date
    Jun 2009
    Posts
    3

    Shortcut in Start > Program Files

    Thank you!

    What about getting "shortcut folders" into the Start > Program Files > %Product Name% > ADD SHORTCUT FOLDERS HERE

    Thanks in advance!

    OSSS

  4. #4
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    You would do this in a similar way as before, for example:
    Code:
    Shell.CreateShortcut(SessionVar.Expand("%StartProgramsFolder%\\%ProductName%"), "Folder description", SessionVar.Expand("%AppFolder%"), "", "", "", nil, nil, nil, "");
    Ulrich

  5. #5
    Join Date
    Jun 2009
    Posts
    3

    shortcut folders after uninstall

    thanks got it working!

    however after we uninstall, the folders stay inplace (files are gone but not folders)....is there a way around that....something to add to the code maybe?

  6. #6
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    Hello,

    it should be no surprise that, if you use Lua actions to create shortcuts, you will need Lua actions to remove them as well. A look into the help file will reveal that you can use Shell.DeleteShortcut() to remove shortcuts that you created manually. You have to include these actions in the uninstaller, for example in the On Post Uninstall event.

    Ulrich
    Last edited by Ulrich; 07-06-2009 at 01:20 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts