C
C
CryptoPython2018-10-02 22:14:05
C++ / C#
CryptoPython, 2018-10-02 22:14:05

How to make it so that after building the program through innosetup it does not give any errors like "you do not have rights to open such and such a file"?

In general, I assemble the program through innosetup, after assembling I run the program, everything opens up normally, but when the program tries to use the dock file, it writes like there is no access, and if you make access for everyone in the properties for the folder, then everything is fine, but I would like this it was automatic. The essence of the question is this: how to give all access rights to the installed program?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Arxont, 2018-10-03
@KryptoPython

The problem is that rights can of course be given, but the rules of good form are not to write from under limited accounts to system folders.
Add in your program so that it copies the modified files to the temp folder or somewhere in the profile (in Roaming, for example) and works from there.
Well, to give rights - add app.manifest and change requestedExecutionLevel there to
but then every time UAC will swear and the opportunity to work with the program from under "limited" users will be lost.
PS: In Inno, in the Files section, there is a Permissions parameter, perhaps it will also help you. But then again - IMHO it's better not to give such rights.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question