View Single Post
Old 28th August 2014, 12:04   #1
Junior Member
Join Date: Aug 2014
Posts: 1
Admin authorization

Dear support,

we are using NSIS Installer 3.0b0 to install on a WIN8 (8.0 and 8.1) our application written in QT5 and a SQLite Database file.

The Installer is planned to install all the files in the folder
"C:\Program Files (x86)\Label\FarmManager NETWORK."
Installer is set with Administrator privileges (RequestExecutionLevel admin).

Our problem is that the first time the application is launched, the Applicationdatas folder (the one containing the DB and the Application Preferences) located in
"C:\Program Files (x86) \Label\FarmManager NETWORK",
is automatically copied by the OS in
"C:\Users\LABEL\AppData\Local\VirtualStore\Program Files (x86)\Label\FarmManager NETWORK"
(the AppData folder is a hidden folder type) and by this time the application will use always this last folder, ignoring the one installed with the Installer which is also present in the application folder.
To us this thing we created several problems, even though we read that it is a way of functioning of WIN8 in order to protect the cancellation / change files accidentally.

We have seen that if the executable has the box "Run this program as administrator" checked, the OS no longer creates a copy of the folder Applicationdatas and everything works properly.

We have two questions please:
It is possible to add commands to the installer to enable this option (i.e. to make the executable working with the privileges of administrator) during installation?
It is possible to add a shortcut to the taskbar?

Thanks a lot.
Virginio is offline   Reply With Quote