0

I want to use python to create an application for installing multiple programs. Most of witch have unique command line switches to make them install silently. I only want UAC to pop up once.

A year ago I created one but it is not easily customization. Meaning if I want to add a new program to the install list I have to open the code and added it manually.

The main thing I need answered is how to have UAC prompt once.

jpaugh
  • 6,634
  • 4
  • 38
  • 90
  • "if I want to add a new program to the install list I have to open the code..." So, you already have a script that does this? Why not read in the list of executables to install from an external file, then? – jpaugh Feb 05 '18 at 16:11
  • I am looking for a gui that will allow me to easily add them. However most importantly I want to get away form building a batch file to run the installs and just use os.system(). However if I use os.system() I end up with each application prompting UAC request. – John Shiveley Feb 05 '18 at 16:20
  • Not entirely certain, but if you have a Py script to install the executables, and you run it with elevated privileges, you might not see the dialog more than once. I asked a related question a while back, and the [accepted answer](https://stackoverflow.com/a/5969764/712526) may help you. – jpaugh Feb 05 '18 at 16:24
  • (Note that I never tried it, as I had "moved on" by the time it was posted.) – jpaugh Feb 05 '18 at 16:25
  • ah yes I read this one. it is similar to how my current program works. I use pyinstaller to create stand alone applications. The force UAC switch has never worked properly for me. – John Shiveley Feb 05 '18 at 16:32
  • You would do this by provoking elevation for your program that wants to install other things. Once it elevates, you can install the other programs without the prompt (seeing as you are already elevated). – Bill_Stewart Feb 09 '18 at 17:32

0 Answers0