April 10, 201213 yr Just doing some testing of FM12 and looking to make some improvements too (like a good boy should) Is it possible to run the Scriptmaster JVM or any functions 'elevated' or AsAdministrator on Windows 7? Depending on your UAC settings the nice man at Microsoft has decided that adding fonts requires permission (!!) and I would like to programatically add any fonts I need for a solution along with the jdbc sql driver into the Java folder. Getting someone to turn it off, run an FM install file, turn it back on and restart is hardly an option worth it, so just wondering?
April 10, 201213 yr It would require the entire FileMaker application to run as an 'elevated' process, because ScriptMaster runs within that process. We do this for our installers - we distribute a Windows Installer.exe that is set to run with elevated permissions, and it then launches our Java installer.
April 10, 201213 yr Author Thanks for the answer Jesse... Going to have to do a bit more reading then I think.
April 11, 201213 yr Author I looked at Elevate as a way of getting round things, which works well from the command line http://www.wintellect.com/cs/blogs/jrobbins/archive/2007/03/27/elevate-a-process-at-the-command-line-in-vista.aspx I created a batch file on the fly saved to the temp directory to XCOPY the files I want into protected directories. So then went to run this batch from Run Shell Script. In FM11 (which is running in Compatibility Mode) it works fine - its a Win7 64bit machine. In FM12 it gives access denied. It will run the elevated command "e:elevate x.bat", which asks for user to OK the programme Is there a simple way to get round this at all, and on the fly?
Create an account or sign in to comment