Hello,
I’m experiencing an issue with a program I set up. I have set the setup options to "Always Elevate" and also checked the "Administrator Privileges" feature. While there are no issues running the program after installation, when I try to use the shortcut(Also I checked the all shortcuts run as administrator), I receive a warning saying "UNABLE TO WRITE C:\PROGRAM DATA APP.INI".
The program is able to create the ini file in Program Data after installation, but it cannot do so when launched from the shortcut. The problem is resolved when I run the shortcut as an administrator. How can I configure this through the setup?
Run Program and Shortcuts as administrator
Re: Run Program and Shortcuts as administrator
This sounds like an issue with your product running originally with elevated rights, creating files using those higher privileges; and then being invoked with non-elevated rights, finally resulting in an inability to update the files it had created elevated.
There's a couple ways you can work around this issue without having to modify the code of your product:
1. Use the Run Program As command with a de-elevation request, so your product never launches elevated to begin with:
2. Use the Create Shortcut command with an elevation parameter, so your product always launches elevated from its shortcut:
Hoping one of these work out for you!
There's a couple ways you can work around this issue without having to modify the code of your product:
1. Use the Run Program As command with a de-elevation request, so your product never launches elevated to begin with:
2. Use the Create Shortcut command with an elevation parameter, so your product always launches elevated from its shortcut:
Hoping one of these work out for you!
John Gaver
InstallAware Skunkworks
InstallAware Multi Platform - Liberating DEB/RPM/PKG/MSI(X) into universal native setups!
Get your free copy today - https://www.installaware.com/installaware-multi-platform.htm
InstallAware Skunkworks
InstallAware Multi Platform - Liberating DEB/RPM/PKG/MSI(X) into universal native setups!
Get your free copy today - https://www.installaware.com/installaware-multi-platform.htm
Who is online
Users browsing this forum: No registered users and 38 guests