Custom SSL VPN task not working 100%

(imported topic written by jpeppers91)

I have the following task that will execute everything but the last step, it says completed but it does not set the regsitry value. If I run the value in a separate task it works fine. Any ideas of what I’m doing wrong? Here is the line I can’t get to work.

regset "

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

" “GinaDLL”=“MSGina.dll”

extract VPN.tmp

action uses wow64 redirection false

delete __appendfile

delete wizardedit.reg

appendfile REGEDIT4

appendfile

//Stop the Service

waithidden cmd /C net stop “tmlisten”

waithidden cmd /C net stop “ntrtscan”

appendfile

HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\PC-cillinNTCorp\CurrentVersion

appendfile “ServerPort”=dword:00001f90

appendfile “Server”=“ATL1OSCEWRK1.CORP.ETRADEGRP.COM

appendfile “DatabasePath”="\\ATL1OSCEWRK1\ofcscan\FileDB"

appendfile “LocalServerPort”=dword:0000dd4e

appendfile “Domain”=“Laptop - vpn”

move __appendfile wizardedit.reg

waithidden regedit /s “wizardedit.reg”

//Start the Service:

waithidden cmd /C net start “tmlisten”

waithidden cmd /C net start “ntrtscan”

waithidden “{pathname of system folder & “\msiexec.exe”}” /i “{(pathname of client folder of current site) & “__Download\Agent-Windows.i386.msi”}” /qn /norestart

waithidden “{pathname of system folder & “\msiexec.exe”}” /i “{(pathname of client folder of current site) & “__Download\anyconnect-win-2.4.1012-pre-deploy-k9.msi”}” /qn /norestart

dos copy “__download\rogue.xml” “c:\Documents and Settings\All Users\Application Data\Cisco\Cisco AnyConnect VPN Client\Profile\Rogue.xml”

runhidden “{pathname of system folder & “\msiexec.exe”}” /i “{(pathname of client folder of current site) & “__Download\anyconnect-gina-win-2.4.1012-pre-deploy-k9.msi”}” /qn /norestart

regset "

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

" “GinaDLL”=“MSGina.dll”

(imported comment written by BenKus)

Perhaps it is a x64 system and you are looking at the wrong place in the registry?

Ben

(imported comment written by jpeppers91)

These are all 32 bit. If I run it in a task by iteslf it works perfectly. Is there a way to put a pause for 90 seconds and then do the last step?

(imported comment written by BenKus)

Is there a reason that you use “runhidden” on the second-to-last step? Perhaps switch it to “waithidden”?

Ben

(imported comment written by jpeppers91)

I didn’t think about that. That is exactly what the problem was. I’m not sure why I changed it to runhidden.

Thanks Ben