install4j - Is it possible to change privileges during installation? -
for our installer application not necessary install administration privileges. when user decide install system program folder c:\program file\ourapp user gets dialog privileges missing , folder has choose/create. question: possible grand previliges depending on installation location during installation instead before starting?
yes, "request privileges" action can added screen. default it's in "startup" node, can delete there , add screen. can have condition expression, it's executed when necessary. action starts elevated helper process execute elevated actions.
as of install4j 6.0.4, installation location screen show error message if selected directory not writable. starting 6.0.5, can deselect "check if directory writable" property , handle writability yourself. added in 6.0.5 helper function util::isdirectorywritable helps check if available privileges allow write directory.
Comments
Post a Comment