Re: XCopy and Vista and Relative Paths
- From: "Bryan Phillips" <bphillips@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 2 Mar 2007 21:53:56 +0000
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.
.
- Prev by Date: distributed caching for .NET ?
- Next by Date: Re: ClickOnce and Temporary/Mandatory Profiles
- Previous by thread: Re: distributed caching for .NET ?
- Next by thread: Re: XCopy and Vista and Relative Paths
- Index(es):
Relevant Pages
|
Loading