Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

copy file using path variable

Created: 16 Aug 2010 | 4 comments
umeshbg's picture
0 0 Votes
Login to vote

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

Discussion Filed Under:

Comments

VBScab's picture
17
Aug
2010
0 Votes 0
Login to vote

>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.

umeshbg's picture
17
Aug
2010
0 Votes 0
Login to vote

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

EdT's picture
17
Aug
2010
0 Votes 0
Login to vote

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.

AngelD's picture
17
Aug
2010
2 Votes +2
Login to vote

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.