smljoju
Posts: 39
Joined: Fri Jun 27, 2014 1:36 pm

Run as Administrator shortcut checkbox not working

As mentioned in title, even if I check "Run as Administrator", the created shortcut does not run as admin, I have verified this by checking the advanced option of the shortcut as mentioned in viewtopic.php?p=71930#p71930
Liviu
Posts: 1042
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Run as Administrator shortcut checkbox not working

Hello,

I am not quite able to replicate the behavior you described.

I've tested this by creating a desktop shortcut with the "Run as administrator" option checked. When I launch the shortcut it asks for administrator privileges.

In order for me to further investigate this, could you please create a sample project that reproduces this and forward it to me together with a test case which I can follow in order to reproduce the problem?

You can attach the sample either here or you can send it by e-mail at support at advancedinstaller dot com.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
smljoju
Posts: 39
Joined: Fri Jun 27, 2014 1:36 pm

Re: Run as Administrator shortcut checkbox not working

thanks for the quick reply

after further checking it seems that it was because I tried to manually edit AIP file and remove lines related to

Code: Select all

<ROW Name="ShortcutFlags.dll" SourcePath="&lt;AI_CUSTACTS&gt;ShortcutFlags.dll"/>
, it seems that ShortcutFlags is used to set flags related to running as admin, so it might have messed up because of that. I just restored it then everything seems to go well.
Liviu
Posts: 1042
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Run as Administrator shortcut checkbox not working

You're welcome!
after further checking it seems that it was because I tried to manually edit AIP file and remove lines related to
Please note that we do not recommend editing manually the .aip (for example in a text editor like notepad). This can corrupt your project and it may not be recoverable.

If you have any other questions, please don’t hesitate to contact us.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”