|
|
|||||||
Could someone please tell me what I'm doing wrong? The below script always installs IE6 and I only want it to install if the version number is not 6.0.2800.1106 Thanks $regkey = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\iexplore.exe" $iexplore = READVALUE($regkey,"") $iever = GETFILEVERSION($iexplore) ?$iever IF $iever = "6.0.2800.1106" GOTO END ELSE GOTO IEINST ENDIF :IEINST ; *IE6 Install* ? "** Processing.... Please Wait **" RUN \\server\SYSVOL\home.com\scripts\ie6setup.bat :END exit |
||||||||
|
|
|||||||
the string extract is correct ... you may want to get rid of this goto stuff though by specifying a clear condition like code:You miss of course the quotes around your RUN string, so I have to wonder why it installs anywayif $iever = "6.0.2800.1106" |
||||||||
|
|
|||||||
this should work as well : code: |
||||||||
|
|
|||||||
You may as well follow the suggestions by Rad and Les in your other topic |