If Not WScript.Arguments.Named.Exists("elevate") Then
CreateObject("Shell.Application").ShellExecute WScript.FullName _
, """" & WScript.ScriptFullName & """ /elevate", "", "runas", 1
WScript.Quit
End If
The above script result in an error While upgarding to the two versions .When we upgrade the build versions in the advanced installer version 14.0.2 it does not result in error but we upgarde the build versions in the advanced installer 14.0.2 to 20.0 it results in error .
The error is : There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action DeleteService, location: C:\Windows\Installer\MSI452E.tmp, command: /EnforcedRunAsAdmin /RunAsAdmin "C:\Users\ASWATH~1\AppData\Local\Temp\DeleteService_APW.vbs" C:\Users\ASWATH~1\AppData\Local\Temp\DeleteService_APW.vbs