I've beeen trying to set up a batch-script which should do the following:
First, install a exe file, preferrably quietly (of course check if it's already installed). Then traverse to where .net framework is installed. After the traverse, it should set Caspol rights and regasm. And then copy some shortcuts and a checkfile (to see if this has already been done).
Does anyone have any idea why this is not working? When I do the commands by copy & paste into my commandline, everything works, but not when the script is running.
Suggestions on what is wrong, and some improvements would be greatly appreciated.
REM Upgrade RS Framework 2.0V
@echo off
if exist "C:\CheckNet.txt" GOTO END
P:\RS\Klient\PClient.exe
cd\
cd C:\Windows\Microsoft.NET\Framework\v2.0.50727
caspol -machine -addgroup 1. -url \\Domain\Program\RS\* FullTrust -n RS -s on
regasm \\Domain\Program\RS\TE.HCW.PRS.RS.Wrapper.dll
copy \\Domain\Program\TE\RS\ClientInstallation\CheckNet.txt c:\
COPY "\\Domain\Program\shortcut\RS\*.*" "c:\Documents and settings\All Users\Desktop"
:END