john renfrew Posted April 10, 2012 Posted April 10, 2012 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?
Jesse Barnum Posted April 10, 2012 Posted April 10, 2012 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.
john renfrew Posted April 10, 2012 Author Posted April 10, 2012 Thanks for the answer Jesse... Going to have to do a bit more reading then I think.
john renfrew Posted April 11, 2012 Author Posted April 11, 2012 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?
Recommended Posts
This topic is 4678 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now