Jump to content

Recommended Posts

Posted

Why is this simple install cmd failing

 			cmd='%COMSPEC% /C copy "R:\Abacus Original\Abacus 1 Pupil\Install Abacus Pupil Activity 1 Original.lnk" "%ALLUSERSPROFILE%\Desktop\Install Abacus Pupil Activity 1 Original.lnk" /y' />

 

Is it the path length (client is Win7 Pro BTW)

 

If I manuall type in

copy "R:\Abacus Original\Abacus 1 Pupil\Install Abacus Pupil Activity 1 Original.lnk" "%ALLUSERSPROFILE%\Desktop\Install Abacus Pupil Activity 1 Original.lnk"

 

Then it works fine

 

I'm going to make an install.bat file and run that but its just frustrating when you've pooped in on a Saturday to have daft thinks like this happen!

 

Simon

Posted

Mind you works a lot better when you remember to take the "copy" out of the line :lol:

So the install.bat approach works - I wonder what the straight WPKG issue is?

 

Simon

Posted

Haven't personally used WPKG, but assuming it's running under a different account to what you're using, could it simply be access denied? As it's ProgramData folder (Win7 blahblah/UAC blahblah)

 

What's the actual error you get?

 

Steve

Posted

Maybe it's a Windows 7 security thing because you are writing to the default profile, but here is a working example that I was using (using xcopy rather than copy).

 

 

You could try redirecting your output to a file rather than NUL to see what's going on if you still have problems.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...