copy file using path variable
Hi
I am trying to copy file in to startup folder, i have used the user defined path variables.
one for project file path & one for startup folder path
project file path is :variable name is LMN & current value is D:\Umesh
one more path is : variable name is ABC & current value is C:\Documents and Settings\All Users\Start Menu\Programs\Startup
i am trying to copy file from D:\Umesh\CCAP.msi to C:\Documents and Settings\All Users\Start Menu\Programs\Startup\CCAP.msi
so i created a folder ABC in destination & then added the CCAP.msi file to the ABC folder.
if i run the script in it willl copy to path C:\ABC\CCAP.msi but actually i need to copy it to C:\Documents and Settings\All Users\Start Menu\Programs\Startup\CCAP.msi
The log file is attached. Please tel me where i am wrong?
Thanks
Comments
>Please tell me where I am wrong
Your first error is in assuming - again - that everyone here is clairvoyant. Where is "the script" you talk of? Or do you mean that you ran the MSI?
Secondly, it generally helps to correctly state how you have things set up. According to the log, the MSI you're copying is CCAP-Part2.MSI.
Lastly, the clue as to the "incorrect" target folder is, as you might expect, in the value for the INSTALLDIR property:
INSTALLDIR = C:\ABC\
Don't know why 'x' happened? Want to know why 'y' happened? Use ProcMon and it will tell you.
Think about using http://www.google.com before posting.
HiVBScab the file is
Hi
VBScab the file is CCAP-Part2.MSI.
i gone through the some od the discussion forums i got the solution. In property table i set the ROOTDRIVE =C then its working fine.
Thanks
No connection
I can see absolutely no connection between setting ROOTDRIVE=C and the problem described in the original posting.
ROOTDRIVE fixes the drive letter used for MSI installation regardless of which partition has the largest amount of free space. It has no effect on whether files install to the All Users profile or to InstallDir.
So next time you post, please take account of what VBScab mentioned - we are not clairvoyant, and give us a decent and full description of what you are doing, and make sure you include any scripts you refer to.
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
If you want to install files
If you want to install files to the all users startup folder then you need to set the ALLUSERS property to 1 (per-machine install) and use the StartupFolder directory/property as the destination, that's it.
Would you like to reply?
Login or Register to post your comment.