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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. return executable setup file path

return executable setup file path

Scheduled Pinned Locked Moved Visual Basic
debugginghelpquestionworkspace
5 Posts 2 Posters 0 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.
  • M Offline
    M Offline
    mehrnoosh
    wrote on last edited by
    #1

    hi friends i create a setup program that install my app and i want instal msde in my setup file i write a function that run "msde2000\setup.exe" file with process.start() instruction i located the MSDE2000 folder in my app debug path but when i run the setup file in this line it has a error :

        objProcess = New System.Diagnostics.Process()
        objProcess.StartInfo.FileName = Application.StartupPath & "\\MSDE2000\\setup.exe"
    

    error is can not find setup.exe in c:\windows\system32 why c:\windows\system32????!!!! and when i changed Application.StartupPath to Application.ExecutablePath it returns path c:\windows\system32\msiexec.exe !!!! why???!!!!!!!:confused::confused::confused:

    M.Alizadeh

    G 1 Reply Last reply
    0
    • M mehrnoosh

      hi friends i create a setup program that install my app and i want instal msde in my setup file i write a function that run "msde2000\setup.exe" file with process.start() instruction i located the MSDE2000 folder in my app debug path but when i run the setup file in this line it has a error :

          objProcess = New System.Diagnostics.Process()
          objProcess.StartInfo.FileName = Application.StartupPath & "\\MSDE2000\\setup.exe"
      

      error is can not find setup.exe in c:\windows\system32 why c:\windows\system32????!!!! and when i changed Application.StartupPath to Application.ExecutablePath it returns path c:\windows\system32\msiexec.exe !!!! why???!!!!!!!:confused::confused::confused:

      M.Alizadeh

      G Offline
      G Offline
      Goutam Patra
      wrote on last edited by
      #2

      Try Application.ExecutablePath

      M 1 Reply Last reply
      0
      • G Goutam Patra

        Try Application.ExecutablePath

        M Offline
        M Offline
        mehrnoosh
        wrote on last edited by
        #3

        thanks for your reply, but did you read my post???!!! i tried it and it returnd path c:\windows\system32\msiexec.exe !!!!

        M.Alizadeh

        G 1 Reply Last reply
        0
        • M mehrnoosh

          thanks for your reply, but did you read my post???!!! i tried it and it returnd path c:\windows\system32\msiexec.exe !!!!

          M.Alizadeh

          G Offline
          G Offline
          Goutam Patra
          wrote on last edited by
          #4

          Are you running a MSI package of your application? Thats why it's showing c:\windows\system32\msiexec.exe

          M 1 Reply Last reply
          0
          • G Goutam Patra

            Are you running a MSI package of your application? Thats why it's showing c:\windows\system32\msiexec.exe

            M Offline
            M Offline
            mehrnoosh
            wrote on last edited by
            #5

            ok. then what should i do??? that means when i use a msi package always it return c:\windows\system32...??? i also test this way: In the CustomActionData property of the Custom Action, type: /DIR="[TARGETDIR]\" Then in Installer class, add this code: Dim path As String = Context.Parameters("DIR") but when run setup.exe file it return a null string...

            M.Alizadeh

            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