Behavior of "Desktop" checkbox on the "ShortcutsDlg" - Advanced Installer Community
kjullion
Posts: 176
Joined: Mon Nov 11, 2013 9:02 pm

Behavior of "Desktop" checkbox on the "ShortcutsDlg"

Hi,
I have followed these steps to try to make the "Desktop" checkbox on the "ShortcutsDlg" behave such that if the user turns it "off" then the icon should not be placed on the Desktop and if the user turns it "on" then the shortcut should be placed on the Desktop:

- go to "Files and Folders" page and under "Desktop" and "Application Shortcut Folder" folder create a shortcut to my EXE
- go to "Dialogs" page and add the "ShortcutsDlg" dialog

What happens is that not matter the "Desktop" checkbox's value set by the user at install "run-time" the installer is still adding the icon to the Desktop every time.

Thanks.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Behavior of "Desktop" checkbox on the "ShortcutsDlg"

Hi Kevin,

I'm not sure why you encountered this behavior. I've tested your scenario but I cannot replicate it.

In order to have a better view about this, can you please send us the .AIP(project file) to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.
Also, can you please tell us if you can replicate the behavior in a new sample?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kjullion
Posts: 176
Joined: Mon Nov 11, 2013 9:02 pm

Re: Behavior of "Desktop" checkbox on the "ShortcutsDlg"

Hi Dan,
I tried to repro this in small sample project, but in that sample project it is not a problem. I will attach that small sample project along with my project in an email, so maybe that will help to quickly isolate the significant differences that might explain this problem I'm having.

Thanks.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Behavior of "Desktop" checkbox on the "ShortcutsDlg"

Hi Kevin,

I tested your .aip project file, and I noticed that you have set the [DesktopFolder] property for the Application Shortcut Folder field from the Install Parameters page. That means the Application Shortcut Folder and Desktop folder that are available in the Files and Folders page, have the same path, so your shortcut is created twice to the same location.

The ShortcutsDlg has four options available for installing shortcuts:
  1. Desktop location, corresponds with Desktop folder from Files and Folders Page.
    Start Menu location, corresponds with Application Shortcut Folder from Files and Folders Page.
    StartUp Folder location, corresponds with Start Menu\Startup folder from Files and Folders Page.
    Quick Launch location, corresponds with Application Data\Microsoft\Internet Explorer\Quick Launch folder from Files and Folders Page.
In order to resolve this issue you can follow the steps below:
  • 1. You can change the value of the Application Shortcut Folder field from the Install Parameters to something like [ProgramMenuFolder][ProductName].
    2. Also, you can remove the shortcut from the StartMenu -> Programs -> [|PM_ManufacturerShortName] folder since the Application Shortcut Folder already points to the related location.
Please let us know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kjullion
Posts: 176
Joined: Mon Nov 11, 2013 9:02 pm

Re: Behavior of "Desktop" checkbox on the "ShortcutsDlg"

Thank you for the detailed explanation...that seems to have solved the issue I was having.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Behavior of "Desktop" checkbox on the "ShortcutsDlg"

You're welcome Kevin,

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”