Page 1 of 1

Run as administrator IA 17

Posted: Fri Aug 08, 2014 4:18 am
by Tim Palmer
Using IA 17 build 8.4.13.

I have selected "Application Requirements" to have:
- Administrator privledges
- Vista User Account Control Elevation

I have selected my Shortcuts to have:
- "Run as administrator"

However, my shortcuts do not request administrator privileges.

What am I missing?
Where should I be looking for updates to IA 17?

I have searched the forums for similar articles, but I end up at an article for older versions of IA with the same problem and a link to a patch that is no longer there.

Re: Run as administrator IA 17

Posted: Fri Aug 08, 2014 11:16 am
by FrancescoT
Dear Tim,

IA 17 is not anymore available with our server and even in the case you will be able to download the latest version that was released (17.06), you will be not able to activate it. Each InstallAware version (including updates) requires a specific personal license file to activate the product.

Anyway, I don't recall of any IA 17 fix released for this specific issue.

A question, does it happen with any kind of shortcut where you try to set "Run as administrator" flag?

Regards

Re: Run as administrator IA 17

Posted: Fri Aug 29, 2014 4:05 am
by Tim Palmer
Sorry for the delayed reply.

It is happening when I make a shortcut to an exe file. I have also tested it with a bat file and it is still not setting the run as admin flag on the shortcut.

For clarification, I am looking at the Properties > Shortcut > Advanced... > "Run as administrator" flag on the shortcut once installed. I am also checking the compatibility settings flag just in case. Neither are being set, nor is the user being prompt by UAC when using the shortcut.

Below is a part of my MSI code, where you can see that the GUI has entered the command to make the shortcut for me:

Code: Select all

  [DEFINE REGION: Perform First Time or Maintenance Installation]
  Comment: Install/Re-Install product
  [OFFLINE CONTENT]
  Create Shortcut $SHORTCUTFOLDER$\MyProduct My App to $TARGETDIR$\MyProduct\MyApp.exe, run as administrator
  Create Shortcut $DESKTOPDIR$\MyProduct My App to $TARGETDIR$\MyProduct\MyApp.exe, run as administrator
  Install Files F:\SVN\MyApp\bin\x64\Release\MyApp.exe to $TARGETDIR$\MyProduct

Re: Run as administrator IA 17

Posted: Fri Aug 29, 2014 10:13 am
by FrancescoT
Dear Tim,

you missed to aswer my question.

Anyway, does it happen with any kind of shortcut (es. DESKTOP, APPLICATION START MENU ...) where you try to set "Run as administrator" flag?

Regards

Re: Run as administrator IA 17

Posted: Fri Aug 29, 2014 10:32 am
by Tim Palmer
Sorry, I thought you were talking about the target rather than the location of the shortcut.

I have just checked and it is working in the start menu. It is just my shortcuts on the desktop that are not running as administrator.

Re: Run as administrator IA 17

Posted: Mon Sep 01, 2014 8:52 am
by FrancescoT
Dear Tim,

unfortunately, I have to confirm what you are reporting.

I'll log a note about the issue to our dev team.

As workaround, you can solve the problem with creating a copy of the start menu shortcut into the target desktop shortcut folder (using the Copy Local Files command).

To proceed in this way, please add the following code in your main script file and just after Apply Install statement execution;

Code: Select all

if Variable SUCCESS Equals COMPLETE
Set Variable NATIVE_ENGINE to TRUE
Delete Files $DESKTOPDIR$\<ShortcutName>.ink (when installing)
Copy Local Files $SHORTCUTFOLDER$\<ShortcutName>.ink to $DESKTOPDIR$\<ShortcutName>.ink
Set Variable NATIVE_ENGINE to FALSE
end


Hope this helps you.

Regards