Installation woes

mstarks67

New member
Local time
5:32 AM
Messages
3
Location
Wisconsin
I am trying to execute a software installation using a batch file. I am able to create a target directory and copy the files just fine. The problem I am running in to is when the batch tries to create shortcuts to the all user desktop and start menu. Every time the action is denied. I am trying to copy to the users\public\desktop and users\public\start menu. I am able to manually copy the shortcuts but unable to automate the process. I have full admin rights...what else am I missing here?

Any ideas?
 

My Computer

OS
Windows 7 Enterprise 64-bit
I have resolved this issue temporarily. I had to turn off UAC to run the installation batch file. There has got to be a better way of doing this. Taking ownership of the target folder is not a viable option either. If anyone has any ideas on how to bypass this ridiculous security, feel free to post them here. I will post more after my meetings with Microsoft this week.
 

My Computer

OS
Windows 7 Enterprise 64-bit
I have resolved my own question. I have begun to compile executables to install shortcuts and programs to the locations I need in order to circumvent the problems created by the UAC. It is much easier to install an executable with elevated rights than it is to run a batch file with elevated rights.
 

My Computer

OS
Windows 7 Enterprise 64-bit
Back
Top