Unwanted start menu shortcut - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

rconn
Posts: 70
Joined: Sat Mar 03, 2007 5:38 pm

Unwanted start menu shortcut

Using AI 6.2 (Enterprise):

I used the wizard to create all four shortcuts :

application's group in the Programs menu
Desktop
Quick launch toolbar
Start menu

I added ShortcutsDlg, checked the option to show all of them, and selected the "checked by default" for the Desktop and Start Menu.

But if I run the resulting installer, and uncheck everything in the ShorcutsDlg dialog, I still get the Start Menu shortcut (though not the others).

Rex Conn
JP Software
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Unwanted start menu shortcut

Hi,

This is a known bug in Advanced Installer and it will be fixed in a future version.
Until then, you can use a custom action to remove this folder. Here is what I used in my tests:

Code: Select all

    Function removeDir()
       Dim pathToFolder, smallPath
       Set objFS = CreateObject("Scripting.FileSystemObject")
       pathToFolder = Session.Property("SHORTCUTDIR")   
       smallPath=Left(pathToFolder,Len(pathToFolder)-1)     
       If (objFS.FolderExists(smallPath)) then
          objFS.DeleteFolder smallPath, true     
       End if
    End Function
You can write this into a .VBS file and add it as an attached custom action under "InstallExecuteSequence" -> "InstallFinalize". In the "Function Name" field you can set removeDir and you should condition the custom action with:

Code: Select all

(NOT Installed) AND NOT AI_STARTMENU_SH
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rconn
Posts: 70
Joined: Sat Mar 03, 2007 5:38 pm

Re: Unwanted start menu shortcut

Hi Cosmin:

Thanks for the help.

One question though -- you refer to "InstallExecuteSequence" -> "InstallFinalize", but there isn't an InstallFinalize in my AI 6.2, just Uninstall, Rollback, Install, and Commit.

Do you mean "Commit"?

Rex Conn
JP Software
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Unwanted start menu shortcut

Hi,

Please note that "InstallFinalize" is a standard action like "Uninstall", "Rollback", "Install", and "Commit". You can show it in the Custom Actions page by using the Show Standard Action button on the toolbar.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rconn
Posts: 70
Joined: Sat Mar 03, 2007 5:38 pm

Re: Unwanted start menu shortcut

Hi Cosmin:

OK, thanks, I've added it to the project.

Will this be fixed in the 6.3 release?

Rex Conn
JP Software
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Unwanted start menu shortcut

Hi Rex,

I'm afraid that this bug has not been fixed in the 6.3 version of Advanced Installer (it has some ramifications which make the solution a little complex). However, it will most likely be fixed in the 6.4 version.
Note that the 6.3 version is scheduled for release this week.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”