Re: XCopy and Vista and Relative Paths



Try looking for your myassembly.dll file in this folder: C:\Users\[username]\AppData\Local\VirtualStore\Program Files

If the file exists, then "Run as administrator" is not taking effect when you run your batch file. By default, the Vista does not allow non-administrators to write to the Program Files folder. You can change this behavior by explicitly adding the user to the NTFS permissions of the affected folder.

--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com



"BartMan" <MaskProg@xxxxxxxxxxxxxxxx> wrote in message news:B9C99678-81B9-40BF-907B-D9832D8AE57F@xxxxxxxxxxxxx:

Greetings,

I am trying to test some of our .Net apps from framework 2.0 on a Windows
Vista machine. We had a simple installer in which we did a xcopy into a
specfied location, and then the program would be installed.

The problem that ocurrs now is that I used relative paths in the .bat file
which worked fine in windows xp, but no longer work for me in Vista.

1.) This is the directory structure on our cd.

Redist (A folder containing our Do Net code)
<some other files>
...
...
Setup.bat (What the user clicks on to install)

2.) What "Setup.bat" has in it.
XCopy ".\Redist\myassembly.dll" "C:\Program Files\MyApp\" /s /e /i /y

3.) On windows xp sp2 this works fine, but on Vista it says "myassembly.dll"
not found.

The interesting thing is that I also have to right click on the "Setup.bat"
file and select "Run as administrator".

Thanks for any suggestions on this new Vista Exeperiance.

.



Relevant Pages

  • Re: Word 2007 has stopped working on Vista Home Premium
    ... I probably earlier said it was worse when I tried to open a file first than using the shortcut icon on the desktop, but should have clarified that I normally use start/computer rather than than windows/e to open these files. ... I called them and was told the only driver available now is the one that comes with Vista. ... When I click the desktop icon, it is less than 50% crashes. ... I don't know how to find the startup folder in Vista. ...
    (microsoft.public.word.application.errors)
  • Re: Windows 7 folder delete
    ... I was on vacation and just now returning to my folder delete problem. ... 5/ Excute Windows Explorer using Run As Administrator option. ... You use a non-Windows boot loader that interferes with F8. ...
    (microsoft.public.windows.file_system)
  • Re: Windows 7 folder delete
    ... know where the folder security is lodged. ... 5/ Excute Windows Explorer using Run As Administrator option. ... You use a non-Windows boot loader that interferes with F8. ...
    (microsoft.public.windows.file_system)
  • Re: Windows 7 folder delete
    ... Reformatting your PC in order to remove the unwanted folder would be ... 5/ Excute Windows Explorer using Run As Administrator option. ... You use a non-Windows boot loader that interferes with F8. ...
    (microsoft.public.windows.file_system)
  • Re: Windows 7 folder delete
    ... I was on vacation and just now returning to my folder delete problem. ... 5/ Excute Windows Explorer using Run As Administrator option. ... I am still forbidden from deleting the " Windows OneCare Backup" ...
    (microsoft.public.windows.file_system)

Loading