Hello!
It is necessary to create an installer for the application, but I have encountered some difficulties. Here is a brief description: the installer should be able to install the application or run the application from the temporary folder. During installation, the Windows service will be created and the program will be registered in the list of windows programs. If the option "run the program" is selected - it is simply unpacked into a temporary directory and launched. Important: to run the installer, you do not need administrator rights.
But there are conditions, the solutions of which I did not find:
1. If user has chosen to run the program without installation, then the administrator's rights should not be required at all. (a temporary folder of windows is available to all users)
2. If the user has selected the option "install the program", then it is necessary that the installer ask for administrator rights (needed to install the windows service)
Maybe I should somehow restart the installer at the stage of choosing the installation, but already with the requirement of administrator rights? But how?
If you have examples of an installer with a choice of installing or running the program, I'll be glad to see it.
Thank you.
Advanced Installer - Enterprise version.