Shortcut points to wrong directory - Advanced Installer Community
SubZero
Posts: 63
Joined: Mon Mar 14, 2011 10:29 am

Shortcut points to wrong directory

Hi AI-Team,
when using the option "run as administrator" for shortcuts in combination with pointing to APPDIR and x64 systems the shortcut points to the wrong directory.

I have created a testproject to show you the bug. Just install the project to the default location and the shortcut will point to a wrong path (to the x86 program files, although program is installed to program files). This bug appears at least at sbs 2008! The bug also appears in AI 10.1!

Can you confirm the bug?
Attachments
wrongshortcutExample.zip
(2.68 KiB) Downloaded 358 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Shortcut points to wrong directory

Hello,

I've tested your attached project on a Windows Server 2008 x64 machine, but I cannot reproduce the behavior. Can you reproduce the behavior on multiple clean machines? Also, can you send us a verbose log of the installation to support at advancedinstaller dot com so we can investigate it?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Shortcut points to wrong directory

Hello,

I know this is an old thread, but we need to followup with some updates. Recently after receiving a similar complaint from another user we reiterated a suite of test on our tests machine and this time we were able to replicate the issue. From our tests it seems the issue replicates only on Windows Server 2008 machines with the Active Directory service installed (promoted as domain controllers).

Here is the test case we used:
1. create a 64-bit setup package which installs a 64-bit app in Program Files
2. create a shortcut to the application file which has the "Run As Administrator" flag enabled
3. install the setup on a Windows Server 2008 Domain Controller machine

Actual Result: the installed shortcut doesn't have the run as admin flag set and it incorrectly points to the "Program Files x86" directory in his target file path field)

After debating the issue with our development team, this seems to be an Advanced Installer issue or limitation. We'll try to add a fix/improvement in a future version of Advanced Installer, thank you for bringing this to our attention. We'll notify you as soon as the fix will be out.

Until then, as a workaround, you should disable the run as admin flag of the shortcut and try to create and use your own custom action with this functionality (set run as admin flag for a shortcut).

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Shortcut points to wrong directory

Hello,

This was fixed in version 15.8 of Advanced Installer, released on March 20th, 2019.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”