Hello, I have this small application which pops an error on its launch in user. Tried giving the directory under which its exe is located , full permission, but it doesnt work

 

The eventvwr shows the following error log

 

can somebody give me some info on how to resolve this error.

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

0

It is also calling Java, try setting the Java security level to low.  If you have an older version of Java you may have to update it.

Answered 04/10/2013 by: SMal.tmcc
Red Belt

Please log in to comment
0

on Windows 7?

Answered 04/10/2013 by: jagadeish
Red Belt

  • Thanks I keep forgetting to ask the os version
  • Yes this is a Windows7 machine and the weird thing is when I'm running application as an admin after right clicking it it works fine. Tried applying shims too, but, nothing worked
  • Did you try to run that exe in XP Compatibility mode on Windows 7
    • Sorry for the late reply, and yes indeed i try the XP mode for the EXE, but the error continued to be the same.
  • Option Explicit

    Dim CompatSettings, RegistryKey, objShell, File

    Set objShell=CreateObject("WScript.Shell")

    CompatSettings = "WINXPSP3"
    RegistryKey = "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"
    File = "%ProgramFiles%\MyFolder\MyFile.exe"

    objShell.Run "REG.EXE ADD " & Chr(34) & RegistryKey & Chr(34)_
    & " /V " & Chr(34) & File & Chr(34)_
    & " /T REG_SZ" _
    & " /D " & Chr(34) & CompatSettings & Chr(34)_
    & " /F",0,True

    Set objShell = Nothing
  • or


    Option Explicit

    Dim CompatSettings, RegistryKey, objShell, File

    Set objShell=CreateObject("WScript.Shell")

    CompatSettings = "RUNASADMIN"
    RegistryKey = "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"
    File = "%ProgramFiles%\MyFolder\MyFile.exe"

    objShell.Run "REG.EXE ADD " & Chr(34) & RegistryKey & Chr(34)_
    & " /V " & Chr(34) & File & Chr(34)_
    & " /T REG_SZ" _
    & " /D " & Chr(34) & CompatSettings & Chr(34)_
    & " /F",0,True

    Set objShell = Nothing
    • I had this small thing to share it with you.....this application was captured and an MSI was created out of it. And the source too behaves in the similar manner in user....Now i m aware of the fact that , if source is behaving weird, there is nothing much we can do about it. Now , i tried the script you mentioned above, obviously not on the application but on my dummy machine.....for certain exe's it gives a UAC , which is not a problem at all, we can suppress it using a SHIM , but what i m afraid of is, what happens to the spadConsole.exe shown above when SHIM is applied, will it again start behaving as original and will we be back to square 1
  • Do not apply shim.. just give your exe file path in above script and check it..
    ok.. once you launch this exe as admin, have you tried launching it as standard user? was it successful?
    • Yes I tried and No , it wasn't successful .....the above snapshot is after launching this exe as standard user after launching it as admin
    • Also, the environment we are talking about is heavily locked down.....no regedit, so runas admin cmd and every other combination that you can think of
  • Use ProcMon
    • Haha......that was the last tool that i ever wanted to use.....but considering the situation....i think , i'm out of all options...so i will have to use it anyway
Please log in to comment
Answer this question or Comment on this question for clarity