Uninstall shortcut issue - 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!

den
Posts: 67
Joined: Mon Feb 14, 2011 1:20 pm

Uninstall shortcut issue

Hello,

I create shortcut to uninstall in my application shortcuts directory. It's properties are set as follows:
Shortcut Target: [AI_UNINSTALLER]
Arguments: /x [ProductCode]
(the rest are not relevant)
Everything works fine, but when you install new application in windows, shortcuts to executables get "advertised" - are shown with yellow background (and this background is removed after shortcut is used). My problem is that shortcut to uninstall (which is actually an executable) is shown with yellow background as well as shortcut to main executable, which is undesirable.
Can you suggest any solution to my problem? Thanks in advance.

Best regards,
Daniel.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstall shortcut issue

Hello Daniel,

In order to obtain what you want you can proceed as follows:
- Go to "Install Parameters" page and add the following property:
  • Name: DisablePin
    Value: System.AppUserModel.PreventPinning

    Name: NoHighlight
    Value: System.AppUserModel.ExcludeFromShowInNewInstall
- Go to "Table Editor" page and from context menu choose "Add Table..." option. Now select "MsiShortcutProperty" table.
- For each of your problematic shortcuts add the following rows in the "MsiShortcutProperty" table:
  • MsiShortcutProperty: MY_PROP1
    Shortcut_: My_Shortcut1
    PropertyKey: [DisablePin]
    PropVariantValue: 1

    MsiShortcutProperty: MY_PROP2
    Shortcut_: My_Shortcut2
    PropertyKey: [NoHighlight]
    PropVariantValue: 1
-Build and run your project.

Please keep in mind that in order to use our "Table Editor" feature you need at least an Enterprise edition of Advanced Installer.

Also, starting with version 9.6 of Advanced Installer we'll have a predefined support for this.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
den
Posts: 67
Joined: Mon Feb 14, 2011 1:20 pm

Re: Uninstall shortcut issue

Hello, Daniel,

Thank you for your advice, it works perfectly)
When do you plan to release version 9.6 of Advanced Installer?

Best regards,
Daniel.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstall shortcut issue

Hello Daniel,

The version 9.6 of Advanced Installer it should be available in the next few months.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”