Guest Red Ocktober Posted November 30, 2009 Share Posted November 30, 2009 i've gotta run my BlitzMAX standalone apps set with amdministrative priviledges in order for it to run properly... (win Vista of course)... i was having problems getting the lights to work right... probably due to the keys not being present or read right when parsing the loaded scene... i don't know what made me try it, but i ran the app like i have to run the ide... as administrator... all suddenly worked... go figure... added... i have to do this not only for the standalone exes i make with BlitzMAX... but i also had to set engine.exe to run under admin privileges in order to get my lua scripted examples to run correctly... ya gotta love Vista... --Mike Quote Link to comment Share on other sites More sharing options...
Josh Posted November 30, 2009 Share Posted November 30, 2009 What folder is your program located in? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Guest Red Ocktober Posted November 30, 2009 Share Posted November 30, 2009 c:/program files/blitzmax/leadwerks projects/framewerksdemo the ide is in c:/program files/blitzmax/ --Mike Quote Link to comment Share on other sites More sharing options...
Canardia Posted December 1, 2009 Share Posted December 1, 2009 If you want to run your programs without Administrator account, you can put them under c:\users\username, which should be queried using the %userprofile% environment variable. As far I know, this is the only directory where the user can write files on Vista and Windows 7. It's similar in Linux, where the user has write access only to /home/username. This is needed when you publish your game, since most people don't want to risk their computer by running as Administrator. I don't know how commercial games do it, that they can write under "C:\Program Files (x86)\", at least in the installation phase they might ask for the Administrator password, but how they can write after that, must be some trick with native Windows API calls (where they grant the user write access to the directory). Actually there is also a DOS command to do that, if I remember right, so your installer might use that if you don't want to hardcode Windows API functions in your program. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Guest Red Ocktober Posted December 1, 2009 Share Posted December 1, 2009 yes... good to know... thx Lumooja... --Mike Quote Link to comment Share on other sites More sharing options...
Josh Posted December 1, 2009 Share Posted December 1, 2009 The default BlitzMax installation folder has been changed to C:\BlitzMax because of this. So I guess the Program Files folder convention is now useless. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Mumbles Posted December 1, 2009 Share Posted December 1, 2009 since most people don't want to risk their computer by running as Administrator. That's true for a linux user, but not for your typical windows user. If people weren't running their regular accounts with admin privileges, UAC would probably never have been born. There just seems to be something in the transition of becoming a linux user that makes you realise the potential danger of running with elevated privileges. Of course, not every windows user is guilty here, but the vast majority. Quote LE Version: 2.50 (Eventually) Link to comment Share on other sites More sharing options...
Guest Red Ocktober Posted December 1, 2009 Share Posted December 1, 2009 also... copying the exe folder to /users/username didn't change anything... i still need to enable admin privileges at the new location... --Mike Quote Link to comment Share on other sites More sharing options...
VicToMeyeZR Posted December 17, 2009 Share Posted December 17, 2009 If you want to run your programs without Administrator account, you can put them under c:\users\username, which should be queried using the %userprofile% environment variable. As far I know, this is the only directory where the user can write files on Vista and Windows 7. It's similar in Linux, where the user has write access only to /home/username. This is needed when you publish your game, since most people don't want to risk their computer by running as Administrator. I don't know how commercial games do it, that they can write under "C:\Program Files (x86)\", at least in the installation phase they might ask for the Administrator password, but how they can write after that, must be some trick with native Windows API calls (where they grant the user write access to the directory). Actually there is also a DOS command to do that, if I remember right, so your installer might use that if you don't want to hardcode Windows API functions in your program. I believe this is why most games now save profile information in My Documents, actually some have done that for quite a while, but it seems more widely used now. Apps like Adobe and IonCube do this, as well as a lot of the new games I have played. Quote AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.