/build/static/layout/Breadcrumb_cap_w.png

Error on shortcut launch

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

Answers (2)

Posted by: SMal.tmcc 11 years ago
Red Belt
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.

Posted by: jagadeish 11 years ago
Red Belt
0

on Windows 7?


Comments:
  • Thanks I keep forgetting to ask the os version - SMal.tmcc 11 years ago
  • 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 - talonsprem87 11 years ago
  • Did you try to run that exe in XP Compatibility mode on Windows 7 - jagadeish 11 years ago
    • Sorry for the late reply, and yes indeed i try the XP mode for the EXE, but the error continued to be the same. - talonsprem87 11 years ago
  • 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 - jagadeish 11 years ago
  • 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 - jagadeish 11 years ago
    • 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 - talonsprem87 11 years ago
  • 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? - jagadeish 11 years ago
    • 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 - talonsprem87 11 years ago
    • 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 - talonsprem87 11 years ago
  • Use ProcMon - jagadeish 11 years ago
    • 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 - talonsprem87 11 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ