I'm creating an installer using Inno Setup. As part of the install process I'm installing Tomcat. On Windows 7 I suffer from the problem described here:
I can fix it by manually setting the 'Run as administrator' on
tomcat7w.exe (the issue and the root cause is the same for tomcat7 as well), but I don't know how to do it through Inno Setup.
I'm finding threads that explain running
some_program.exe as administrator, but here the program is started when the Tomcat service starts (e.g. on machine start-up), so I need a way to flag it using Inno Setup to 'Run as administrator' rather than actually run it.
learnAndImprovelearnAndImprove
For Hong Kong only 大部分貨品包平郵☺ 緊記:平郵有風險 風險由買家承擔 電子貨品出門絕不退換 面交地點再議. 631 Followers, 1,648 Following, 367 Posts - See Instagram photos and videos from caitlin horan (@nowait_iamcait). We found Dollie Aycock in 2 states. See Dollie's age, contact number, home address, social profiles & run a background check. Search any name with ease.
3 Answers
You can add a Registry entry in
[Registry] Section that will set run as Administrator as a default action for running this app.
Example:
RobeNRobeN
If you really want to set the 'Run as administrator' flag of the shortcut (as opposite to forcing the target application run with administrator privileges), you can use this code:
This is based on:
Tested on Unicode version of Inno Setup. But it should, even more naturally, work on Ansi version too, though you should use Unicode version anyway.
If you want to allow user to execute the program at the end of the installation using a
postinstall entry in [Run] section, you will of course need to explicitly request the elevation.
If the installer runs with Administrator privileges, you can simply add
runascurrentuser flag:
If the installer runs without Administrator privileges, set
Verb parameter to runas (for that you also need shellexec flag):
Though, make sure you have a very good reason to run your application with Administrator privileges. User applications should not need Administrator privileges. If they need it, it's usually a sign of a bad design. One common (bad) reason to want an application to run with Administrator privileges, is that the application needs to write to its installation folder.
See Application does not work when installed with Inno Setup
Martin PrikrylMartin Prikryl
Add the
runascurrentuser flag attribute to the [Run] section
Mehdi BenkiraneMehdi Benkirane
Not the answer you're looking for? Browse other questions tagged inno-setupelevated-privileges or ask your own question.Whaley Rd, Grifton NC street index![]()
Fire Incident History
Forest, timberland, woodland
Wildland, woods
Light vegetation - not crop, including grass
Cigarette lighter
1 or 2 family dwelling
Outside area, other
Light vegetation - not crop, including grass
Cigarette lighter
Open land or field
Open area - outside; included are farmland, field
Rubbish, trash, or waste
Multiple heat sources including multiple ignitions
Incidents registered in Federal Emergency Management Agency
Outbuilding or shed
1 or 2 family dwelling
ResidentsResidence for Single Family
Facts
Stories: 1
Nowait RaiserrorWho has lived here
Who has lived here
Who has lived here
Who has lived here
Facts
Stories: 1
Mortal kombat 11 pc download torrent. The developer of the fighting game, NetherRealm, announced the Mortal Kombat XL Edition. Mortal Kombat XL will be the ideal package for those who have yet to jump onto the Mortal Kombat X bandwagon.
Who has lived here
Who has lived here
Facts
Stories: 1
Who has lived hereNowait Openmp
Nowait Postgres
FactsWho has lived here
FactsWho has lived here
FactsWho has lived here
Facts
Stories: 1
Nowait HostComparison graphsLot size and building area (in sqft) on 6202-6249 Whaley Rd, Grifton NCComments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |