Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. "Install" "setup" to Vista

"Install" "setup" to Vista

Scheduled Pinned Locked Moved Windows API
helpworkspace
4 Posts 3 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LiYS
    wrote on last edited by
    #1

    Hi all: It seems Vista is sensitive to executable containing word like "Install", "Setup" etc, The problem I have is that I have that kind of exe called "Setup.exe" which contrary to what its name indicated is not an installation program, when it was closed the Vista prompts me "this program might not have installed correctly" later I found out that maybe Vista asks for "Uninstall" key, so I provided it with that. This method seems to work for one time, but failed to do so subsequently, but I'm not sure if it is a legitimate method.


    M 1 Reply Last reply
    0
    • L LiYS

      Hi all: It seems Vista is sensitive to executable containing word like "Install", "Setup" etc, The problem I have is that I have that kind of exe called "Setup.exe" which contrary to what its name indicated is not an installation program, when it was closed the Vista prompts me "this program might not have installed correctly" later I found out that maybe Vista asks for "Uninstall" key, so I provided it with that. This method seems to work for one time, but failed to do so subsequently, but I'm not sure if it is a legitimate method.


      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Add a manifest to the EXE that tells Vista what permission level it needs. In almost all cases, you'll use requestedExecutionLevel='asInvoker' MSDN article: clickety[^]

      --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

      L 1 Reply Last reply
      0
      • M Michael Dunn

        Add a manifest to the EXE that tells Vista what permission level it needs. In almost all cases, you'll use requestedExecutionLevel='asInvoker' MSDN article: clickety[^]

        --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

        L Offline
        L Offline
        LiYS
        wrote on last edited by
        #3

        Thanks, Michael! I used the following manifest configure, and compiled it into the PE using the method mentioned in the article, but problem remains. <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLevel level="="asInvoker"" uiAccess="false"/> </requestedPrivileges> </security> </trustInfo> </assembly> I was wondering if I choosed the correct method to build that manifest into the PE after I read http://www.gregcons.com/KateBlog/CommentView.aspx?guid=682d4de9-572f-4a18-b822-19069e50410f. But I did see the manifest exists in the PE.


        J 1 Reply Last reply
        0
        • L LiYS

          Thanks, Michael! I used the following manifest configure, and compiled it into the PE using the method mentioned in the article, but problem remains. <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLevel level="="asInvoker"" uiAccess="false"/> </requestedPrivileges> </security> </trustInfo> </assembly> I was wondering if I choosed the correct method to build that manifest into the PE after I read http://www.gregcons.com/KateBlog/CommentView.aspx?guid=682d4de9-572f-4a18-b822-19069e50410f. But I did see the manifest exists in the PE.


          J Offline
          J Offline
          Jonathan Darka
          wrote on last edited by
          #4

          If that is your complete menifest file, then it's incomplete, try this one.

          <?xml version="1.0" encoding="utf-8" standalone="yes"?>
          <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
          <assemblyIdentity version="1.0.0.0"
          processorArchitecture="X86"
          name="MyExe.exe"
          type="win32"/>
          <description>MyExe Description</description>

          <!-- Identify the application security requirements. -->
          <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
          <security>
          <requestedPrivileges>
          <requestedExecutionLevel
          level="asInvoker"
          uiAccess="false"/>
          </requestedPrivileges>
          </security>
          </trustInfo>
          </assembly>

          regards,


          Jonathan Wilkes Darka [Xanya.net]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups