|
Hi Buddy,
Thanks for the input. This particular solution won't work in my case since the Administrator user is disabled by default in Vista. Run as Administrator is a Vista-specific issue that is designed to protect the user...from themselves! It works even though Administrator is disabled...only Windows could have the rights from a disabled super-user be accessible by a checkbox!
Thanks again,
Ted
Ted Lienhard CNE NCT
Golden Valley Consulting >>> Walker, Buddy<[email protected]> 4/30/2009 7:42 AM >>> Ted You might what to try creating a startup batch file, this would be the batch file you launch from R:Base which in turn calls your custom batch file. R>LAUNCH StartupBatch.BAT ****************Start up Startup batch file********* RUNAS /noprofile /user:mymachine\administrator custom.bat *****************End of Startup batch file********* The user will prompted for a administrator password. You can get more information on the RUNAS by type runas /? at the command prompt. Buddy From: [email protected] [mailto:[email protected]] On Behalf Of Ted Lienhard Hi Razzak, I am using a LAUNCH command to run a batch file which is dynamically created in an application. The batch file is used to create a folder structure for each application user. It is contained in the "On Before Start" EEP of an External Form. Installing and running in XP- No problem. The batch file runs and creates the folder structure without errors. Installing and running in Vista- Application experiences an error due to the file/folders not existing; the folder structure cannot be created unless the creation or deletion of folders is done under the Vista "Run As Administrator" elevation of rights. This is true even if the user is part of the Administrator group or if it is an actual user named "Administrator". This is a function of the User Access Control "feature" of Vista. The clients are interpreting the error in the application as a fault with the application. As I am sure you have experienced, even a nicely done instruction sheet/file and the readme in the installer are ignored by most users. So, I am attempting to bypass the client's ability to make a mistake! Obviously, this is a difficult task at best!! Here are my instructions, taken from a PDF with screenshots (removed for this email): Right-click on the Application_Setup.exe and
Before running the application, Windows Vista users must set the "Run as Adminstrator" property on Anyway, that is the situation, Razzak. I was wondering if the parameters function of LAUNCH was able to be used to Run As Administrator under Vista. I was also thinking that the ability to pre-set the compiled application to "Run As Administrator" during the compiling process would be a tremendous asset in a Vista/Windows7 world. Likewise, having this same ability to be settable on the compiled "setup" file itself would fix the installation problem entirely. Thank you for hearing me on this, my friend! Best Regards, Ted Ted Lienhard CNE NCT Golden Valley Consulting
|
- [RBASE-L] - Re: Launch command parameter question A. Razzak Memon
- [RBASE-L] - Re: Launch command parameter question Ted Lienhard
- [RBASE-L] - Re: Launch command parameter question Walker, Buddy
- [RBASE-L] - Re: Launch command parameter question Ted Lienhard

