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!

Norbert
Posts: 4
Joined: Thu Aug 28, 2014 8:04 am

condition to create Shortcuts in Start Menu

Hello !

I'm concerned about the creation of the start menu shortcuts from the ShortcutsDlg Dialog - it is not working properly for me.

Even if I de-select the option to create a shortcut the setup generates my predefined shortcuts at the start menu.
However the Desktop shortcut option is working fine as aspected.

I got 2 shortcuts in Files and Folders \ Start Menu and the Option to show the Ceckbox is enabled.
Shouldn't this be enough to create or not to create this shortcuts?


I also tried to condition my own CheckBox as written under "Create shortcut only if a feature is installed" from the Q&A section, but also did not go well.

Especially this part "move the shortcut into the component of the registry value you created"
confuse me.
But this is not the solution i was looking for.

Many thanks in advance
Norbert
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: condition to create Shortcuts in Start Menu

Hi Norbert,

Please keep in mint that as mentioned in the Optional Install Dialogs article, the Start Menu location, corresponds with Application Shortcut Folder from Files and Folders page. Can you move your shortcut to that folder and see if it works?
Especially this part "move the shortcut into the component of the registry value you created" confuse me.
When you create a registry entry, a component related to it is also created in the Organization page, so you need to go in the Organization page and also move the shortcut from the component where it is located to the component related to that registry entry.

In order to find the relation between a component and a registry/file you can use the "F8" keyboard button.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Norbert
Posts: 4
Joined: Thu Aug 28, 2014 8:04 am

Re: condition to create Shortcuts in Start Menu

Thanks Eusebiu,

i moved the shortcuts to the Start Menu location but again, the shortcuts are created even if i uncheck the checkbox for the option.
Just the naming of the folders in the start menu is different.

programms > productname > productname + version > shortcuts
or
programms > productname + version > shortcuts

But this doesn't even bother me at this time ;)

I will try the registry entry and Organization page way and let you know asap.

Many Thanks
Norbert
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: condition to create Shortcuts in Start Menu

Hi Norbert,

I'm not sure why you encounter this problem. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com, so we can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mcseforsale
Posts: 57
Joined: Wed Mar 27, 2013 10:53 pm

Re: condition to create Shortcuts in Start Menu

I am having the same issue. I am trying to allow the user to create different shortcuts depending on a radio button that populates a global property. One set of shortcuts points to app1.exe and the other to app2.exe. When they choose the option to point to app1.exe and deselect start menu shortcuts, a shortcut for app2.exe is created anyway.

I followed this logic (as I have before) on this page...
http://www.advancedinstaller.com/user-g ... tcuts.html

The condition(s) that I have set are APP_TOGGLE=app1 AND AI_STARTMENU_SH = 1

Please help. THis is holding up a major software release!

AJ
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: condition to create Shortcuts in Start Menu

Hello,

Please keep in mind that when the "Start Menu Programs folder" check box from our "ShortcutsDlg" dialog is checked, then the "AI_STARTMENU_SH" property is set to 1. Otherwise the "AI_STARTMENU_SH" property is not set. Therefore if you want to install a component when the "Start Menu Programs folder" check box is unchecked, then you should use the following condition:

Code: Select all

NOT AI_STARTMENU_SH
Let us know if this helped, otherwise please send us the .aip (project file) and a more detailed description of the scenario you want to implement to support at advancedinstaller dot com so we can investigate them.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mcseforsale
Posts: 57
Joined: Wed Mar 27, 2013 10:53 pm

Re: condition to create Shortcuts in Start Menu

Actually, the installer is installing one of the shortcuts no matter what. So, even if I choose app1, app2 shortcut gets installed regardless in both the start menu and the start,programs,product folder. It's very unusual.

Thanks,
AJ
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: condition to create Shortcuts in Start Menu

Hello AJ,

Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them? Also, it would be useful if you can exemplify us how you want to behave your shortcut installation?

If you cannot disclose your project file, then you can try to isolate the behavior in a sample and send it us so we can check its settings.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mcseforsale
Posts: 57
Joined: Wed Mar 27, 2013 10:53 pm

Re: condition to create Shortcuts in Start Menu

Project file and install log sent.

Thanks!
AJ

Return to “Building Installers”