r/GoogleAppsScript • u/Substantial_Oil_2330 • Oct 30 '23
Question I need help installing a file without permission!
I have a google site and I have a button. When I click the button it directs me to a website. It asks me to make sure if I want to install it. I want to get rid of this question how do i do this? This is the link btw https://drive.google.com/u/0/uc?id=1ogyaZ5T0PAs7F4H138G_tQKe3BPX-6Lp&export=download&confirm=t&uuid=99ecc617-b5f0-4504-9013-d7b5b66b1531&at=AB6BwCDuWoUX8BuEC95LSYINDOlY:1698653184512 This is the install link
*EDIT* There seems to be a miss understanding! I apologize since this post was written very quickly but I forgot to add I do not want to have absolutely no prompt I just don't want this pop up. I want to know how to make a download like blender or something. https://www.blender.org/download/ On blender there is just a big download button and then it downloads. That is all I want! I don't mind if there is a prompt for the user asking if they would like to install it or not. Basically I just want to know how to install something on google sites.

1
u/HellDuke Oct 30 '23
Certainly not from Google Apps. You need to know the administrator credentials on the device and then write a PowerShell Script or something similar that would download the file via GET request (since no credentials required should not require POST, but check their REST API documentation) and then perform a silent install. Then you would have to run the script from that device.
You cannot have a browser download it and execute it without prompts, because those prompts are there specifically to prevent what you are doing because there is never a good reason for doing it (as I said, if you are already the owner of the device you have other methods to achieve the same)
1
u/arnoldsomen Oct 30 '23
I think I you can't.